|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
PMVMatrix implements a subset of the fixed function pipeline GLMatrixFunc using PMVMatrix4f.
More...
Public Member Functions | |
| PMVMatrix () | |
| Creates an instance of PMVMatrix. More... | |
| PMVMatrix (final int derivedMatrices) | |
| Creates an instance of PMVMatrix. More... | |
| void | reset () |
Issues Matrix4f#loadIdentity() on all matrices and resets all internal states. More... | |
| final int | glGetMatrixMode () |
Returns the current matrix-mode, one of GL_MODELVIEW, GL_PROJECTION or GL_TEXTURE. More... | |
| final Matrix4f | getCurrentMat () |
| final Matrix4f | getMat (final int matrixName) |
| final void | glMatrixMode (final int matrixName) |
| Sets the current matrix mode. More... | |
| final void | glGetFloatv (final int matrixGetName, final FloatBuffer params) |
| final void | glGetFloatv (final int matrixGetName, final float[] params, final int params_offset) |
| Copy the named matrix to the given storage at offset. More... | |
| final void | glGetIntegerv (final int pname, final IntBuffer params) |
| glGetIntegerv More... | |
| final void | glGetIntegerv (final int pname, final int[] params, final int params_offset) |
| final void | glLoadMatrixf (final float[] values, final int offset) |
| Load the current matrix w/ the provided one. More... | |
| final void | glLoadMatrixf (final java.nio.FloatBuffer m) |
| Load the current matrix w/ the provided one. More... | |
| final void | glLoadMatrixf (final Matrix4f m) |
Load the current matrix with the values of the given Matrix4f. More... | |
| final void | glLoadMatrix (final Quaternion quat) |
Load the current matrix with the values of the given Quaternion's rotation matrix representation. More... | |
| final void | glLoadIdentity () |
| Load the current matrix with the identity matrix. More... | |
| final void | glMultMatrixf (final FloatBuffer m) |
| final void | glMultMatrixf (final float[] m, final int m_offset) |
| Multiply the current matrix: [c] = [c] x [m]. More... | |
| final PMVMatrix | glMultMatrixf (final Matrix4f m) |
| Multiply the current matrix: [c] = [c] x [m]. More... | |
| final void | glTranslatef (final float x, final float y, final float z) |
| Translate the current matrix. More... | |
| final PMVMatrix | glTranslatef (final Vec3f t) |
| Translate the current matrix. More... | |
| final void | glScalef (final float x, final float y, final float z) |
| Scale the current matrix. More... | |
| final PMVMatrix | glScalef (final Vec3f s) |
| Scale the current matrix. More... | |
| final void | glRotatef (final float ang_deg, final float x, final float y, final float z) |
| Rotate the current matrix. More... | |
| final PMVMatrix | glRotatef (final float ang_rad, final Vec3f axis) |
| Rotate the current matrix by the given axis and angle in radians. More... | |
| final PMVMatrix | glRotate (final Quaternion quat) |
Rotate the current matrix with the given Quaternion's rotation matrix representation. More... | |
| final void | glPopMatrix () |
| Pop the current matrix from it's stack. More... | |
| final void | glPushMatrix () |
| Push the current matrix to it's stack, while preserving it's values. More... | |
| final void | glOrthof (final float left, final float right, final float bottom, final float top, final float zNear, final float zFar) |
Multiply the current matrix with the orthogonal matrix. More... | |
| final void | glFrustumf (final float left, final float right, final float bottom, final float top, final float zNear, final float zFar) throws IllegalArgumentException |
Multiply the current matrix with the frustum matrix. More... | |
| final void | gluPerspective (final float fovy_rad, final float aspect, final float zNear, final float zFar) throws IllegalArgumentException |
Multiply the current matrix with the perspective/frustum matrix. More... | |
| final void | gluLookAt (final Vec3f eye, final Vec3f center, final Vec3f up) |
Multiply the current matrix with the eye, object and orientation, i.e. More... | |
| final void | gluPickMatrix (final float x, final float y, final float deltaX, final float deltaY, final Recti viewport) |
| Make given matrix the pick matrix based on given parameters. More... | |
Public Member Functions inherited from com.jogamp.math.util.PMVMatrix4f | |
| PMVMatrix4f () | |
| Creates an instance of PMVMatrix4f. More... | |
| PMVMatrix4f (final int derivedMatrices) | |
| Creates an instance of PMVMatrix4f. More... | |
| void | reset () |
Issues Matrix4f#loadIdentity() on all matrices and resets all internal states. More... | |
| final Matrix4f | getT () |
Returns the texture matrix (T). More... | |
| final SyncMatrix4f | getSyncT () |
Returns the SyncMatrix of texture matrix (T). More... | |
| final Matrix4f | getP () |
Returns the projection matrix (P). More... | |
| final SyncMatrix4f | getSyncP () |
Returns the SyncMatrix of projection matrix (P). More... | |
| final Matrix4f | getMv () |
Returns the modelview matrix (Mv). More... | |
| final SyncMatrix4f | getSyncMv () |
Returns the SyncMatrix of modelview matrix (Mv). More... | |
| final SyncMatrices4f | getSyncPMv () |
Returns SyncMatrices4f of 2 matrices within one FloatBuffer: P and Mv. More... | |
| final Matrix4f | getMvi () |
Returns the inverse modelview matrix (Mvi) if requested. More... | |
| final SyncMatrix4f | getSyncMvi () |
Returns the SyncMatrix of inverse modelview matrix (Mvi) if requested. More... | |
| final Matrix4f | getMvit () |
Returns the inverse transposed modelview matrix (Mvit) if requested. More... | |
| final SyncMatrix4f | getSyncMvit () |
Returns the SyncMatrix of inverse transposed modelview matrix (Mvit) if requested. More... | |
| final SyncMatrices4f | getSyncPMvMvi () |
Returns SyncMatrices4f of 3 matrices within one FloatBuffer: P, Mv and Mvi if requested. More... | |
| final SyncMatrices4f | getSyncPMvMviMvit () |
Returns SyncMatrices4f of 4 matrices within one FloatBuffer: P, Mv, Mvi and Mvit if requested. More... | |
| final Matrix4f | getMulPMv (final Matrix4f result) |
Returns multiplication result of P and Mv matrix, i.e. More... | |
| final Matrix4f | getMulMvP (final Matrix4f result) |
Returns multiplication result of Mv and P matrix, i.e. More... | |
| final Vec4f | mulWithMv (final Vec4f v_in, final Vec4f v_out) |
| v_out = Mv * v_in More... | |
| final Vec4f | mulWithMv (final Vec4f v_inout) |
| v_inout = Mv * v_inout More... | |
| final Vec3f | mulWithMv (final Vec3f v_in, final Vec3f v_out) |
| v_out = Mv * v_in More... | |
| final PMVMatrix4f | loadMv (final float[] values, final int offset) |
Load the modelview matrix with the provided values. More... | |
| final PMVMatrix4f | loadMv (final java.nio.FloatBuffer m) |
Load the modelview matrix with the provided values. More... | |
| final PMVMatrix4f | loadMv (final Matrix4f m) |
Load the modelview matrix with the values of the given Matrix4f. More... | |
| final PMVMatrix4f | loadMv (final Quaternion quat) |
Load the modelview matrix with the values of the given Quaternion's rotation matrix representation. More... | |
| final PMVMatrix4f | loadP (final float[] values, final int offset) |
Load the projection matrix with the provided values. More... | |
| final PMVMatrix4f | loadP (final java.nio.FloatBuffer m) |
Load the projection matrix with the provided values. More... | |
| final PMVMatrix4f | loadP (final Matrix4f m) |
Load the projection matrix with the values of the given Matrix4f. More... | |
| final PMVMatrix4f | loadP (final Quaternion quat) |
Load the projection matrix with the values of the given Quaternion's rotation matrix representation. More... | |
| final PMVMatrix4f | loadT (final float[] values, final int offset) |
Load the texture matrix with the provided values. More... | |
| final PMVMatrix4f | loadT (final java.nio.FloatBuffer m) |
Load the texture matrix with the provided values. More... | |
| final PMVMatrix4f | loadT (final Matrix4f m) |
Load the texture matrix with the values of the given Matrix4f. More... | |
| final PMVMatrix4f | loadT (final Quaternion quat) |
Load the texture matrix with the values of the given Quaternion's rotation matrix representation. More... | |
| final PMVMatrix4f | loadMvIdentity () |
Load the modelview matrix with the values of the given Matrix4f. More... | |
| final PMVMatrix4f | loadPIdentity () |
Load the projection matrix with the values of the given Matrix4f. More... | |
| final PMVMatrix4f | loadTIdentity () |
Load the texture matrix with the values of the given Matrix4f. More... | |
| final PMVMatrix4f | mulMv (final Matrix4f m) |
Multiply the modelview matrix: [c] = [c] x [m]. More... | |
| final PMVMatrix4f | mulP (final Matrix4f m) |
Multiply the projection matrix: [c] = [c] x [m]. More... | |
| final PMVMatrix4f | mulT (final Matrix4f m) |
Multiply the texture matrix: [c] = [c] x [m]. More... | |
| final PMVMatrix4f | translateMv (final float x, final float y, final float z) |
Translate the modelview matrix. More... | |
| final PMVMatrix4f | translateMv (final Vec3f t) |
Translate the modelview matrix. More... | |
| final PMVMatrix4f | translateP (final float x, final float y, final float z) |
Translate the projection matrix. More... | |
| final PMVMatrix4f | translateP (final Vec3f t) |
Translate the projection matrix. More... | |
| final PMVMatrix4f | scaleMv (final float x, final float y, final float z) |
Scale the modelview matrix. More... | |
| final PMVMatrix4f | scaleMv (final Vec3f s) |
Scale the modelview matrix. More... | |
| final PMVMatrix4f | scaleP (final float x, final float y, final float z) |
Scale the projection matrix. More... | |
| final PMVMatrix4f | scaleP (final Vec3f s) |
Scale the projection matrix. More... | |
| final PMVMatrix4f | rotateMv (final float ang_rad, final float x, final float y, final float z) |
Rotate the modelview matrix by the given axis and angle in radians. More... | |
| final PMVMatrix4f | rotateMv (final float ang_rad, final Vec3f axis) |
Rotate the modelview matrix by the given axis and angle in radians. More... | |
| final PMVMatrix4f | rotateMv (final Quaternion quat) |
Rotate the modelview matrix with the given Quaternion's rotation matrix representation. More... | |
| final PMVMatrix4f | rotateP (final float ang_rad, final float x, final float y, final float z) |
Rotate the projection matrix by the given axis and angle in radians. More... | |
| final PMVMatrix4f | rotateP (final float ang_rad, final Vec3f axis) |
Rotate the projection matrix by the given axis and angle in radians. More... | |
| final PMVMatrix4f | rotateP (final Quaternion quat) |
Rotate the projection matrix with the given Quaternion's rotation matrix representation. More... | |
| final PMVMatrix4f | popMv () |
Pop the modelview matrix from its stack. More... | |
| final PMVMatrix4f | popP () |
Pop the projection matrix from its stack. More... | |
| final PMVMatrix4f | popT () |
Pop the texture matrix from its stack. More... | |
| final PMVMatrix4f | pushMv () |
Push the modelview matrix to its stack, while preserving its values. More... | |
| final PMVMatrix4f | pushP () |
Push the projection matrix to its stack, while preserving its values. More... | |
| final PMVMatrix4f | pushT () |
Push the texture matrix to its stack, while preserving its values. More... | |
| final void | orthoP (final float left, final float right, final float bottom, final float top, final float zNear, final float zFar) |
Multiply the projection matrix with the orthogonal matrix. More... | |
| final void | frustumP (final float left, final float right, final float bottom, final float top, final float zNear, final float zFar) throws IllegalArgumentException |
Multiply the projection matrix with the frustum matrix. More... | |
| final PMVMatrix4f | perspectiveP (final float fovy_rad, final float aspect, final float zNear, final float zFar) throws IllegalArgumentException |
Multiply the projection matrix with the perspective/frustum matrix. More... | |
| final PMVMatrix4f | lookAtP (final Vec3f eye, final Vec3f center, final Vec3f up) |
Multiply the projection matrix with the eye, object and orientation, i.e. More... | |
| final boolean | mapObjToWin (final Vec3f objPos, final Recti viewport, final Vec3f winPos) |
| Map object coordinates to window coordinates. More... | |
| final boolean | mapWinToObj (final float winx, final float winy, final float winz, final Recti viewport, final Vec3f objPos) |
| Map window coordinates to object coordinates. More... | |
| boolean | mapWinToObj4 (final float winx, final float winy, final float winz, final float clipw, final Recti viewport, final float near, final float far, final Vec4f objPos) |
| Map window coordinates to object coordinates. More... | |
| final boolean | mapWinToRay (final float winx, final float winy, final float winz0, final float winz1, final Recti viewport, final Ray ray) |
Map two window coordinates w/ shared X/Y and distinctive Z to a Ray. More... | |
| StringBuilder | toString (StringBuilder sb, final String f) |
| String | toString () |
| final int | getModifiedBits (final boolean clear) |
| Returns the modified bits due to mutable operations. More... | |
| final int | getDirtyBits () |
| Returns the dirty bits due to mutable operations, i.e. More... | |
| final boolean | isReqDirty () |
Returns true if the one of the requested bits are are set dirty due to mutable operations, i.e. More... | |
| final void | setModelviewDirty () |
Sets the Modelview (Mv) matrix dirty and modified, i.e. More... | |
| final void | setProjectionDirty () |
Sets the Projection (P) matrix dirty and modified, i.e. More... | |
| final void | setTextureDirty () |
Sets the Texture (T) matrix modified. More... | |
| final int | getReqBits () |
| Returns the request bit mask, which uses bit values equal to the dirty mask and may contain. More... | |
| final Matrix4f | getPMv () |
| Returns the pre-multiplied projection x modelview, P x Mv. More... | |
| final Matrix4f | getPMvi () |
Returns the pre-multiplied inverse projection x modelview, if Matrix4f#invert(Matrix4f) succeeded, otherwise null. More... | |
| final Frustum | getFrustum () |
| Returns the frustum, derived from projection x modelview. More... | |
| final boolean | update () |
Update the derived inverse modelview (Mvi), inverse transposed modelview (Mvit) matrices if they are dirty and requested via the constructor PMVMatrix4f(int). More... | |
Public Member Functions inherited from com.jogamp.opengl.fixedfunc.GLMatrixFunc | |
| 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 Member Functions | |
| static final boolean | isMatrixModeName (final int matrixModeName) |
| static final int | matrixModeName2MatrixGetName (final int matrixModeName) |
| static final boolean | isMatrixGetName (final int matrixGetName) |
| static final int | matrixGetName2MatrixModeName (final int matrixGetName) |
Additional Inherited Members | |
Static Public Attributes inherited from com.jogamp.math.util.PMVMatrix4f | |
| static final int | MODIFIED_PROJECTION = 1 << 0 |
Bit value stating a modified projection matrix (P), since last update() call. More... | |
| static final int | MODIFIED_MODELVIEW = 1 << 1 |
Bit value stating a modified modelview matrix (Mv), since last update() call. More... | |
| static final int | MODIFIED_TEXTURE = 1 << 2 |
Bit value stating a modified texture matrix (T), since last update() call. More... | |
| static final int | MODIFIED_ALL = MODIFIED_PROJECTION | MODIFIED_MODELVIEW | MODIFIED_TEXTURE |
| Bit value stating all is modified. More... | |
| static final int | INVERSE_MODELVIEW = 1 << 1 |
Bit value for inverse modelview matrix (Mvi), updated via update(). More... | |
| static final int | INVERSE_TRANSPOSED_MODELVIEW = 1 << 2 |
Bit value for inverse transposed modelview matrix (Mvit), updated via update(). More... | |
| static final int | FRUSTUM = 1 << 3 |
Bit value for frustum and updated by getFrustum(). More... | |
| static final int | PREMUL_PMV = 1 << 4 |
Bit value for pre-multiplied P * Mv, updated by getPMv(). More... | |
| static final int | PREMUL_PMVI = 1 << 5 |
Bit value for pre-multiplied invert(P * Mv), updated by getPMvi(). More... | |
| static final int | MANUAL_BITS = FRUSTUM | PREMUL_PMV | PREMUL_PMVI |
Manual bits not covered by update() but getFrustum(), FRUSTUM, getPMv(), PREMUL_PMV, getPMvi(), PREMUL_PMVI, etc. More... | |
Static Public Attributes inherited from com.jogamp.opengl.fixedfunc.GLMatrixFunc | |
| 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... | |
Protected Member Functions inherited from com.jogamp.math.util.PMVMatrix4f | |
| final Matrix4f | getTmp2Mat () |
| Return the second temporary Matrix4f exposed to be reused for efficiency. More... | |
Protected Attributes inherited from com.jogamp.math.util.PMVMatrix4f | |
| final Matrix4f | matP |
| final Matrix4f | matMv |
| final Matrix4f | matTex |
| final Matrix4f | mat4Tmp1 |
PMVMatrix implements a subset of the fixed function pipeline GLMatrixFunc using PMVMatrix4f.
PMVMatrix provides the inverse modelview matrix (Mvi) and inverse transposed modelview matrix (Mvit). Frustum is also provided by getFrustum().
To keep these derived values synchronized after mutable Mv operations like glRotatef(..) in glMatrixMode(GL_MODELVIEW), users have to call update() before using Mvi and Mvit.
PMVMatrix can supplement GL2ES2 applications w/ the lack of the described matrix functionality.
Definition at line 62 of file PMVMatrix.java.
| com.jogamp.opengl.util.PMVMatrix.PMVMatrix | ( | ) |
Creates an instance of PMVMatrix.
This constructor only sets up an instance w/o additional INVERSE_MODELVIEW or INVERSE_TRANSPOSED_MODELVIEW.
Implementation uses non-direct non-NIO Buffers with guaranteed backing array, which are synchronized to the actual Matrix4f instances. This allows faster access in Java computation.
Definition at line 139 of file PMVMatrix.java.
| com.jogamp.opengl.util.PMVMatrix.PMVMatrix | ( | final int | derivedMatrices | ) |
Creates an instance of PMVMatrix.
Additional derived matrices can be requested via derivedMatrices, i.e.
Implementation uses non-direct non-NIO Buffers with guaranteed backing array, which are synchronized to the actual Matrix4f instances. This allows faster access in Java computation.
| derivedMatrices | additional matrices can be requested by passing bits INVERSE_MODELVIEW and INVERSE_TRANSPOSED_MODELVIEW. |
Definition at line 161 of file PMVMatrix.java.
| final Matrix4f com.jogamp.opengl.util.PMVMatrix.getCurrentMat | ( | ) |
Definition at line 190 of file PMVMatrix.java.
| final Matrix4f com.jogamp.opengl.util.PMVMatrix.getMat | ( | final int | matrixName | ) |
| matrixName | Either a matrix-get-name, i.e. GL_MODELVIEW_MATRIX, GL_PROJECTION_MATRIX or GL_TEXTURE_MATRIX, or a matrix-mode-name, i.e. GL_MODELVIEW, GL_PROJECTION or GL_TEXTURE |
Definition at line 201 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.glFrustumf | ( | final float | left, |
| final float | right, | ||
| final float | bottom, | ||
| final float | top, | ||
| final float | zNear, | ||
| final float | zFar | ||
| ) | throws IllegalArgumentException |
Multiply the current matrix with the frustum matrix.
| IllegalArgumentException | if zNear <= 0 or zFar <= zNear or left == right, or bottom == top. |
Implements com.jogamp.opengl.fixedfunc.GLMatrixFunc.
Definition at line 481 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.glGetFloatv | ( | final int | pname, |
| final float[] | params, | ||
| final int | params_offset | ||
| ) |
Copy the named matrix to the given storage at offset.
| pname | GL_MODELVIEW_MATRIX, GL_PROJECTION_MATRIX or GL_TEXTURE_MATRIX |
| params | storage |
| params_offset | storage offset |
Implements com.jogamp.opengl.fixedfunc.GLMatrixFunc.
Definition at line 242 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.glGetFloatv | ( | final int | matrixGetName, |
| final FloatBuffer | params | ||
| ) |
Definition at line 231 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.glGetIntegerv | ( | final int | pname, |
| final int[] | params, | ||
| final int | params_offset | ||
| ) |
Implements com.jogamp.opengl.fixedfunc.GLMatrixFunc.
Definition at line 262 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.glGetIntegerv | ( | final int | pname, |
| final IntBuffer | params | ||
| ) |
glGetIntegerv
| pname | GL_MATRIX_MODE to receive the current matrix mode |
| params | the FloatBuffer's position remains unchanged which is the same behavior than the native JOGL GL impl |
Implements com.jogamp.opengl.fixedfunc.GLMatrixFunc.
Definition at line 251 of file PMVMatrix.java.
| final int com.jogamp.opengl.util.PMVMatrix.glGetMatrixMode | ( | ) |
Returns the current matrix-mode, one of GL_MODELVIEW, GL_PROJECTION or GL_TEXTURE.
Definition at line 183 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.glLoadIdentity | ( | ) |
Load the current matrix with the identity matrix.
Implements com.jogamp.opengl.fixedfunc.GLMatrixFunc.
Definition at line 325 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.glLoadMatrix | ( | final Quaternion | quat | ) |
Load the current matrix with the values of the given Quaternion's rotation matrix representation.
Extension to GLMatrixFunc.
Definition at line 314 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.glLoadMatrixf | ( | final float[] | m, |
| final int | m_offset | ||
| ) |
Load the current matrix w/ the provided one.
Implements com.jogamp.opengl.fixedfunc.GLMatrixFunc.
Definition at line 271 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.glLoadMatrixf | ( | final java.nio.FloatBuffer | m | ) |
Load the current matrix w/ the provided one.
| params | the FloatBuffer's position remains unchanged, which is the same behavior than the native JOGL GL impl |
Implements com.jogamp.opengl.fixedfunc.GLMatrixFunc.
Definition at line 282 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.glLoadMatrixf | ( | final Matrix4f | m | ) |
Load the current matrix with the values of the given Matrix4f.
Extension to GLMatrixFunc.
Definition at line 298 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.glMatrixMode | ( | final int | mode | ) |
Sets the current matrix mode.
| mode | GL_MODELVIEW, GL_PROJECTION or GL_TEXTURE. |
Implements com.jogamp.opengl.fixedfunc.GLMatrixFunc.
Definition at line 218 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.glMultMatrixf | ( | final float[] | m, |
| final int | m_offset | ||
| ) |
Multiply the current matrix: [c] = [c] x [m].
Implements com.jogamp.opengl.fixedfunc.GLMatrixFunc.
Definition at line 349 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.glMultMatrixf | ( | final FloatBuffer | m | ) |
Definition at line 336 of file PMVMatrix.java.
Multiply the current matrix: [c] = [c] x [m].
Extension to GLMatrixFunc.
| m | the right hand Matrix4f |
Definition at line 367 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.glOrthof | ( | final float | left, |
| final float | right, | ||
| final float | bottom, | ||
| final float | top, | ||
| final float | zNear, | ||
| final float | zFar | ||
| ) |
Multiply the current matrix with the orthogonal matrix.
Implements com.jogamp.opengl.fixedfunc.GLMatrixFunc.
Definition at line 469 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.glPopMatrix | ( | ) |
Pop the current matrix from it's stack.
Implements com.jogamp.opengl.fixedfunc.GLMatrixFunc.
Definition at line 447 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.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.
Implements com.jogamp.opengl.fixedfunc.GLMatrixFunc.
Definition at line 458 of file PMVMatrix.java.
| final PMVMatrix com.jogamp.opengl.util.PMVMatrix.glRotate | ( | final Quaternion | quat | ) |
Rotate the current matrix with the given Quaternion's rotation matrix representation.
Extension to GLMatrixFunc.
| quat | the Quaternion |
Definition at line 442 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.glRotatef | ( | final float | angle, |
| final float | x, | ||
| final float | y, | ||
| final float | z | ||
| ) |
Rotate the current matrix.
Implements com.jogamp.opengl.fixedfunc.GLMatrixFunc.
Definition at line 413 of file PMVMatrix.java.
| final PMVMatrix com.jogamp.opengl.util.PMVMatrix.glRotatef | ( | final float | ang_rad, |
| final Vec3f | axis | ||
| ) |
Rotate the current matrix by the given axis and angle in radians.
Consider using glRotate(Quaternion)
Extension to GLMatrixFunc.
| ang_rad | angle in radians |
| axis | rotation axis |
Definition at line 430 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.glScalef | ( | final float | x, |
| final float | y, | ||
| final float | z | ||
| ) |
Scale the current matrix.
Implements com.jogamp.opengl.fixedfunc.GLMatrixFunc.
Definition at line 396 of file PMVMatrix.java.
Scale the current matrix.
Extension to GLMatrixFunc.
| s | scale vec4f |
Definition at line 408 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.glTranslatef | ( | final float | x, |
| final float | y, | ||
| final float | z | ||
| ) |
Translate the current matrix.
Implements com.jogamp.opengl.fixedfunc.GLMatrixFunc.
Definition at line 379 of file PMVMatrix.java.
Translate the current matrix.
Extension to GLMatrixFunc.
| t | translation vec3 |
Definition at line 391 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.gluLookAt | ( | final Vec3f | eye, |
| final Vec3f | center, | ||
| final Vec3f | up | ||
| ) |
Multiply the current matrix with the eye, object and orientation, i.e.
Matrix4f#setToLookAt(Vec3f, Vec3f, Vec3f, Matrix4f).
Definition at line 507 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.gluPerspective | ( | final float | fovy_rad, |
| final float | aspect, | ||
| final float | zNear, | ||
| final float | zFar | ||
| ) | throws IllegalArgumentException |
Multiply the current matrix with the perspective/frustum matrix.
| fovy_rad | fov angle in radians |
| aspect | aspect ratio width / height |
| zNear | |
| zFar |
| IllegalArgumentException | if zNear <= 0 or zFar <= zNear |
Definition at line 499 of file PMVMatrix.java.
| final void com.jogamp.opengl.util.PMVMatrix.gluPickMatrix | ( | final float | x, |
| final float | y, | ||
| final float | deltaX, | ||
| final float | deltaY, | ||
| final Recti | viewport | ||
| ) |
Make given matrix the pick matrix based on given parameters.
Traditional gluPickMatrix implementation.
See for details.
| x | the center x-component of a picking region in window coordinates |
| y | the center y-component of a picking region in window coordinates |
| deltaX | the width of the picking region in window coordinates. |
| deltaY | the height of the picking region in window coordinates. |
| viewport | Rect4i viewport vector |
Definition at line 525 of file PMVMatrix.java.
|
static |
| matrixGetName | One of GL_MODELVIEW_MATRIX, GL_PROJECTION_MATRIX or GL_TEXTURE_MATRIX |
Definition at line 99 of file PMVMatrix.java.
|
static |
| matrixModeName | One of GL_MODELVIEW, GL_PROJECTION or GL_TEXTURE |
Definition at line 68 of file PMVMatrix.java.
|
static |
| matrixGetName | One of GL_MODELVIEW_MATRIX, GL_PROJECTION_MATRIX or GL_TEXTURE_MATRIX |
GL_MODELVIEW, GL_PROJECTION or GL_TEXTURE Definition at line 114 of file PMVMatrix.java.
|
static |
| matrixModeName | One of GL_MODELVIEW, GL_PROJECTION or GL_TEXTURE |
GL_MODELVIEW_MATRIX, GL_PROJECTION_MATRIX or GL_TEXTURE_MATRIX Definition at line 82 of file PMVMatrix.java.
| void com.jogamp.opengl.util.PMVMatrix.reset | ( | ) |
Issues Matrix4f#loadIdentity() on all matrices and resets all internal states.
Leaves GL_MODELVIEW the active matrix mode.
Reimplemented from com.jogamp.math.util.PMVMatrix4f.
Definition at line 173 of file PMVMatrix.java.