|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.opengl.GLContext
com.jogamp.opengl.impl.GLContextImpl
com.jogamp.opengl.impl.windows.wgl.WindowsWGLContext
com.jogamp.opengl.impl.windows.wgl.WindowsExternalWGLContext
public class WindowsExternalWGLContext
Field Summary |
---|
Fields inherited from class com.jogamp.opengl.impl.GLContextImpl |
---|
contextFQN, currentSwapInterval, DEBUG, drawable, drawableRead, extensionAvailability, gl, hasNativeES2Methods, lock, mappedContextTypeObjectLock, mappedExtensionAvailabilityCache, mappedGLProcAddress, mappedGLXProcAddress |
Fields inherited from class javax.media.opengl.GLContext |
---|
CONTEXT_CURRENT, CONTEXT_CURRENT_NEW, CONTEXT_NOT_CURRENT, contextHandle, CTX_IS_ARB_CREATED, CTX_OPTION_ANY, CTX_OPTION_DEBUG, CTX_OPTION_FORWARD, CTX_PROFILE_COMPAT, CTX_PROFILE_CORE, CTX_PROFILE_ES, ctxMajorVersion, ctxMinorVersion, ctxOptions, ctxVersionString, DEBUG0, deviceVersionAvailable, GL_VERSIONS |
Method Summary | |
---|---|
protected static WindowsExternalWGLContext |
create(GLDrawableFactory factory,
GLProfile glp)
|
protected void |
destroyImpl()
|
int |
makeCurrent()
MakeCurrent functionality, which also issues the creation of the actual OpenGL context. The complete callgraph for general OpenGL context creation is: GLContextImpl.makeCurrent() GLContextImpl
GLContextImpl.makeCurrentImpl(boolean) Platform Implementation
#create Platform Implementation
If ARB_create_context is supported:
GLContextImpl.createContextARB(long, boolean, int[], int[], int[]) GLContextImpl
GLContextImpl.createContextARBImpl(long, boolean, int, int, int) Platform Implementation
Once at startup, ie triggered by the singleton constructor of a GLDrawableFactoryImpl specialization,
calling GLContextImpl.createContextARB(long, boolean, int[], int[], int[]) will query all available OpenGL versions:FOR ALL GL* DO :
GLContextImpl.createContextARBMapVersionsAvailable(int, boolean)
GLContextImpl.createContextARBVersions(long, boolean, int, int, int, int, int, int[], int[])
#mapVersionAvailable
|
protected void |
makeCurrentImpl(boolean newCreated)
|
void |
release()
Releases control of this GLContext from the current thread. |
protected void |
releaseImpl()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
protected static WindowsExternalWGLContext create(GLDrawableFactory factory, GLProfile glp)
public int makeCurrent() throws GLException
GLContextImpl
GLContextImpl.makeCurrent()
GLContextImplGLContextImpl.makeCurrentImpl(boolean)
Platform Implementation#create
Platform ImplementationARB_create_context
is supported:
GLContextImpl.createContextARB(long, boolean, int[], int[], int[])
GLContextImplGLContextImpl.createContextARBImpl(long, boolean, int, int, int)
Platform ImplementationGLDrawableFactoryImpl
specialization,
calling GLContextImpl.createContextARB(long, boolean, int[], int[], int[])
will query all available OpenGL versions:FOR ALL GL* DO
:
makeCurrent
in class GLContextImpl
GLException
- if synchronization is disabled and the
context is current on another thread, or because the context
could not be created or made current due to non-recoverable,
window system-specific errors.GLContextImpl.makeCurrentImpl(boolean)
,
#create
,
GLContextImpl.createContextARB(long, boolean, int[], int[], int[])
,
GLContextImpl.createContextARBImpl(long, boolean, int, int, int)
,
#mapVersionAvailable
,
GLContextImpl.destroyContextARBImpl(long)
public void release() throws GLException
GLContext
release
in class GLContextImpl
GLException
- if the context had not previously been made
current on the current threadprotected void makeCurrentImpl(boolean newCreated) throws GLException
makeCurrentImpl
in class WindowsWGLContext
GLException
protected void releaseImpl() throws GLException
releaseImpl
in class WindowsWGLContext
GLException
protected void destroyImpl() throws GLException
destroyImpl
in class WindowsWGLContext
GLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |