public class GLGarbageCollector
extends java.lang.Object
implements com.jogamp.opengl.GLEventListener
| Constructor and Description |
|---|
GLGarbageCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSource(GLGarbageSource source) |
void |
collect(com.jogamp.opengl.GL gl) |
void |
display(com.jogamp.opengl.GLAutoDrawable drawable) |
void |
dispose(com.jogamp.opengl.GL gl) |
void |
dispose(com.jogamp.opengl.GLAutoDrawable drawable) |
void |
init(com.jogamp.opengl.GLAutoDrawable drawable) |
boolean |
maybeCollect(com.jogamp.opengl.GL gl,
long timeperiod)
Will collect garbage as long as the last collection time
was at least the supplied elapsed period
|
void |
reshape(com.jogamp.opengl.GLAutoDrawable drawable,
int x,
int y,
int width,
int height) |
public void addSource(GLGarbageSource source)
public void collect(com.jogamp.opengl.GL gl)
public boolean maybeCollect(com.jogamp.opengl.GL gl,
long timeperiod)
timeperiod - in mspublic void dispose(com.jogamp.opengl.GL gl)
public void init(com.jogamp.opengl.GLAutoDrawable drawable)
init in interface com.jogamp.opengl.GLEventListenerpublic void dispose(com.jogamp.opengl.GLAutoDrawable drawable)
dispose in interface com.jogamp.opengl.GLEventListenerpublic void display(com.jogamp.opengl.GLAutoDrawable drawable)
display in interface com.jogamp.opengl.GLEventListenerpublic void reshape(com.jogamp.opengl.GLAutoDrawable drawable,
int x,
int y,
int width,
int height)
reshape in interface com.jogamp.opengl.GLEventListener