io7m
com.io7m.jcanephora 0.60.0
3.3
JCGLContextType

- 3.3.1. Description
- 3.3.2. Currency
- 3.3.3. Sharing

3.3.1
Description
1
The JCGLContextType interface represents a single OpenGL context.
3.3.2
Currency
1
To accept commands, an OpenGL context must be made current. For a given thread t, at most one context can be current on t at any given time.
3.3.3
Sharing
1
An OpenGL context may be shared. Briefly, this means that if a context c is shared with a context d, then certain types of objects allocated on c are visible to d, and vice versa. This is often used in rendering engines to enable textures and other large resources to be loaded on a separate background thread without interrupting rendering. The jcanephora API knows types of objects may be shared across contexts, and raises errors at run-time if the user attempts to use a non-shared object on the wrong context.