|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.graphics.lwjgl.LWJGLRenderer
public class LWJGLRenderer
A basic renderer with basic support for animation.
| Field Summary | |
|---|---|
private double |
aspect
|
private double |
bottom
|
private ClockListener |
clockListener
|
private double |
far
|
private double |
fovy
|
private LWJGLContext |
glc
|
private int |
height
|
private double |
left
|
static Logger |
logger
|
private double |
mediaTime
|
private double |
near
|
private org.lwjgl.opengl.PixelFormat |
pf
|
private double |
right
|
private GLRenderObject |
scene
|
private double |
top
|
private Runnable |
updater
|
private boolean |
useVsync
|
private int |
width
|
| Constructor Summary | |
|---|---|
LWJGLRenderer(int numFSAA_Samples,
int numStencilBits,
int width,
int height)
Create a new renderer, using a new GLCanvas with capabilities set to default values, except for the antialiasing setting. |
|
| Method Summary | |
|---|---|
private void |
calculateFrustumFromFOVY()
|
void |
destroy()
|
void |
initLWJGL()
The time method required by the ClockListener interface; It sets the current media time, and then causes a Jogl display() call. |
void |
initTime(double t)
The time method required by the ClockListener interface; It sets the current media time, and then causes a Jogl display() call. |
void |
reshape(int x,
int y,
int w,
int h)
Called when the glDrawable has been resized. |
void |
setClockListener(ClockListener listener)
Sets theClockListener |
void |
setDisplayParent(Canvas canvas)
|
void |
setFar(double far)
Sets the (positive) distance to the far clipping plane. |
void |
setFOVY(double fovy)
Sets the field of view in the Y direction, specified in degrees(!) |
void |
setNear(double near)
Sets the (positive) distance to the near clipping plane. |
void |
setScene(GLRenderObject scene)
Sets the 3D scene object, to be rendered. |
void |
setVsync(boolean useVsync)
Sets the vsync mode |
void |
time(double t)
The time method required by the ClockListener interface; It sets the current media time, and then causes a Jogl display() call. |
void |
updateLWJGL()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static Logger logger
private org.lwjgl.opengl.PixelFormat pf
private GLRenderObject scene
private LWJGLContext glc
private ClockListener clockListener
private volatile double mediaTime
private boolean useVsync
private double fovy
private double aspect
private int width
private int height
private double left
private double right
private double bottom
private double top
private double near
private double far
private Runnable updater
| Constructor Detail |
|---|
public LWJGLRenderer(int numFSAA_Samples,
int numStencilBits,
int width,
int height)
| Method Detail |
|---|
public void destroy()
public void setDisplayParent(Canvas canvas)
public void setScene(GLRenderObject scene)
public void setClockListener(ClockListener listener)
public void initTime(double t)
initTime in interface ClockListenerpublic void initLWJGL()
public void updateLWJGL()
public void time(double t)
time in interface ClockListenerpublic void setVsync(boolean useVsync)
public void setFOVY(double fovy)
public void setNear(double near)
public void setFar(double far)
private void calculateFrustumFromFOVY()
public void reshape(int x,
int y,
int w,
int h)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||