• Articles
  • Api Documentation
Show / Hide Table of Contents
  • net.abi.abisEngine.components
    • Camera
    • DirectionalLight
    • FreeLook
    • FreeMove
    • Light
    • LockView
    • MeshRenderer
    • PointLight
    • SceneComponent
    • SpotLight
  • net.abi.abisEngine.core
    • CoreEngine
    • Main
    • Time
  • net.abi.abisEngine.entities
    • Entity
    • EntityI
  • net.abi.abisEngine.handlers.file
    • FileHandler
    • PathHandle
    • PathResolveI
    • PathType
  • net.abi.abisEngine.handlers.logging
    • Logger
    • LogLevel
    • LogManager
  • net.abi.abisEngine.input
    • GLFWInput
    • GLFWMouseAndKeyboardInput
  • net.abi.abisEngine.math
    • Math
    • Matrix
    • Matrix4f
    • Quaternion
    • Transform
    • Vector2f
    • Vector2i
    • Vector3f
    • Vector3i
    • Vector4f
    • Vector4fI
  • net.abi.abisEngine.rendering.asset
    • AssetClassifier
    • AssetContainer
    • AssetI
    • AssetLoaderParameters
    • AssetLoaderParameters.LoadedCallback
    • AssetLoadTask
    • AssetManager
    • AssetStore
    • TaskCompleteHandler
  • net.abi.abisEngine.rendering.asset.loaders
    • AssetLoader
    • AsyncAssetLoader
    • ModelSceneLoader
    • ModelSceneLoader.Parameter
    • SyncAssetLoader
  • net.abi.abisEngine.rendering.image
    • AEImage
    • ImageMetaData
    • PixelMap
  • net.abi.abisEngine.rendering.material
    • Material
  • net.abi.abisEngine.rendering.mesh
    • AIMeshLoader
    • Mesh
    • MeshResource
    • Model
    • ModelScene
    • Vertex
  • net.abi.abisEngine.rendering.pipeline
    • RenderingEngine
  • net.abi.abisEngine.rendering.scene
    • Scene
    • SceneManager
  • net.abi.abisEngine.rendering.scene.scenes
    • EngineSplashScreen
  • net.abi.abisEngine.rendering.shader
    • AEShader
    • AEShader.AEShaderType
    • AEShaderResource
    • ForwardAmbientShader
    • ForwardDirectionalShader
    • ForwardPointShader
    • ForwardSpotShader
    • GLSLLayoutQualifier
    • GLSLUniform
    • GLSLUniformBlockObject
    • GLSLUniformBlockObjectData
    • Shader
    • Shader.ShaderSource
    • Shader.ShaderType
    • ShaderResource
    • WireFrameShader
  • net.abi.abisEngine.rendering.shader.compiler
    • AEGLInfo
    • AEShaderCompiler
    • AEShaderCompiler.GLSLStruct
    • AEShaderCompiler.ShaderData
    • AEShaderCompiler.ShaderSource
    • Tokens
    • Tokens.Keywords
    • Tokens.Operators
    • Tokens.Qualifiers
  • net.abi.abisEngine.rendering.shader.loader
    • AEShaderLoader
  • net.abi.abisEngine.rendering.shader.parser
    • AEShaderParserYAML
  • net.abi.abisEngine.rendering.shader.parser.fileTypes.yaml
    • AEDemoProperty
    • AEPrepProperty
    • AEShaderFileYAML
    • AEShaderGLSLProgram
    • AEShaderPass
  • net.abi.abisEngine.rendering.texture
    • Texture
    • Texture.TextureData
    • TextureResource
  • net.abi.abisEngine.rendering.window
    • GLFWWindow
    • GLFWWindow.AnimatedCursor
    • GLFWWindow.CursorI
    • GLFWWindow.GLFWWindowProperties
    • GLFWWindow.StaticCursor
    • GLFWWindow.StaticCursorResource
    • GLFWWindowManager
    • GLFWWindowManager.GLFWWindowContext
  • net.abi.abisEngine.rendering.window.models
    • EngineLoader
  • net.abi.abisEngine.util
    • Attenuation
    • Color
    • Expendable
    • IOUtil
    • MappedValues
    • ThreadUtils
    • Util
  • net.abi.abisEngine.util.async
    • Async
    • AsyncResult
    • AsyncTask
    • AsyncThreadDispatcher
  • net.abi.abisEngine.util.cacheing
    • GenericCache
    • GenericCacheI
    • TwoFactorGenericCache
    • TwoFactorGenericCacheI
  • net.abi.abisEngine.util.exceptions
    • AECursorInitializationException
    • AEException
    • AEGLFWWindowInitializationException
    • AEImageManipulationException
    • AEIOException
    • AERuntimeException
    • AEShaderCompilerRuntimeException
  • tests.renderTest
    • Start
  • tests.renderTest.entitys
    • FlatPlane
    • MonkeyHead
  • tests.renderTest.materials
    • BricksOne
    • BricksTwo
  • tests.renderTest.scenes
    • MainMenu
    • TestGame
  • tests.renderTest.windows
    • MainGame

