|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgestalt.util.JoglUtil
public class JoglUtil
| Constructor Summary | |
|---|---|
JoglUtil()
|
|
| Method Summary | |
|---|---|
static int |
_getTextureUnitID(int theTextureUnitToken)
|
static void |
applyOrigin(GL gl,
int theOrigin)
apply origin offset to current opengl matrix stack. |
static TransformMatrix4f |
applyTransform(AbstractShape theShape,
Vector3f theResultPosition)
applies the transforms stored in 'transform', 'rotation' and 'scale' as defined in transform mode. |
static void |
applyTransform(GL gl,
int theTransformMode,
TransformMatrix4f theTransform,
Vector3f theRotation,
Vector3f theScale)
applies the transforms stored in 'transform', 'rotation' and 'scale' as defined in transform mode. |
static TransformMatrix4f |
applyTransform(int theTransformMode,
TransformMatrix4f theTransform,
Vector3f theRotation,
Vector3f theScale,
Vector3f theResultPosition)
applies the transforms stored in 'transform', 'rotation' and 'scale' as defined in transform mode. |
static boolean |
checkFrameBufferStatus(GL gl)
check frame buffer object status. |
static void |
circle(GL gl,
float theRadius)
draws a circle from line segments in opengl. |
static void |
circle(GL gl,
Vector3f thePosition,
float theRadius)
draws a circle from line segments in opengl. |
static JoglMultiTexPlane |
createTextureView(TexturePlugin theTexture,
Vector3f thePosition,
Vector3f theScale)
creates a plane that displays a texture on arbitrary texture unit, defined in the texture object. |
static void |
draw(GL gl,
Vertex3f theVertex)
|
static Plane |
enableTrails(BasicRenderer theRenderer)
tries to turn on trail for current context. |
static JoglMesh |
getCubeMesh()
|
static GL |
getGL(GLContext theRenderContext)
|
static GLU |
getGLU(GLContext theRenderContext)
|
static int |
getTextureUnitID(int theTextureUnitToken)
transforms opengl texture-id-token to numeric value. |
static void |
gluPerspective(GL gl,
float theFOVY,
float theAspect,
float theZNearPlane,
float theZFarPlane,
Vector2f theFrustumOffset)
|
static int |
mapGestaltPrimitiveToOpenGLPrimitive(int theGestaltPrimitive)
|
static int |
mapOpenGLPrimitiveToGestaltPrimitive(int theOpenGLPrimitive)
|
static void |
printExtensions(GL gl)
print availabe opengl extensions. |
static boolean |
printGLError(GL gl,
GLU glu,
java.lang.String theLocation)
|
static boolean |
printGLError(GL gl,
GLU glu,
java.lang.String theLocation,
boolean thePrintFlag)
print opengl error. |
static boolean |
printGLError(GL gl,
java.lang.String theLocation)
|
static boolean |
testExtensionAvailability(GL gl,
java.lang.String theExtension)
test availability of an opengl extension. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JoglUtil()
| Method Detail |
|---|
public static int mapOpenGLPrimitiveToGestaltPrimitive(int theOpenGLPrimitive)
public static int mapGestaltPrimitiveToOpenGLPrimitive(int theGestaltPrimitive)
public static JoglMultiTexPlane createTextureView(TexturePlugin theTexture,
Vector3f thePosition,
Vector3f theScale)
theTexture - TexturePluginthePosition - Vector3ftheScale - Vector3f
public static Plane enableTrails(BasicRenderer theRenderer)
theRenderer - BasicRenderer
public static int _getTextureUnitID(int theTextureUnitToken)
public static final int getTextureUnitID(int theTextureUnitToken)
theTextureUnitToken - int
public static final void applyOrigin(GL gl,
int theOrigin)
gl - GLtheOrigin - int
public static final void applyTransform(GL gl,
int theTransformMode,
TransformMatrix4f theTransform,
Vector3f theRotation,
Vector3f theScale)
gl - GL_myTransformMode - inttransform - TransformMatrix4frotation - Vector3fscale - Vector3f
public static final TransformMatrix4f applyTransform(AbstractShape theShape,
Vector3f theResultPosition)
theShape - AbstractShapetheResultPosition - Vector3f
public static final TransformMatrix4f applyTransform(int theTransformMode,
TransformMatrix4f theTransform,
Vector3f theRotation,
Vector3f theScale,
Vector3f theResultPosition)
theTransformMode - inttheTransform - TransformMatrix4ftheRotation - Vector3ftheScale - Vector3ftheResultPosition - Vector3f
public static final void circle(GL gl,
Vector3f thePosition,
float theRadius)
gl - GLthePosition - Vector3ftheRadius - float
public static final void circle(GL gl,
float theRadius)
gl - GLtheRadius - float
public static final void draw(GL gl,
Vertex3f theVertex)
gl - GLtheVertex - Vertex3f
public static final void gluPerspective(GL gl,
float theFOVY,
float theAspect,
float theZNearPlane,
float theZFarPlane,
Vector2f theFrustumOffset)
gl - GLtheFOVY - floattheAspect - floattheZNearPlane - floattheZFarPlane - floattheFrustumOffset - Vector2fpublic static final boolean checkFrameBufferStatus(GL gl)
gl - GL
public static final boolean printGLError(GL gl,
java.lang.String theLocation)
public static final boolean printGLError(GL gl,
GLU glu,
java.lang.String theLocation)
public static final boolean printGLError(GL gl,
GLU glu,
java.lang.String theLocation,
boolean thePrintFlag)
gl - GLglu - GLUtheLocation - StringthePrintFlag - boolean
public static final void printExtensions(GL gl)
gl - GL
public static final boolean testExtensionAvailability(GL gl,
java.lang.String theExtension)
gl - GLtheExtension - String
public static final GL getGL(GLContext theRenderContext)
public static final GLU getGLU(GLContext theRenderContext)
public static JoglMesh getCubeMesh()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||