|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.graphics.lwjgl.LWJGLRenderer1
public class LWJGLRenderer1
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 ConcurrentLinkedQueue<Runnable> |
taskList
|
private boolean |
terminated
|
private double |
top
|
private boolean |
useVsync
|
private int |
width
|
| Constructor Summary | |
|---|---|
LWJGLRenderer1(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 | |
|---|---|
void |
addTask(Runnable r)
|
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 |
boolean |
terminate()
signal that the system is about to terminate; This object should perform the necessary actions for "clean termination", without exiting the system as a whole. |
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 ConcurrentLinkedQueue<Runnable> taskList
private volatile boolean terminated
| Constructor Detail |
|---|
public LWJGLRenderer1(int numFSAA_Samples,
int numStencilBits,
int width,
int height)
| Method Detail |
|---|
public boolean terminate()
Terminator
terminate in interface Terminatorpublic 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 addTask(Runnable r)
public 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 | |||||||||