Class Util

Inheritance
java.lang.Object
Util
Syntax
public class Util

Methods

createByteBuffer(int capacity)

Allocates a direct native-orderedByteBuffer 

</code> with the specified capacity.</p>

Declaration
public static ByteBuffer createByteBuffer(int capacity)
Parameters
Type Name Description
int capacity

the capacity, in bytes

Returns
Type Description
ByteBuffer

aByteBuffer 

</code></p>

createFlippedBuffer(ArrayList<Vector2f> values)

Declaration
public static FloatBuffer createFlippedBuffer(ArrayList<Vector2f> values)
Parameters
Type Name Description
ArrayList<Vector2f> values
Returns
Type Description
FloatBuffer

createFlippedBuffer(int... values)

Declaration
public static IntBuffer createFlippedBuffer(int... values)
Parameters
Type Name Description
int... values
Returns
Type Description
IntBuffer

createFlippedBuffer(List<Vector3f> values)

Declaration
public static FloatBuffer createFlippedBuffer(List<Vector3f> values)
Parameters
Type Name Description
List<Vector3f> values
Returns
Type Description
FloatBuffer

createFlippedBuffer(Matrix value)

Declaration
public static FloatBuffer createFlippedBuffer(Matrix value)
Parameters
Type Name Description
Matrix value
Returns
Type Description
FloatBuffer

createFlippedBuffer(Matrix4f value)

Declaration
public static FloatBuffer createFlippedBuffer(Matrix4f value)
Parameters
Type Name Description
Matrix4f value
Returns
Type Description
FloatBuffer

createFlippedBuffer(Vector3f[][] values)

Declaration
public static FloatBuffer createFlippedBuffer(Vector3f[][] values)
Parameters
Type Name Description
Vector3f values
Returns
Type Description
FloatBuffer

createFlippedBuffer(Vertex[] vertices)

Declaration
public static FloatBuffer createFlippedBuffer(Vertex[] vertices)
Parameters
Type Name Description
Vertex [] vertices
Returns
Type Description
FloatBuffer

createFloatBuffer(int size)

Declaration
public static FloatBuffer createFloatBuffer(int size)
Parameters
Type Name Description
int size
Returns
Type Description
FloatBuffer

createIntBuffer(int size)

Declaration
public static IntBuffer createIntBuffer(int size)
Parameters
Type Name Description
int size
Returns
Type Description
IntBuffer

createIntBuffer(List<Integer> val)

Declaration
public static IntBuffer createIntBuffer(List<Integer> val)
Parameters
Type Name Description
List<Integer> val
Returns
Type Description
IntBuffer

listIntToArray(List<Integer> list)

Declaration
public static int [] listIntToArray(List<Integer> list)
Parameters
Type Name Description
List<Integer> list
Returns
Type Description
int []

removeEmptyStrings(String[] data)

Declaration
public static String [] removeEmptyStrings(String[] data)
Parameters
Type Name Description
String [] data
Returns
Type Description
String []

sizeof(Class dataType)

Java method to return size of primitive data type based on hard coded values valid but provided by developer

Declaration
public static int sizeof(Class dataType)
Parameters
Type Name Description
Class dataType
Returns
Type Description
int

sizeOf(Class dataType)

A perfect way of creating confusing method name, sizeof and sizeOf this method take advantage of SIZE constant from wrapper class

Declaration
public static int sizeOf(Class dataType)
Parameters
Type Name Description
Class dataType
Returns
Type Description
int

toIntArray(Integer[] array)

Declaration
public static int [] toIntArray(Integer[] array)
Parameters
Type Name Description
Integer [] array
Returns
Type Description
int []

toVertexArray(ArrayList<Vector3f> positions, ArrayList<Vector3f> normals, ArrayList<Vector2f> texCoords, ArrayList<Vector3f> tangents)

Declaration
public static Vertex [] toVertexArray(ArrayList<Vector3f> positions, ArrayList<Vector3f> normals, ArrayList<Vector2f> texCoords, ArrayList<Vector3f> tangents)
Parameters
Type Name Description
ArrayList<Vector3f> positions
ArrayList<Vector3f> normals
ArrayList<Vector2f> texCoords
ArrayList<Vector3f> tangents
Returns
Type Description
Vertex []
Back to top Generated by DocFX