public interface GLMatrixFunc
Modifier and Type | Field and Description |
---|---|
static int |
GL_MATRIX_MODE |
static int |
GL_MODELVIEW
Matrix mode modelview
|
static int |
GL_MODELVIEW_MATRIX
Matrix access name for modelview
|
static int |
GL_PROJECTION
Matrix mode projection
|
static int |
GL_PROJECTION_MATRIX
Matrix access name for projection
|
static int |
GL_TEXTURE_MATRIX
Matrix access name for texture
|
Modifier and Type | Method and Description |
---|---|
void |
glFrustumf(float left,
float right,
float bottom,
float top,
float zNear,
float zFar)
Multiply the current matrix with the frustum matrix. |
void |
glGetFloatv(int pname,
float[] params,
int params_offset)
Copy the named matrix to the given storage at offset.
|
void |
glGetFloatv(int pname,
FloatBuffer params)
Copy the named matrix into the given storage.
|
void |
glGetIntegerv(int pname,
int[] params,
int params_offset) |
void |
glGetIntegerv(int pname,
IntBuffer params)
glGetIntegerv
|
void |
glLoadIdentity()
Load the current matrix with the identity matrix
|
void |
glLoadMatrixf(float[] m,
int m_offset)
Load the current matrix w/ the provided one.
|
void |
glLoadMatrixf(FloatBuffer m)
Load the current matrix w/ the provided one.
|
void |
glMatrixMode(int mode)
Sets the current matrix mode.
|
void |
glMultMatrixf(float[] m,
int m_offset)
Multiply the current matrix: [c] = [c] x [m]
|
void |
glMultMatrixf(FloatBuffer m)
Multiply the current matrix: [c] = [c] x [m]
|
void |
glOrthof(float left,
float right,
float bottom,
float top,
float zNear,
float zFar)
Multiply the current matrix with the orthogonal matrix. |
void |
glPopMatrix()
Pop the current matrix from it's stack.
|
void |
glPushMatrix()
Push the current matrix to it's stack, while preserving it's values.
|
void |
glRotatef(float angle,
float x,
float y,
float z)
Rotate the current matrix.
|
void |
glScalef(float x,
float y,
float z)
Scale the current matrix.
|
void |
glTranslatef(float x,
float y,
float z)
Translate the current matrix.
|
static final int GL_MATRIX_MODE
static final int GL_MODELVIEW
static final int GL_PROJECTION
static final int GL_MODELVIEW_MATRIX
static final int GL_PROJECTION_MATRIX
static final int GL_TEXTURE_MATRIX
void glGetFloatv(int pname, FloatBuffer params)
pname
- GL_MODELVIEW_MATRIX
, GL_PROJECTION_MATRIX
or GL_TEXTURE_MATRIX
params
- the FloatBuffer's position remains unchanged,
which is the same behavior than the native JOGL GL implvoid glGetFloatv(int pname, float[] params, int params_offset)
pname
- GL_MODELVIEW_MATRIX
, GL_PROJECTION_MATRIX
or GL_TEXTURE_MATRIX
params
- storageparams_offset
- storage offsetvoid glGetIntegerv(int pname, IntBuffer params)
pname
- GL_MATRIX_MODE
to receive the current matrix modeparams
- the FloatBuffer's position remains unchanged
which is the same behavior than the native JOGL GL implvoid glGetIntegerv(int pname, int[] params, int params_offset)
void glMatrixMode(int mode)
mode
- GL_MODELVIEW
, GL_PROJECTION
or GL_TEXTURE
.void glPushMatrix()
There exist one stack per matrix mode, i.e. GL_MODELVIEW
, GL_PROJECTION
and GL_TEXTURE
.
void glPopMatrix()
glPushMatrix()
void glLoadIdentity()
void glLoadMatrixf(FloatBuffer m)
params
- the FloatBuffer's position remains unchanged,
which is the same behavior than the native JOGL GL implvoid glLoadMatrixf(float[] m, int m_offset)
void glMultMatrixf(FloatBuffer m)
m
- the FloatBuffer's position remains unchanged,
which is the same behavior than the native JOGL GL implvoid glMultMatrixf(float[] m, int m_offset)
void glTranslatef(float x, float y, float z)
void glRotatef(float angle, float x, float y, float z)
void glScalef(float x, float y, float z)
void glOrthof(float left, float right, float bottom, float top, float zNear, float zFar)
Multiply
the current matrix with the orthogonal matrix.void glFrustumf(float left, float right, float bottom, float top, float zNear, float zFar)
Multiply
the current matrix with the frustum matrix.Copyright 2010 JogAmp Community.