Top Description Fields Methods
com.jogamp.opengl.fixedfunc

public Interface GLMatrixFunc

Known Direct Subinterfaces
com.jogamp.opengl.GL2ES1
Known Direct Implementers
com.jogamp.opengl.util.PMVMatrix, jogamp.opengl.util.glsl.fixedfunc.FixedFuncHook, jogamp.opengl.util.glsl.fixedfunc.FixedFuncImpl
Imports
java.nio.*, com.jogamp.opengl.GL

Subset of OpenGL fixed function pipeline's matrix operations.

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
GL_MODELVIEW

Matrix mode modelview

public static final int
GL_MODELVIEW_MATRIX

Matrix access name for modelview

public static final int
GL_PROJECTION

Matrix mode projection

public static final int
GL_PROJECTION_MATRIX

Matrix access name for projection

public static final int
GL_TEXTURE_MATRIX

Matrix access name for texture

Method Summary

Modifier and TypeMethod and Description
public void
glFrustumf(float left, float right, float bottom, float top, float zNear, float zFar)

Multiply the current matrix with the frustum matrix.

public void
glGetFloatv(int pname, FloatBuffer
the FloatBuffer's position remains unchanged, which is the same behavior than the native JOGL GL impl
params
)

Copy the named matrix into the given storage.

public void
glGetFloatv(int pname, float[]
storage
params
,
int
storage offset
params_offset
)

Copy the named matrix to the given storage at offset.

public void
glGetIntegerv(int
GL_MATRIX_MODE to receive the current matrix mode
pname
,
IntBuffer
the FloatBuffer's position remains unchanged which is the same behavior than the native JOGL GL impl
params
)

glGetIntegerv

public void
glGetIntegerv(int pname, int[] params, int params_offset)

public void
glLoadIdentity()

Load the current matrix with the identity matrix

public void
glLoadMatrixf(FloatBuffer
the FloatBuffer's position remains unchanged, which is the same behavior than the native JOGL GL impl
m
)

Load the current matrix w/ the provided one.

public void
glLoadMatrixf(float[] m, int m_offset)

Load the current matrix w/ the provided one.

public void
glMatrixMode(int mode)

Sets the current matrix mode.

public void
glMultMatrixf(FloatBuffer
the FloatBuffer's position remains unchanged, which is the same behavior than the native JOGL GL impl
m
)

Multiply the current matrix: [c] = [c] x [m]

public void
glMultMatrixf(float[] m, int m_offset)

Multiply the current matrix: [c] = [c] x [m]

public void
glOrthof(float left, float right, float bottom, float top, float zNear, float zFar)

Multiply the current matrix with the orthogonal matrix.

public void
glPopMatrix()

Pop the current matrix from it's stack.

public void
glPushMatrix()

Push the current matrix to it's stack, while preserving it's values.

public void
glRotatef(float angle, float x, float y, float z)

Rotate the current matrix.

public void
glScalef(float x, float y, float z)

Scale the current matrix.

public void
glTranslatef(float x, float y, float z)

Translate the current matrix.

Field Detail

GL_MATRIX_MODEback to summary
public static final int GL_MATRIX_MODE
GL_MODELVIEWback to summary
public static final int GL_MODELVIEW

Matrix mode modelview

GL_MODELVIEW_MATRIXback to summary
public static final int GL_MODELVIEW_MATRIX

Matrix access name for modelview

GL_PROJECTIONback to summary
public static final int GL_PROJECTION

Matrix mode projection

GL_PROJECTION_MATRIXback to summary
public static final int GL_PROJECTION_MATRIX

Matrix access name for projection

GL_TEXTURE_MATRIXback to summary
public static final int GL_TEXTURE_MATRIX

Matrix access name for texture

Method Detail

glFrustumfback to summary
public void glFrustumf(float left, float right, float bottom, float top, float zNear, float zFar)

Multiply the current matrix with the frustum matrix.

glGetFloatvback to summary
public void glGetFloatv(int pname, FloatBuffer params)

Copy the named matrix into the given storage.

Parameters
pname:int

GL_MODELVIEW_MATRIX, GL_PROJECTION_MATRIX or GL_TEXTURE_MATRIX

params:FloatBuffer

the FloatBuffer's position remains unchanged, which is the same behavior than the native JOGL GL impl

glGetFloatvback to summary
public void glGetFloatv(int pname, float[] params, int params_offset)

Copy the named matrix to the given storage at offset.

Parameters
pname:int

GL_MODELVIEW_MATRIX, GL_PROJECTION_MATRIX or GL_TEXTURE_MATRIX

params:float[]

storage

params_offset:int

storage offset

glGetIntegervback to summary
public void glGetIntegerv(int pname, IntBuffer params)

glGetIntegerv

Parameters
pname:int

GL_MATRIX_MODE to receive the current matrix mode

params:IntBuffer

the FloatBuffer's position remains unchanged which is the same behavior than the native JOGL GL impl

glGetIntegervback to summary
public void glGetIntegerv(int pname, int[] params, int params_offset)
glLoadIdentityback to summary
public void glLoadIdentity()

Load the current matrix with the identity matrix

glLoadMatrixfback to summary
public void glLoadMatrixf(FloatBuffer m)

Load the current matrix w/ the provided one.

Parameters
m:FloatBuffer

the FloatBuffer's position remains unchanged, which is the same behavior than the native JOGL GL impl

glLoadMatrixfback to summary
public void glLoadMatrixf(float[] m, int m_offset)

Load the current matrix w/ the provided one.

glMatrixModeback to summary
public void glMatrixMode(int mode)

Sets the current matrix mode.

Parameters
mode:int

GL_MODELVIEW, GL_PROJECTION or GL_TEXTURE.

glMultMatrixfback to summary
public void glMultMatrixf(FloatBuffer m)

Multiply the current matrix: [c] = [c] x [m]

Parameters
m:FloatBuffer

the FloatBuffer's position remains unchanged, which is the same behavior than the native JOGL GL impl

glMultMatrixfback to summary
public void glMultMatrixf(float[] m, int m_offset)

Multiply the current matrix: [c] = [c] x [m]

glOrthofback to summary
public void glOrthof(float left, float right, float bottom, float top, float zNear, float zFar)

Multiply the current matrix with the orthogonal matrix.

glPopMatrixback to summary
public void glPopMatrix()

Pop the current matrix from it's stack.

See Also
glPushMatrix()
glPushMatrixback to summary
public void glPushMatrix()

Push the current matrix to it's stack, while preserving it's values.

There exist one stack per matrix mode, i.e. GL_MODELVIEW, GL_PROJECTION and GL_TEXTURE.

glRotatefback to summary
public void glRotatef(float angle, float x, float y, float z)

Rotate the current matrix.

glScalefback to summary
public void glScalef(float x, float y, float z)

Scale the current matrix.

glTranslatefback to summary
public void glTranslatef(float x, float y, float z)

Translate the current matrix.