net.java.games.jogl.impl

Class GLContextShareSet


public class GLContextShareSet
extends java.lang.Object

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.

Method Summary

static void
contextCreated(GLContext context)
static void
contextDestroyed(GLContext context)
static GLContext
getShareContext(GLContext contextToCreate)
static void
registerSharing(GLContext share1, GLContext share2)
Indicate that contexts share1 and share2 will share textures and display lists.

Method Details

contextCreated

public static void contextCreated(GLContext context)

contextDestroyed

public static void contextDestroyed(GLContext context)

getShareContext

public static GLContext getShareContext(GLContext contextToCreate)

registerSharing

public static void registerSharing(GLContext share1,
                                   GLContext share2)
Indicate that contexts share1 and share2 will share textures and display lists.