org.xith3d.render
Class SceneGraphOpenGLReferences

java.lang.Object
  extended by org.xith3d.render.SceneGraphOpenGLReferences

public class SceneGraphOpenGLReferences
extends java.lang.Object

This class manages SceneGraphOpenGLReferencees per OpenGL context.


Nested Class Summary
static interface SceneGraphOpenGLReferences.Provider
           
 
Constructor Summary
SceneGraphOpenGLReferences(int numNamesPerContext)
           
 
Method Summary
static void destroyObjects(CanvasPeer context)
           
 int getNumExistingNames()
           
 int getNumReferences()
           
 SceneGraphOpenGLReference getReference(CanvasPeer canvasPeer, SceneGraphOpenGLReferences.Provider provider)
           
 void invalidateNames()
           
 void prepareObjectForDestroy()
           
 void prepareObjectForDestroy(CanvasPeer canvasPeer)
           
 boolean referenceExists(CanvasPeer canvasPeer)
           
 SceneGraphOpenGLReference removeReference(int canvasID)
           
 void set(SceneGraphOpenGLReferences other)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SceneGraphOpenGLReferences

public SceneGraphOpenGLReferences(int numNamesPerContext)
Method Detail

getReference

public final SceneGraphOpenGLReference getReference(CanvasPeer canvasPeer,
                                                    SceneGraphOpenGLReferences.Provider provider)

removeReference

public SceneGraphOpenGLReference removeReference(int canvasID)

referenceExists

public final boolean referenceExists(CanvasPeer canvasPeer)

getNumReferences

public final int getNumReferences()

getNumExistingNames

public final int getNumExistingNames()

set

public void set(SceneGraphOpenGLReferences other)

prepareObjectForDestroy

public final void prepareObjectForDestroy(CanvasPeer canvasPeer)

prepareObjectForDestroy

public final void prepareObjectForDestroy()

invalidateNames

public final void invalidateNames()

destroyObjects

public static void destroyObjects(CanvasPeer context)