Index
All Classes and Interfaces|All Packages
A
- addComponent(Component) - Method in class org.alban098.common.Entity
- applyTransform(Transform) - Method in class org.alban098.common.Transform
-
Apply a transformation to the current one
B
- buffer - Variable in class org.alban098.common.Transform
-
A Buffer used to store the absolute transformation matrix for rendering
C
- change - Variable in class org.alban098.common.Transform
-
A flag to indicate that a change has occurred
- Cleanable - Interface in org.alban098.common
-
An interface making an Object cleanable, meaning it needs a custom behavior before destruction
- cleanUp() - Method in interface org.alban098.common.Cleanable
-
The actual behavior to execute before the Object's destructor is called
- cleanUp() - Method in class org.alban098.common.Transform
-
Clears the Transform and its buffer
- commit() - Method in class org.alban098.common.Transform
-
Updates the Transform by recomputing its matrix
- Component - Class in org.alban098.common
- Component() - Constructor for class org.alban098.common.Component
- components - Variable in class org.alban098.common.Entity
D
- displacement - Variable in class org.alban098.common.Transform
-
The current displacement of the Component
E
- Entity - Class in org.alban098.common
-
Main Entity interface for all Engine2J modules
- Entity(Vector2f, Vector2f, float) - Constructor for class org.alban098.common.Entity
- equals(Object) - Method in class org.alban098.common.Component
F
- finish() - Static method in class org.alban098.common.MemoryManager
-
Cleans up all Objects
- free(Cleanable) - Static method in class org.alban098.common.MemoryManager
-
Cleans up an Objects and stop keeping track of it
G
- getComponents() - Method in class org.alban098.common.Entity
- getDisplacement() - Method in class org.alban098.common.Transform
-
Returns the current displacement fo the Transform
- getElapsedTime() - Method in class org.alban098.common.Timer
-
Get the elapsed time since the last call of this method
- getLastFrameTime() - Method in class org.alban098.common.Timer
-
Get the time of the last call to getElapsedTime() in seconds
- getMatrix() - Method in class org.alban098.common.Transform
-
Returns the absolute transformation matrix, with all parent transformations applied
- getNullTransformBuffer() - Static method in class org.alban098.common.TransformUtils
-
Returns a
FloatBuffercontaining a transformation matrix that does not change an Entity - getRotationZ(Matrix4f) - Static method in class org.alban098.common.TransformUtils
-
Returns the angle of rotation around the Z axis of a transformation matrix in radians
- getScale() - Method in class org.alban098.common.Transform
-
Returns the current scale of the Transform
- getTime() - Method in class org.alban098.common.Timer
-
Get the current tim in seconds, accurate to nanoseconds
- getTransform() - Method in class org.alban098.common.Entity
-
Returns the
Transformenabling the object to be placed, can be null (TransformUtils.getNullTransformBuffer()will be used instead)
H
- hashCode() - Method in class org.alban098.common.Component
I
- initialize() - Method in interface org.alban098.common.Cleanable
-
Register the element to be cleared on program exit, must be called in the constructor
L
- lastFrameTime - Variable in class org.alban098.common.Timer
-
The time at which the last frame has ended
- LOGGER - Static variable in class org.alban098.common.MemoryManager
-
Just a Logger to log events
M
- matrix - Variable in class org.alban098.common.Transform
-
The transformation matrix
- matrixArray - Variable in class org.alban098.common.Transform
-
An array used to store the transformation matrix before loading it to a GPU buffer
- MemoryManager - Class in org.alban098.common
-
This static class is tasked with keeping track and cleaning up every Cleanable object
- MemoryManager() - Constructor for class org.alban098.common.MemoryManager
- move(float, float) - Method in class org.alban098.common.Transform
-
Move the Transform a certain amount from its current position
- move(Vector2f) - Method in class org.alban098.common.Transform
-
Move the Transform a certain amount from its current position
N
- NULL_TRANSFORM - Static variable in class org.alban098.common.TransformUtils
-
A constant representing an empty Transform
O
- OBJECTS - Static variable in class org.alban098.common.MemoryManager
-
A Map of all Cleanable objects of the application, sorted by type
- org.alban098.common - package org.alban098.common
R
- register(Cleanable) - Static method in class org.alban098.common.MemoryManager
-
Adds a new Cleanable to the Manager, only called by
Cleanable.initialize() - requestedDisplacement - Variable in class org.alban098.common.Transform
-
The displacement to apply at the next update
- requestedRotation - Variable in class org.alban098.common.Transform
-
The rotation to apply at the next update
- requestedScale - Variable in class org.alban098.common.Transform
-
The scale to apply at the next update
- rotate(float) - Method in class org.alban098.common.Transform
-
Rotates the Transform by a certain amount, and then wrap the rotation between 0 and 2*PI
- rotation - Variable in class org.alban098.common.Transform
-
The current rotation of the Component
S
- scale - Variable in class org.alban098.common.Transform
-
The current scale of the Component
- scale(float) - Method in class org.alban098.common.Transform
-
Scale the Transform by a set amount, on both axis
- scale(Vector2f) - Method in class org.alban098.common.Transform
-
Scale the Transform by a set amount
- setDisplacement(float, float) - Method in class org.alban098.common.Transform
-
Sets the displacement of the Transform
- setDisplacement(Vector2f) - Method in class org.alban098.common.Transform
-
Sets the displacement of the Transform
- setRequestedState() - Method in class org.alban098.common.Transform
-
Applies the requested state to the current state
- setRotation(float) - Method in class org.alban098.common.Transform
-
Sets the new rotation of the Transform around the Z axis
- setScale(float, float) - Method in class org.alban098.common.Transform
-
Sets the scale of the Transform
- setScale(Vector2f) - Method in class org.alban098.common.Transform
-
Sets the scale of the Transform
T
- Timer - Class in org.alban098.common
-
This class represent an accurate timer used to calculate update and frame times
- Timer() - Constructor for class org.alban098.common.Timer
-
Creates and initializes a new Timer
- toFloatBuffer() - Method in class org.alban098.common.Transform
-
Returns a
Buffercontaining the transformation matrix - transform - Variable in class org.alban098.common.Entity
- Transform - Class in org.alban098.common
-
an Element allowing an Entity to be moved, scaled and rotated in the world
- Transform() - Constructor for class org.alban098.common.Transform
-
Creates a new Transform
- Transform(Vector2f, float, float) - Constructor for class org.alban098.common.Transform
-
Creates a new Transform with set values
- Transform(Vector2f, Vector2f, float) - Constructor for class org.alban098.common.Transform
-
Creates a new Transform with set values
- TransformUtils - Class in org.alban098.common
-
Just a utility class to help with transformation matrix manipulation
- TransformUtils() - Constructor for class org.alban098.common.TransformUtils
-
An empty private constructor to block instantiation
U
- updateMatrix() - Method in class org.alban098.common.Transform
-
Recomputes the transformation matrix
All Classes and Interfaces|All Packages