JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.fixedfunc.GLMatrixFunc Interface Reference

Subset of OpenGL fixed function pipeline's matrix operations. More...

Inheritance diagram for com.jogamp.opengl.fixedfunc.GLMatrixFunc:
Collaboration diagram for com.jogamp.opengl.fixedfunc.GLMatrixFunc:

Public Member Functions

void glGetFloatv (int pname, java.nio.FloatBuffer params)
 Copy the named matrix into the given storage. More...
 
void glGetFloatv (int pname, float[] params, int params_offset)
 Copy the named matrix to the given storage at offset. More...
 
void glGetIntegerv (int pname, IntBuffer params)
 glGetIntegerv More...
 
void glGetIntegerv (int pname, int[] params, int params_offset)
 
void glMatrixMode (int mode)
 Sets the current matrix mode. More...
 
void glPushMatrix ()
 Push the current matrix to it's stack, while preserving it's values. More...
 
void glPopMatrix ()
 Pop the current matrix from it's stack. More...
 
void glLoadIdentity ()
 Load the current matrix with the identity matrix. More...
 
void glLoadMatrixf (java.nio.FloatBuffer m)
 Load the current matrix w/ the provided one. More...
 
void glLoadMatrixf (float[] m, int m_offset)
 Load the current matrix w/ the provided one. More...
 
void glMultMatrixf (java.nio.FloatBuffer m)
 Multiply the current matrix: [c] = [c] x [m]. More...
 
void glMultMatrixf (float[] m, int m_offset)
 Multiply the current matrix: [c] = [c] x [m]. More...
 
void glTranslatef (float x, float y, float z)
 Translate the current matrix. More...
 
void glRotatef (float angle, float x, float y, float z)
 Rotate the current matrix. More...
 
void glScalef (float x, float y, float z)
 Scale the current matrix. More...
 
void glOrthof (float left, float right, float bottom, float top, float zNear, float zFar)
 Multiply the current matrix with the orthogonal matrix. More...
 
void glFrustumf (float left, float right, float bottom, float top, float zNear, float zFar)
 Multiply the current matrix with the frustum matrix. More...
 

Static Public Attributes

static final int GL_MATRIX_MODE = 0x0BA0
 
static final int GL_MODELVIEW = 0x1700
 Matrix mode modelview. More...
 
static final int GL_PROJECTION = 0x1701
 Matrix mode projection. More...
 
static final int GL_MODELVIEW_MATRIX = 0x0BA6
 Matrix access name for modelview. More...
 
static final int GL_PROJECTION_MATRIX = 0x0BA7
 Matrix access name for projection. More...
 
static final int GL_TEXTURE_MATRIX = 0x0BA8
 Matrix access name for texture. More...
 

Detailed Description

Subset of OpenGL fixed function pipeline's matrix operations.

Definition at line 39 of file GLMatrixFunc.java.

Member Function Documentation

◆ glFrustumf()

void com.jogamp.opengl.fixedfunc.GLMatrixFunc.glFrustumf ( float  left,
float  right,
float  bottom,
float  top,
float  zNear,
float  zFar 
)

Multiply the current matrix with the frustum matrix.

Implemented in com.jogamp.opengl.util.PMVMatrix, com.jogamp.opengl.DebugGL4bc, com.jogamp.opengl.DebugGLES1, com.jogamp.opengl.TraceGL4bc, and com.jogamp.opengl.TraceGLES1.

Here is the caller graph for this function:

◆ glGetFloatv() [1/2]

void com.jogamp.opengl.fixedfunc.GLMatrixFunc.glGetFloatv ( int  pname,
float[]  params,
int  params_offset 
)

Copy the named matrix to the given storage at offset.

Parameters
pnameGL_MODELVIEW_MATRIX, GL_PROJECTION_MATRIX or GL_TEXTURE_MATRIX
paramsstorage
params_offsetstorage offset

Implemented in com.jogamp.opengl.util.PMVMatrix, com.jogamp.opengl.DebugGL4bc, com.jogamp.opengl.DebugGLES1, com.jogamp.opengl.TraceGL4bc, and com.jogamp.opengl.TraceGLES1.

◆ glGetFloatv() [2/2]

void com.jogamp.opengl.fixedfunc.GLMatrixFunc.glGetFloatv ( int  pname,
java.nio.FloatBuffer  params 
)

Copy the named matrix into the given storage.

Parameters
pnameGL_MODELVIEW_MATRIX, GL_PROJECTION_MATRIX or GL_TEXTURE_MATRIX
paramsthe FloatBuffer's position remains unchanged, which is the same behavior than the native JOGL GL impl

Implemented in com.jogamp.opengl.DebugGL4bc, com.jogamp.opengl.DebugGLES1, com.jogamp.opengl.TraceGL4bc, and com.jogamp.opengl.TraceGLES1.

◆ glGetIntegerv() [1/2]

void com.jogamp.opengl.fixedfunc.GLMatrixFunc.glGetIntegerv ( int  pname,
int[]  params,
int  params_offset 
)

◆ glGetIntegerv() [2/2]

void com.jogamp.opengl.fixedfunc.GLMatrixFunc.glGetIntegerv ( int  pname,
IntBuffer  params 
)

glGetIntegerv

Parameters
pnameGL_MATRIX_MODE to receive the current matrix mode
paramsthe FloatBuffer's position remains unchanged which is the same behavior than the native JOGL GL impl

Implemented in com.jogamp.opengl.util.PMVMatrix.

◆ glLoadIdentity()

void com.jogamp.opengl.fixedfunc.GLMatrixFunc.glLoadIdentity ( )

Load the current matrix with the identity matrix.

Implemented in com.jogamp.opengl.DebugGL4bc, com.jogamp.opengl.DebugGLES1, com.jogamp.opengl.TraceGL4bc, com.jogamp.opengl.TraceGLES1, and com.jogamp.opengl.util.PMVMatrix.

Here is the caller graph for this function:

◆ glLoadMatrixf() [1/2]

void com.jogamp.opengl.fixedfunc.GLMatrixFunc.glLoadMatrixf ( float[]  m,
int  m_offset 
)

◆ glLoadMatrixf() [2/2]

void com.jogamp.opengl.fixedfunc.GLMatrixFunc.glLoadMatrixf ( java.nio.FloatBuffer  m)

Load the current matrix w/ the provided one.

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

Implemented in com.jogamp.opengl.util.PMVMatrix, com.jogamp.opengl.DebugGL4bc, com.jogamp.opengl.DebugGLES1, com.jogamp.opengl.TraceGL4bc, and com.jogamp.opengl.TraceGLES1.

Here is the caller graph for this function:

◆ glMatrixMode()

void com.jogamp.opengl.fixedfunc.GLMatrixFunc.glMatrixMode ( int  mode)

Sets the current matrix mode.

Parameters
modeGL_MODELVIEW, GL_PROJECTION or GL_TEXTURE.

Implemented in com.jogamp.opengl.util.PMVMatrix, com.jogamp.opengl.DebugGL4bc, com.jogamp.opengl.DebugGLES1, com.jogamp.opengl.TraceGL4bc, and com.jogamp.opengl.TraceGLES1.

Here is the caller graph for this function:

◆ glMultMatrixf() [1/2]

void com.jogamp.opengl.fixedfunc.GLMatrixFunc.glMultMatrixf ( float[]  m,
int  m_offset 
)

◆ glMultMatrixf() [2/2]

void com.jogamp.opengl.fixedfunc.GLMatrixFunc.glMultMatrixf ( java.nio.FloatBuffer  m)

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

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

Implemented in com.jogamp.opengl.DebugGL4bc, com.jogamp.opengl.DebugGLES1, com.jogamp.opengl.TraceGL4bc, and com.jogamp.opengl.TraceGLES1.

Here is the caller graph for this function:

◆ glOrthof()

void com.jogamp.opengl.fixedfunc.GLMatrixFunc.glOrthof ( float  left,
float  right,
float  bottom,
float  top,
float  zNear,
float  zFar 
)

Multiply the current matrix with the orthogonal matrix.

Implemented in com.jogamp.opengl.util.PMVMatrix, com.jogamp.opengl.DebugGL4bc, com.jogamp.opengl.DebugGLES1, com.jogamp.opengl.TraceGL4bc, and com.jogamp.opengl.TraceGLES1.

Here is the caller graph for this function:

◆ glPopMatrix()

void com.jogamp.opengl.fixedfunc.GLMatrixFunc.glPopMatrix ( )

Pop the current matrix from it's stack.

See also
glPushMatrix()

Implemented in com.jogamp.opengl.DebugGL4bc, com.jogamp.opengl.DebugGLES1, com.jogamp.opengl.TraceGL4bc, com.jogamp.opengl.TraceGLES1, and com.jogamp.opengl.util.PMVMatrix.

Here is the caller graph for this function:

◆ glPushMatrix()

void com.jogamp.opengl.fixedfunc.GLMatrixFunc.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.

Implemented in com.jogamp.opengl.DebugGL4bc, com.jogamp.opengl.DebugGLES1, com.jogamp.opengl.TraceGL4bc, com.jogamp.opengl.TraceGLES1, and com.jogamp.opengl.util.PMVMatrix.

Here is the caller graph for this function:

◆ glRotatef()

void com.jogamp.opengl.fixedfunc.GLMatrixFunc.glRotatef ( float  angle,
float  x,
float  y,
float  z 
)

Rotate the current matrix.

Implemented in com.jogamp.opengl.util.PMVMatrix, com.jogamp.opengl.DebugGL4bc, com.jogamp.opengl.DebugGLES1, com.jogamp.opengl.TraceGL4bc, and com.jogamp.opengl.TraceGLES1.

Here is the caller graph for this function:

◆ glScalef()

void com.jogamp.opengl.fixedfunc.GLMatrixFunc.glScalef ( float  x,
float  y,
float  z 
)

Scale the current matrix.

Implemented in com.jogamp.opengl.util.PMVMatrix, com.jogamp.opengl.DebugGL4bc, com.jogamp.opengl.DebugGLES1, com.jogamp.opengl.TraceGL4bc, and com.jogamp.opengl.TraceGLES1.

Here is the caller graph for this function:

◆ glTranslatef()

void com.jogamp.opengl.fixedfunc.GLMatrixFunc.glTranslatef ( float  x,
float  y,
float  z 
)

Translate the current matrix.

Implemented in com.jogamp.opengl.util.PMVMatrix, com.jogamp.opengl.DebugGL4bc, com.jogamp.opengl.DebugGLES1, com.jogamp.opengl.TraceGL4bc, and com.jogamp.opengl.TraceGLES1.

Here is the caller graph for this function:

Member Data Documentation

◆ GL_MATRIX_MODE

final int com.jogamp.opengl.fixedfunc.GLMatrixFunc.GL_MATRIX_MODE = 0x0BA0
static

Definition at line 41 of file GLMatrixFunc.java.

◆ GL_MODELVIEW

final int com.jogamp.opengl.fixedfunc.GLMatrixFunc.GL_MODELVIEW = 0x1700
static

Matrix mode modelview.

Definition at line 43 of file GLMatrixFunc.java.

◆ GL_MODELVIEW_MATRIX

final int com.jogamp.opengl.fixedfunc.GLMatrixFunc.GL_MODELVIEW_MATRIX = 0x0BA6
static

Matrix access name for modelview.

Definition at line 48 of file GLMatrixFunc.java.

◆ GL_PROJECTION

final int com.jogamp.opengl.fixedfunc.GLMatrixFunc.GL_PROJECTION = 0x1701
static

Matrix mode projection.

Definition at line 45 of file GLMatrixFunc.java.

◆ GL_PROJECTION_MATRIX

final int com.jogamp.opengl.fixedfunc.GLMatrixFunc.GL_PROJECTION_MATRIX = 0x0BA7
static

Matrix access name for projection.

Definition at line 50 of file GLMatrixFunc.java.

◆ GL_TEXTURE_MATRIX

final int com.jogamp.opengl.fixedfunc.GLMatrixFunc.GL_TEXTURE_MATRIX = 0x0BA8
static

Matrix access name for texture.

Definition at line 52 of file GLMatrixFunc.java.


The documentation for this interface was generated from the following file: