io7m
io7m-jcanephora 0.52.0
3.2
JCGLContextType

- 3.2.1. Description
- 3.2.2. Usage Example

3.2.1
Description
1
The JCGLImplementationType interface represents an OpenGL implementation. Specific implementations, such as the JOGL implementation, provide subtypes of this interface that allow for the creation of Contexts. It is not a goal of the package to wrap all of the complicated context creation functionality exposed by packages such as JOGL - users are expected to initialize and configure OpenGL contexts and then pass those contexts to jcanephora for use.
3.2.2
Usage Example
1
An example that creates a pair of contexts using the JOGL implementation:
3.2.2.1. JOGL Implementation Example

    GLContext gc_main;
    GLContext gc_background;

    JCGLImplementationJOGLType i = JCGLImplementationJOGL.getInstance();
    JCGLContextType c_main = i.newContextFrom(gc_main, "main");
    JCGLContextType c_back = i.newContextFrom(gc_background, "background-resources");