|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.opengl.impl.GLContextShareSet
public class GLContextShareSet
Provides a mechanism by which OpenGL contexts can share textures and display lists in the face of multithreading and asynchronous context creation as is inherent in the AWT and Swing.
Constructor Summary | |
---|---|
GLContextShareSet()
|
Method Summary | |
---|---|
static void |
contextCreated(GLContext context)
|
static void |
contextDestroyed(GLContext context)
|
static GLContext |
getShareContext(GLContext contextToCreate)
|
static void |
registerForBufferObjectSharing(GLContext olderContextOrNull,
GLContext newContext)
In order to avoid glGet calls for buffer object checks related to glVertexPointer, etc. |
static void |
registerForObjectTracking(GLContext olderContextOrNull,
GLContext newContext,
GLContext realShareContext)
Indicates that the two supplied contexts (which must be able to share textures and display lists) should be in the same namespace for tracking of server-side object creation and deletion. |
static void |
registerSharing(GLContext share1,
GLContext share2)
Indicate that contexts share1 and
share2 will share textures and display lists. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GLContextShareSet()
Method Detail |
---|
public static void registerSharing(GLContext share1, GLContext share2)
share1
and
share2
will share textures and display lists. Both
must be non-null.
public static GLContext getShareContext(GLContext contextToCreate)
public static void contextCreated(GLContext context)
public static void contextDestroyed(GLContext context)
public static void registerForObjectTracking(GLContext olderContextOrNull, GLContext newContext, GLContext realShareContext)
public static void registerForBufferObjectSharing(GLContext olderContextOrNull, GLContext newContext)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |