public class PMVMatrix extends Object implements GLMatrixFunc
| Modifier and Type | Field and Description |
|---|---|
static int |
DIRTY_MODELVIEW |
static int |
DIRTY_PROJECTION |
static int |
DIRTY_TEXTURE |
GL_MATRIX_MODE, GL_MODELVIEW, GL_MODELVIEW_MATRIX, GL_PROJECTION, GL_PROJECTION_MATRIX, GL_TEXTURE_MATRIX| Constructor and Description |
|---|
PMVMatrix()
Creates an instance of PMVMatrix
PMVMatrix(boolean useBackingArray),
with useBackingArray = true. |
PMVMatrix(boolean useBackingArray)
Creates an instance of PMVMatrix.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
int |
getDirtyBits() |
void |
glFrustumf(float left,
float right,
float bottom,
float top,
float zNear,
float zFar) |
void |
glGetFloatv(int matrixGetName,
float[] params,
int params_offset) |
void |
glGetFloatv(int matrixGetName,
FloatBuffer params)
glGetFloatv
|
void |
glGetIntegerv(int pname,
int[] params,
int params_offset) |
void |
glGetIntegerv(int pname,
IntBuffer params)
glGetIntegerv
|
FloatBuffer |
glGetMatrixf() |
FloatBuffer |
glGetMatrixf(int matrixName) |
int |
glGetMatrixMode() |
FloatBuffer |
glGetMviMatrixf() |
FloatBuffer |
glGetMvitMatrixf() |
FloatBuffer |
glGetMvMatrixf() |
FloatBuffer |
glGetPMatrixf() |
FloatBuffer |
glGetPMvMatrixf() |
FloatBuffer |
glGetPMvMviMatrixf() |
FloatBuffer |
glGetPMvMvitMatrixf() |
FloatBuffer |
glGetTMatrixf() |
void |
glLoadIdentity() |
void |
glLoadMatrixf(float[] values,
int offset) |
void |
glLoadMatrixf(FloatBuffer m)
glLoadMatrixf
|
void |
glMatrixMode(int matrixName)
sets the current matrix
|
void |
glMultMatrixf(float[] m,
int m_offset) |
void |
glMultMatrixf(FloatBuffer m)
glMultMatrixf
|
void |
glOrthof(float left,
float right,
float bottom,
float top,
float zNear,
float zFar) |
void |
glPopMatrix() |
void |
glPushMatrix() |
void |
glRotatef(float angdeg,
float x,
float y,
float z) |
void |
glScalef(float x,
float y,
float z) |
void |
glTranslatef(float x,
float y,
float z) |
void |
gluLookAt(float eyex,
float eyey,
float eyez,
float centerx,
float centery,
float centerz,
float upx,
float upy,
float upz) |
void |
gluPerspective(float fovy,
float aspect,
float zNear,
float zFar) |
void |
gluPickMatrix(float x,
float y,
float deltaX,
float deltaY,
int[] viewport,
int viewport_offset) |
boolean |
gluProject(float objx,
float objy,
float objz,
int[] viewport,
int viewport_offset,
float[] win_pos,
int win_pos_offset)
Uses this instance
glGetMvMatrixf() and glGetPMatrixf() |
boolean |
gluUnProject(float winx,
float winy,
float winz,
int[] viewport,
int viewport_offset,
float[] obj_pos,
int obj_pos_offset)
Uses this instance
glGetMvMatrixf() and glGetPMatrixf() |
boolean |
isDirty() |
boolean |
isDirty(int matrixName) |
static boolean |
isMatrixGetName(int matrixGetName) |
static boolean |
isMatrixModeName(int matrixModeName) |
static int |
matrixGetName2MatrixModeName(int matrixGetName) |
static int |
matrixModeName2MatrixGetName(int matrixModeName) |
void |
setDirty() |
boolean |
update()
Update the derived Mvi, Mvit and Pmv matrices
in case Mv or P has changed.
|
boolean |
usesBackingArray() |
public static final int DIRTY_MODELVIEW
public static final int DIRTY_PROJECTION
public static final int DIRTY_TEXTURE
public PMVMatrix()
PMVMatrix(boolean useBackingArray),
with useBackingArray = true.public PMVMatrix(boolean useBackingArray)
useBackingArray - true for non direct NIO Buffers with guaranteed backing array,
which allows faster access in Java computation.
false for direct NIO buffers w/o a guaranteed backing array.
In most Java implementations, direct NIO buffers have no backing array
and hence the Java computation will be throttled down by direct IO get/put
operations.
Depending on the application, ie. whether the Java computation or
JNI invocation and hence native data transfer part is heavier,
this flag shall be set to true or false
public final boolean usesBackingArray()
public void destroy()
public static final boolean isMatrixModeName(int matrixModeName)
public static final int matrixModeName2MatrixGetName(int matrixModeName)
public static final boolean isMatrixGetName(int matrixGetName)
public static final int matrixGetName2MatrixModeName(int matrixGetName)
public void setDirty()
public int getDirtyBits()
public boolean isDirty(int matrixName)
public boolean isDirty()
public boolean update()
public final int glGetMatrixMode()
public final FloatBuffer glGetTMatrixf()
public final FloatBuffer glGetPMatrixf()
public final FloatBuffer glGetMvMatrixf()
public final FloatBuffer glGetPMvMviMatrixf()
public final FloatBuffer glGetPMvMatrixf()
public final FloatBuffer glGetMviMatrixf()
public final FloatBuffer glGetPMvMvitMatrixf()
public final FloatBuffer glGetMvitMatrixf()
public final FloatBuffer glGetMatrixf()
public final FloatBuffer glGetMatrixf(int matrixName)
matrixName - GL_MODELVIEW, GL_PROJECTION or GL.GL_TEXTUREpublic void glMatrixMode(int matrixName)
GLMatrixFuncglMatrixMode in interface GLMatrixFuncpublic void glGetFloatv(int matrixGetName,
FloatBuffer params)
GLMatrixFuncglGetFloatv in interface GLMatrixFuncmatrixGetName - GL_MODELVIEW_MATRIX, GL_PROJECTION_MATRIX or GL_TEXTURE_MATRIXparams - the FloatBuffer's position remains unchanged,
which is the same behavior than the native JOGL GL implpublic void glGetFloatv(int matrixGetName,
float[] params,
int params_offset)
glGetFloatv in interface GLMatrixFuncpublic void glGetIntegerv(int pname,
IntBuffer params)
GLMatrixFuncglGetIntegerv in interface GLMatrixFuncpname - GL_MATRIX_MODEparams - the FloatBuffer's position remains unchanged
which is the same behavior than the native JOGL GL implpublic void glGetIntegerv(int pname,
int[] params,
int params_offset)
glGetIntegerv in interface GLMatrixFuncpublic final void glLoadMatrixf(float[] values,
int offset)
glLoadMatrixf in interface GLMatrixFuncpublic final void glLoadMatrixf(FloatBuffer m)
GLMatrixFuncglLoadMatrixf in interface GLMatrixFuncpublic final void glPopMatrix()
glPopMatrix in interface GLMatrixFuncpublic final void glPushMatrix()
glPushMatrix in interface GLMatrixFuncpublic final void glLoadIdentity()
glLoadIdentity in interface GLMatrixFuncpublic final void glMultMatrixf(FloatBuffer m)
GLMatrixFuncglMultMatrixf in interface GLMatrixFuncm - the FloatBuffer's position remains unchanged,
which is the same behavior than the native JOGL GL implpublic void glMultMatrixf(float[] m,
int m_offset)
glMultMatrixf in interface GLMatrixFuncpublic final void glTranslatef(float x,
float y,
float z)
glTranslatef in interface GLMatrixFuncpublic final void glRotatef(float angdeg,
float x,
float y,
float z)
glRotatef in interface GLMatrixFuncpublic final void glScalef(float x,
float y,
float z)
glScalef in interface GLMatrixFuncpublic final void glOrthof(float left,
float right,
float bottom,
float top,
float zNear,
float zFar)
glOrthof in interface GLMatrixFuncpublic final void gluPerspective(float fovy,
float aspect,
float zNear,
float zFar)
public final void glFrustumf(float left,
float right,
float bottom,
float top,
float zNear,
float zFar)
glFrustumf in interface GLMatrixFuncpublic void gluLookAt(float eyex,
float eyey,
float eyez,
float centerx,
float centery,
float centerz,
float upx,
float upy,
float upz)
public boolean gluProject(float objx,
float objy,
float objz,
int[] viewport,
int viewport_offset,
float[] win_pos,
int win_pos_offset)
glGetMvMatrixf() and glGetPMatrixf()objx - objy - objz - viewport - viewport_offset - win_pos - win_pos_offset - public boolean gluUnProject(float winx,
float winy,
float winz,
int[] viewport,
int viewport_offset,
float[] obj_pos,
int obj_pos_offset)
glGetMvMatrixf() and glGetPMatrixf()winx - winy - winz - viewport - viewport_offset - obj_pos - obj_pos_offset - public void gluPickMatrix(float x,
float y,
float deltaX,
float deltaY,
int[] viewport,
int viewport_offset)
Copyright 2010 JogAmp Community.