|
|||||||||
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.x11.glx.X11GLXContext
public abstract class X11GLXContext
Field Summary | |
---|---|
protected boolean |
isDirect
|
protected static boolean |
TRACE_CONTEXT_CURRENT
|
Fields inherited from class com.jogamp.opengl.impl.GLContextImpl |
---|
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 | |
---|---|
void |
bindPbufferToTexture()
Pbuffer support; given that this is a GLContext associated with a pbuffer, binds this pbuffer to its texture target. |
protected void |
copyImpl(GLContext source,
int mask)
|
protected long |
createContextARBImpl(long share,
boolean direct,
int ctp,
int major,
int minor)
Platform dependent but harmonized implementation of the ARB_create_context
mechanism to create a context.This method is called from GLContextImpl.createContextARB(long, boolean, int[], int[], int[]) .The implementation shall verify this context with a MakeContextCurrent call.The implementation shall leave the context current. |
protected boolean |
createImpl()
|
protected void |
destroyContextARBImpl(long ctx)
Destroy the context created by GLContextImpl.createContextARBImpl(long, boolean, int, int, int) . |
protected void |
destroyImpl()
|
protected Map |
getExtensionNameMap()
|
protected Map |
getFunctionNameMap()
|
GLXExt |
getGLXExt()
|
GLXExtProcAddressTable |
getGLXExtProcAddressTable()
|
int |
getOffscreenContextPixelDataType()
Only called for offscreen contexts; needed by glReadPixels |
int |
getOffscreenContextReadBuffer()
|
String |
getPlatformExtensionsString()
Returns a non-null (but possibly empty) string containing the space-separated list of available platform-dependent (e.g., WGL, GLX) extensions. |
ProcAddressTable |
getPlatformExtProcAddressTable()
Shall return the platform extension ProcAddressTable, ie for GLXExt, EGLExt, .. |
Object |
getPlatformGLExtensions()
|
ByteBuffer |
glAllocateMemoryNV(int arg0,
float arg1,
float arg2,
float arg3)
|
boolean |
isExtensionAvailable(String glExtensionName)
Returns true if the specified OpenGL extension can be successfully called using this GL context given the current host (OpenGL client) and display (OpenGL server) configuration. |
boolean |
isGLReadDrawableAvailable()
Return availability of GL read drawable. |
boolean |
isGLXVersionGreaterEqualOneThree()
|
protected void |
makeCurrentImpl(boolean newCreated)
|
boolean |
offscreenImageNeedsVerticalFlip()
On some platforms the mismatch between OpenGL's coordinate system (origin at bottom left) and the window system's coordinate system (origin at top left) necessitates a vertical flip of pixels read from offscreen contexts. |
protected void |
releaseImpl()
|
void |
releasePbufferFromTexture()
Pbuffer support; given that this is a GLContext associated with a pbuffer, releases this pbuffer from its texture target. |
protected void |
resetState()
|
protected void |
setSwapIntervalImpl(int interval)
|
String |
toString()
Classname, GL, GLDrawable |
protected void |
updateGLXProcAddressTable()
Updates the platform's 'GLX' function cache |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final boolean TRACE_CONTEXT_CURRENT
protected boolean isDirect
Method Detail |
---|
protected void resetState()
public final ProcAddressTable getPlatformExtProcAddressTable()
GLContextImpl
getPlatformExtProcAddressTable
in class GLContextImpl
public final GLXExtProcAddressTable getGLXExtProcAddressTable()
public Object getPlatformGLExtensions()
getPlatformGLExtensions
in class GLContextImpl
public GLXExt getGLXExt()
protected Map getFunctionNameMap()
getFunctionNameMap
in class GLContextImpl
protected Map getExtensionNameMap()
getExtensionNameMap
in class GLContextImpl
public final boolean isGLXVersionGreaterEqualOneThree()
public final boolean isGLReadDrawableAvailable()
GLContext
isGLReadDrawableAvailable
in class GLContext
protected void destroyContextARBImpl(long ctx)
GLContextImpl
GLContextImpl.createContextARBImpl(long, boolean, int, int, int)
.
destroyContextARBImpl
in class GLContextImpl
GLContextImpl.makeCurrent()
,
GLContextImpl.makeCurrentImpl(boolean)
,
#create
,
GLContextImpl.createContextARB(long, boolean, int[], int[], int[])
,
GLContextImpl.createContextARBImpl(long, boolean, int, int, int)
,
GLContextImpl.destroyContextARBImpl(long)
protected long createContextARBImpl(long share, boolean direct, int ctp, int major, int minor)
GLContextImpl
ARB_create_context
mechanism to create a context.GLContextImpl.createContextARB(long, boolean, int[], int[], int[])
.MakeContextCurrent
call.
createContextARBImpl
in class GLContextImpl
share
- the shared context or nulldirect
- flag if direct is requestedctp
- ARB_create_context
related, see references belowmajor
- major numberminor
- minor number
GLContextImpl.makeCurrent()
,
GLContext.CTX_PROFILE_COMPAT
,
GLContext.CTX_OPTION_FORWARD
,
GLContext.CTX_OPTION_DEBUG
,
GLContextImpl.makeCurrentImpl(boolean)
,
#create
,
GLContextImpl.createContextARB(long, boolean, int[], int[], int[])
,
GLContextImpl.createContextARBImpl(long, boolean, int, int, int)
,
GLContextImpl.destroyContextARBImpl(long)
protected boolean createImpl()
createImpl
in class GLContextImpl
protected void makeCurrentImpl(boolean newCreated) throws GLException
makeCurrentImpl
in class GLContextImpl
GLException
protected void releaseImpl() throws GLException
releaseImpl
in class GLContextImpl
GLException
protected void destroyImpl() throws GLException
destroyImpl
in class GLContextImpl
GLException
protected void copyImpl(GLContext source, int mask) throws GLException
copyImpl
in class GLContextImpl
GLException
protected final void updateGLXProcAddressTable()
GLContextImpl
updateGLXProcAddressTable
in class GLContextImpl
public String getPlatformExtensionsString()
GLContext
getPlatformExtensionsString
in class GLContextImpl
public boolean isExtensionAvailable(String glExtensionName)
GLContextImpl
GLBase.isExtensionAvailable(String)
for more details.
isExtensionAvailable
in class GLContextImpl
glExtensionName
- the name of the OpenGL extension (e.g.,
"GL_VERTEX_PROGRAM_ARB").protected void setSwapIntervalImpl(int interval)
setSwapIntervalImpl
in class GLContextImpl
public ByteBuffer glAllocateMemoryNV(int arg0, float arg1, float arg2, float arg3)
glAllocateMemoryNV
in class GLContextImpl
public int getOffscreenContextPixelDataType()
GLContextImpl
getOffscreenContextPixelDataType
in class GLContextImpl
public int getOffscreenContextReadBuffer()
public boolean offscreenImageNeedsVerticalFlip()
GLContextImpl
offscreenImageNeedsVerticalFlip
in class GLContextImpl
public void bindPbufferToTexture()
GLContextImpl
bindPbufferToTexture
in class GLContextImpl
public void releasePbufferFromTexture()
GLContextImpl
releasePbufferFromTexture
in class GLContextImpl
public String toString()
GLContext
toString
in class GLContext
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |