public class GL2SharedResources extends GLSharedResources implements GLGarbageSource
| Constructor and Description |
|---|
GL2SharedResources(com.jogamp.opengl.GLCapabilities cap) |
| Modifier and Type | Method and Description |
|---|---|
GL2DisplayList |
allocateAcquiredDisplayList(com.jogamp.opengl.GL2 gl,
int count)
Creates a new display list whose resources are tracked for garbage
collection
|
GL2VersionedObject |
allocateVersionedObject(com.jogamp.opengl.GL2 gl,
RenderKey key,
java.lang.Object fingerPrint) |
void |
dispose(com.jogamp.opengl.GL gl)
Clears all resources with the associated with the master
|
void |
garbage(com.jogamp.opengl.GL gl) |
GL2Primitive |
getAcquiredCone(com.jogamp.opengl.GL2 gl,
int slices,
boolean capped) |
GL2Primitive |
getAcquiredCube(com.jogamp.opengl.GL2 gl) |
GL2Primitive |
getAcquiredCylinder(com.jogamp.opengl.GL2 gl,
int slices,
boolean capped) |
GL2Primitive |
getAcquiredSphere(com.jogamp.opengl.GL2 gl,
int resolution) |
GL2Primitive |
getAcquiredSpindle(com.jogamp.opengl.GL2 gl,
int slices) |
GL2VersionedObject |
getVersionedObject(RenderKey key) |
createCanvas, createPanel, deregisterViewer, display, dispose, disposeResource, getGarbageCollectionInterval, getGLCapabilities, getOrLoadTexture, getTexture, init, isGarbageTimerEnabled, maybeRunGarbageCollection, registerViewer, reshape, runGarbageCollection, setGarbageCollectionInterval, setGarbageTimerEnabled, trackpublic GL2SharedResources(com.jogamp.opengl.GLCapabilities cap)
public void dispose(com.jogamp.opengl.GL gl)
GLSharedResourcesdispose in interface GLGarbageSourcedispose in class GLSharedResourcespublic GL2Primitive getAcquiredSphere(com.jogamp.opengl.GL2 gl, int resolution)
public GL2Primitive getAcquiredCone(com.jogamp.opengl.GL2 gl, int slices, boolean capped)
public GL2Primitive getAcquiredCylinder(com.jogamp.opengl.GL2 gl, int slices, boolean capped)
public GL2Primitive getAcquiredSpindle(com.jogamp.opengl.GL2 gl, int slices)
public GL2Primitive getAcquiredCube(com.jogamp.opengl.GL2 gl)
public GL2DisplayList allocateAcquiredDisplayList(com.jogamp.opengl.GL2 gl, int count)
gl - GL handlecount - number of lists to generatepublic GL2VersionedObject allocateVersionedObject(com.jogamp.opengl.GL2 gl, RenderKey key, java.lang.Object fingerPrint)
public GL2VersionedObject getVersionedObject(RenderKey key)
public void garbage(com.jogamp.opengl.GL gl)
garbage in interface GLGarbageSourcegarbage in class GLSharedResources