|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.util.NativeObjectManager
public class NativeObjectManager
GLObjectManager tracks all GLObjects used by the Renderer. Using a
ReferenceQueue
the GLObjectManager
can delete
unused objects from GPU when their counterparts on the CPU are no longer used.
On restart, the renderer may request the objects to be reset, thus allowing
the GLObjects to re-initialize with the new display context.
Constructor Summary | |
---|---|
NativeObjectManager()
|
Method Summary | |
---|---|
void |
deleteAllObjects(java.lang.Object rendererObject)
Deletes all objects. |
void |
deleteUnused(java.lang.Object rendererObject)
Deletes unused NativeObjects. |
void |
registerForCleanup(NativeObject obj)
Register a GLObject with the manager. |
void |
resetObjects()
Resets all NativeObject s. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NativeObjectManager()
Method Detail |
---|
public void registerForCleanup(NativeObject obj)
public void deleteUnused(java.lang.Object rendererObject)
MAX_REMOVES_PER_FRAME
objects.
rendererObject
- The renderer object.
For graphics objects, Renderer
is used, for audio, {#link AudioRenderer} is used.public void deleteAllObjects(java.lang.Object rendererObject)
public void resetObjects()
NativeObject
s.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |