public class ParticleSystemBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static double |
DT
Default graphics time step size.
|
javax.vecmath.Point3d |
eyePos
Position of the camera.
|
javax.vecmath.Point3d |
targetPos
Position of the camera's focus.
|
Modifier and Type | Method and Description |
---|---|
void |
display(GLAutoDrawable drawable)
Main event loop: OpenGL display + simulation
advance.
|
void |
displayChanged(GLAutoDrawable drawable,
boolean modeChanged,
boolean deviceChanged)
GLEventListener implementation
|
void |
dispose(GLAutoDrawable drawable)
GLEventListener implementation
|
void |
init(GLAutoDrawable drawable)
GLEventListener implementation: Initializes JOGL renderer.
|
static void |
main(java.lang.String[] args)
### Runs the ParticleSystemBuilder.
|
void |
reshape(GLAutoDrawable drawable,
int x,
int y,
int width,
int height)
GLEventListener implementation
|
void |
start()
Builds and shows windows/GUI, and starts simulator.
|
public static final double DT
public javax.vecmath.Point3d eyePos
public javax.vecmath.Point3d targetPos
public void start()
public void init(GLAutoDrawable drawable)
public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged)
public void dispose(GLAutoDrawable drawable)
public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height)
public void display(GLAutoDrawable drawable)
public static void main(java.lang.String[] args)