|
libgdx API | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of Matrix4 in com.badlogic.gdx.graphics |
---|
Fields in com.badlogic.gdx.graphics declared as Matrix4 | |
---|---|
Matrix4 |
Camera.combined
the combined projection and view matrix |
Matrix4 |
Camera.invProjectionView
the inverse combined projection and view matrix |
Matrix4 |
Camera.projection
the projection matrix |
Matrix4 |
Camera.view
the view matrix |
Uses of Matrix4 in com.badlogic.gdx.graphics.g2d |
---|
Methods in com.badlogic.gdx.graphics.g2d that return Matrix4 | |
---|---|
Matrix4 |
SpriteBatch.getProjectionMatrix()
Returns the current projection matrix. |
Matrix4 |
SpriteCache.getProjectionMatrix()
|
Matrix4 |
SpriteBatch.getTransformMatrix()
Returns the current transform matrix. |
Matrix4 |
SpriteCache.getTransformMatrix()
|
Methods in com.badlogic.gdx.graphics.g2d with parameters of type Matrix4 | |
---|---|
void |
SpriteBatch.setProjectionMatrix(Matrix4 projection)
Sets the projection matrix to be used by this SpriteBatch. |
void |
SpriteCache.setProjectionMatrix(Matrix4 projection)
|
void |
SpriteBatch.setTransformMatrix(Matrix4 transform)
Sets the transform matrix to be used by this SpriteBatch. |
void |
SpriteCache.setTransformMatrix(Matrix4 transform)
|
Uses of Matrix4 in com.badlogic.gdx.graphics.g2d.tiled |
---|
Methods in com.badlogic.gdx.graphics.g2d.tiled that return Matrix4 | |
---|---|
Matrix4 |
TileMapRenderer.getProjectionMatrix()
|
Matrix4 |
TileMapRenderer.getTransformMatrix()
|
Uses of Matrix4 in com.badlogic.gdx.graphics.glutils |
---|
Methods in com.badlogic.gdx.graphics.glutils with parameters of type Matrix4 | |
---|---|
void |
ImmediateModeRenderer.begin(Matrix4 projModelView,
int primitiveType)
|
void |
ImmediateModeRenderer10.begin(Matrix4 projModelView,
int primitiveType)
|
void |
ImmediateModeRenderer20.begin(Matrix4 projModelView,
int primitiveType)
|
void |
ShapeRenderer.setProjectionMatrix(Matrix4 matrix)
Sets the projection matrix to be used for rendering. |
void |
ShapeRenderer.setTransformMatrix(Matrix4 matrix)
|
void |
ShaderProgram.setUniformMatrix(java.lang.String name,
Matrix4 matrix)
Sets the uniform matrix with the given name. |
void |
ShaderProgram.setUniformMatrix(java.lang.String name,
Matrix4 matrix,
boolean transpose)
Sets the uniform matrix with the given name. |
Uses of Matrix4 in com.badlogic.gdx.math |
---|
Methods in com.badlogic.gdx.math that return Matrix4 | |
---|---|
Matrix4 |
Matrix4.cpy()
|
Matrix4 |
Matrix4.idt()
Sets the matrix to an identity matrix |
Matrix4 |
Matrix4.inv()
Inverts the matrix. |
Matrix4 |
Matrix4.mul(Matrix4 matrix)
Multiplies this matrix with the given matrix, storing the result in this matrix. |
Matrix4 |
Matrix4.rotate(float axisX,
float axisY,
float axisZ,
float angle)
Postmultiplies this matrix with a (counter-clockwise) rotation matrix. |
Matrix4 |
Matrix4.scale(float scaleX,
float scaleY,
float scaleZ)
Postmultiplies this matrix with a scale matrix. |
Matrix4 |
Matrix4.set(float[] values)
Sets the matrix to the given matrix as a float array. |
Matrix4 |
Matrix4.set(Matrix3 mat)
Sets this matrix to the given 3x3 matrix. |
Matrix4 |
Matrix4.set(Matrix4 matrix)
Sets the matrix to the given matrix. |
Matrix4 |
Matrix4.set(Quaternion quaternion)
Sets the matrix to a rotation matrix representing the quaternion. |
Matrix4 |
Matrix4.setFromEulerAngles(float yaw,
float pitch,
float roll)
Sets this matrix to a rotation matrix from the given euler angles. |
Matrix4 |
Matrix4.setToLookAt(Vector3 direction,
Vector3 up)
Sets the matrix to a look at matrix with a direction and an up vector. |
Matrix4 |
Matrix4.setToLookAt(Vector3 position,
Vector3 target,
Vector3 up)
Sets this matrix to a look at matrix with the given position, target and up vector. |
Matrix4 |
Matrix4.setToOrtho(float left,
float right,
float bottom,
float top,
float near,
float far)
Sets the matrix to an orthographic projection like glOrtho (http://www.opengl.org/sdk/docs/man/xhtml/glOrtho.xml) following the OpenGL equivalent |
Matrix4 |
Matrix4.setToOrtho2D(float x,
float y,
float width,
float height)
Sets this matrix to an orthographic projection matrix with the origin at (x,y) extending by width and height. |
Matrix4 |
Matrix4.setToOrtho2D(float x,
float y,
float width,
float height,
float near,
float far)
Sets this matrix to an orthographic projection matrix with the origin at (x,y) extending by width and height, having a near and far plane. |
Matrix4 |
Matrix4.setToProjection(float near,
float far,
float fov,
float aspectRatio)
Sets the matrix to a projection matrix with a near- and far plane, a field of view in degrees and an aspect ratio. |
Matrix4 |
Matrix4.setToRotation(float axisX,
float axisY,
float axisZ,
float angle)
Sets the matrix to a rotation matrix around the given axis. |
Matrix4 |
Matrix4.setToRotation(Vector3 axis,
float angle)
Sets the matrix to a rotation matrix around the given axis. |
Matrix4 |
Matrix4.setToScaling(float x,
float y,
float z)
Sets this matrix to a scaling matrix |
Matrix4 |
Matrix4.setToScaling(Vector3 vector)
Sets this matrix to a scaling matrix |
Matrix4 |
Matrix4.setToTranslation(float x,
float y,
float z)
Sets this matrix to a translation matrix, overwriting it first by an identity matrix and then setting the 4th column to the translation vector. |
Matrix4 |
Matrix4.setToTranslation(Vector3 vector)
Sets this matrix to a translation matrix, overwriting it first by an identity matrix and then setting the 4th column to the translation vector. |
Matrix4 |
Matrix4.setToTranslationAndScaling(float translationX,
float translationY,
float translationZ,
float scalingX,
float scalingY,
float scalingZ)
Sets this matrix to a translation and scaling matrix by first overwritting it with an identity and then setting the translation vector in the 4th column and the scaling vector in the diagonal. |
Matrix4 |
Matrix4.setToTranslationAndScaling(Vector3 translation,
Vector3 scaling)
Sets this matrix to a translation and scaling matrix by first overwritting it with an identity and then setting the translation vector in the 4th column and the scaling vector in the diagonal. |
Matrix4 |
Matrix4.setToWorld(Vector3 position,
Vector3 forward,
Vector3 up)
|
Matrix4 |
Matrix4.toNormalMatrix()
removes the translational part and transposes the matrix. |
Matrix4 |
Matrix4.tra()
Transposes the matrix |
Matrix4 |
Matrix4.translate(float x,
float y,
float z)
Postmultiplies this matrix by a translation matrix. |
Matrix4 |
Matrix4.trn(float x,
float y,
float z)
Adds a translational component to the matrix in the 4th column. |
Matrix4 |
Matrix4.trn(Vector3 vector)
Adds a translational component to the matrix in the 4th column. |
Methods in com.badlogic.gdx.math with parameters of type Matrix4 | |
---|---|
void |
Matrix4.lerp(Matrix4 matrix,
float alpha)
Linearly interpolates between this matrix and the given matrix mixing by alpha |
Matrix4 |
Matrix4.mul(Matrix4 matrix)
Multiplies this matrix with the given matrix, storing the result in this matrix. |
Vector3 |
Vector3.mul(Matrix4 matrix)
Multiplies the vector by the given matrix. |
Vector3 |
Vector3.prj(Matrix4 matrix)
Multiplies this vector by the given matrix dividing by w. |
Vector3 |
Vector3.rot(Matrix4 matrix)
Multiplies this vector by the first three columns of the matrix, essentially only applying rotation and scaling. |
Matrix4 |
Matrix4.set(Matrix4 matrix)
Sets the matrix to the given matrix. |
Quaternion |
Quaternion.setFromMatrix(Matrix4 matrix)
|
void |
Frustum.update(Matrix4 inverseProjectionView)
Updates the clipping plane's based on the given inverse combined projection and view matrix, e.g. |
Constructors in com.badlogic.gdx.math with parameters of type Matrix4 | |
---|---|
Matrix4(Matrix4 matrix)
Constructs a matrix from the given matrix |
Uses of Matrix4 in com.badlogic.gdx.math.collision |
---|
Methods in com.badlogic.gdx.math.collision with parameters of type Matrix4 | |
---|---|
BoundingBox |
BoundingBox.mul(Matrix4 matrix)
Multiplies the bounding box by the given matrix. |
Ray |
Ray.mul(Matrix4 matrix)
Multiplies the ray by the given matrix. |
Uses of Matrix4 in com.badlogic.gdx.physics.box2d |
---|
Methods in com.badlogic.gdx.physics.box2d with parameters of type Matrix4 | |
---|---|
void |
Box2DDebugRenderer.render(World world,
Matrix4 projMatrix)
This assumes that the projection matrix has already been set. |
Uses of Matrix4 in com.badlogic.gdx.scenes.scene2d |
---|
Fields in com.badlogic.gdx.scenes.scene2d declared as Matrix4 | |
---|---|
protected Matrix4 |
Group.batchTransform
|
protected Matrix4 |
Group.oldBatchTransform
|
Methods in com.badlogic.gdx.scenes.scene2d that return Matrix4 | |
---|---|
protected Matrix4 |
Group.updateTransform()
|
Uses of Matrix4 in com.badlogic.gdx.scenes.scene2d.ui.utils |
---|
Methods in com.badlogic.gdx.scenes.scene2d.ui.utils with parameters of type Matrix4 | |
---|---|
static void |
ScissorStack.calculateScissors(Camera camera,
Matrix4 batchTransform,
Rectangle area,
Rectangle scissor)
Calculates a scissor rectangle in OpenGL ES window coordinates from a Camera , a transformation Matrix4 and
an axis aligned Rectangle . |
static void |
ScissorStack.toWindowCoordinates(Camera camera,
Matrix4 transformMatrix,
Vector2 point)
Transforms a point to real window coordinates (as oposed to OpenGL ES window coordinates), where the origin is in the top left and the the y-axis is pointing downwards |
|
libgdx API | |||||||||
PREV NEXT | FRAMES NO FRAMES |