com.bulletphysics.demos.opengl
Class LwjglGL
java.lang.Object
com.bulletphysics.demos.opengl.LwjglGL
- All Implemented Interfaces:
- IGL
public class LwjglGL
- extends java.lang.Object
- implements IGL
Fields inherited from interface com.bulletphysics.demos.opengl.IGL |
GL_AMBIENT, GL_COLOR_BUFFER_BIT, GL_COLOR_MATERIAL, GL_DEPTH_BUFFER_BIT, GL_DEPTH_TEST, GL_DIFFUSE, GL_LESS, GL_LIGHT0, GL_LIGHT1, GL_LIGHTING, GL_LINES, GL_MODELVIEW, GL_POINTS, GL_POSITION, GL_PROJECTION, GL_QUADS, GL_SMOOTH, GL_SPECULAR, GL_TRIANGLES |
Method Summary |
void |
drawCube(float extent)
|
void |
drawCylinder(float radius,
float halfHeight,
int upAxis)
|
void |
drawSphere(float radius,
int slices,
int stacks)
|
void |
drawString(java.lang.CharSequence s,
int x,
int y,
float red,
float green,
float blue)
|
void |
glBegin(int mode)
|
void |
glClear(int mask)
|
void |
glClearColor(float red,
float green,
float blue,
float alpha)
|
void |
glColor3f(float red,
float green,
float blue)
|
void |
glDepthFunc(int func)
|
void |
glDisable(int cap)
|
void |
glEnable(int cap)
|
void |
glEnd()
|
void |
glFrustum(double left,
double right,
double bottom,
double top,
double zNear,
double zFar)
|
void |
glLight(int light,
int pname,
float[] params)
|
void |
glLineWidth(float width)
|
void |
glLoadIdentity()
|
void |
glMatrixMode(int mode)
|
void |
glMultMatrix(float[] m)
|
void |
glNormal3f(float nx,
float ny,
float nz)
|
void |
glPointSize(float size)
|
void |
glPopMatrix()
|
void |
glPushMatrix()
|
void |
glScalef(float x,
float y,
float z)
|
void |
glShadeModel(int mode)
|
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 |
gluOrtho2D(float left,
float right,
float bottom,
float top)
|
void |
glVertex3f(float x,
float y,
float z)
|
void |
glViewport(int x,
int y,
int width,
int height)
|
void |
init()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LwjglGL
public LwjglGL()
init
public void init()
glLight
public void glLight(int light,
int pname,
float[] params)
- Specified by:
glLight
in interface IGL
glEnable
public void glEnable(int cap)
- Specified by:
glEnable
in interface IGL
glDisable
public void glDisable(int cap)
- Specified by:
glDisable
in interface IGL
glShadeModel
public void glShadeModel(int mode)
- Specified by:
glShadeModel
in interface IGL
glDepthFunc
public void glDepthFunc(int func)
- Specified by:
glDepthFunc
in interface IGL
glClearColor
public void glClearColor(float red,
float green,
float blue,
float alpha)
- Specified by:
glClearColor
in interface IGL
glMatrixMode
public void glMatrixMode(int mode)
- Specified by:
glMatrixMode
in interface IGL
glLoadIdentity
public void glLoadIdentity()
- Specified by:
glLoadIdentity
in interface IGL
glFrustum
public void glFrustum(double left,
double right,
double bottom,
double top,
double zNear,
double zFar)
- Specified by:
glFrustum
in interface IGL
gluLookAt
public void gluLookAt(float eyex,
float eyey,
float eyez,
float centerx,
float centery,
float centerz,
float upx,
float upy,
float upz)
- Specified by:
gluLookAt
in interface IGL
glViewport
public void glViewport(int x,
int y,
int width,
int height)
- Specified by:
glViewport
in interface IGL
glPushMatrix
public void glPushMatrix()
- Specified by:
glPushMatrix
in interface IGL
glPopMatrix
public void glPopMatrix()
- Specified by:
glPopMatrix
in interface IGL
gluOrtho2D
public void gluOrtho2D(float left,
float right,
float bottom,
float top)
- Specified by:
gluOrtho2D
in interface IGL
glScalef
public void glScalef(float x,
float y,
float z)
- Specified by:
glScalef
in interface IGL
glTranslatef
public void glTranslatef(float x,
float y,
float z)
- Specified by:
glTranslatef
in interface IGL
glColor3f
public void glColor3f(float red,
float green,
float blue)
- Specified by:
glColor3f
in interface IGL
glClear
public void glClear(int mask)
- Specified by:
glClear
in interface IGL
glBegin
public void glBegin(int mode)
- Specified by:
glBegin
in interface IGL
glEnd
public void glEnd()
- Specified by:
glEnd
in interface IGL
glVertex3f
public void glVertex3f(float x,
float y,
float z)
- Specified by:
glVertex3f
in interface IGL
glLineWidth
public void glLineWidth(float width)
- Specified by:
glLineWidth
in interface IGL
glPointSize
public void glPointSize(float size)
- Specified by:
glPointSize
in interface IGL
glNormal3f
public void glNormal3f(float nx,
float ny,
float nz)
- Specified by:
glNormal3f
in interface IGL
glMultMatrix
public void glMultMatrix(float[] m)
- Specified by:
glMultMatrix
in interface IGL
drawCube
public void drawCube(float extent)
- Specified by:
drawCube
in interface IGL
drawSphere
public void drawSphere(float radius,
int slices,
int stacks)
- Specified by:
drawSphere
in interface IGL
drawCylinder
public void drawCylinder(float radius,
float halfHeight,
int upAxis)
- Specified by:
drawCylinder
in interface IGL
drawString
public void drawString(java.lang.CharSequence s,
int x,
int y,
float red,
float green,
float blue)
- Specified by:
drawString
in interface IGL