|
|||||||||
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.egl.EGLContext
public abstract class EGLContext
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 | |
---|---|
abstract 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 _context)
Destroy the context created by GLContextImpl.createContextARBImpl(long, boolean, int, int, int) . |
protected void |
destroyImpl()
|
EGLExt |
getEGLExt()
|
EGLExtProcAddressTable |
getEGLExtProcAddressTable()
|
protected Map |
getExtensionNameMap()
|
protected Map |
getFunctionNameMap()
|
int |
getOffscreenContextPixelDataType()
Only called for offscreen contexts; needed by glReadPixels |
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 |
isGLReadDrawableAvailable()
Return availability of GL read drawable. |
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()
|
abstract void |
releasePbufferFromTexture()
Pbuffer support; given that this is a GLContext associated with a pbuffer, releases this pbuffer from its texture target. |
protected void |
setSwapIntervalImpl(int interval)
|
protected void |
updateGLXProcAddressTable(int major,
int minor,
int ctp)
Updates the platform's 'GLX' function cache |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Object getPlatformGLExtensions()
getPlatformGLExtensions
in class GLContextImpl
public EGLExt getEGLExt()
public final ProcAddressTable getPlatformExtProcAddressTable()
GLContextImpl
getPlatformExtProcAddressTable
in class GLContextImpl
public final EGLExtProcAddressTable getEGLExtProcAddressTable()
protected Map getFunctionNameMap()
getFunctionNameMap
in class GLContextImpl
protected Map getExtensionNameMap()
getExtensionNameMap
in class GLContextImpl
public final boolean isGLReadDrawableAvailable()
GLContext
isGLReadDrawableAvailable
in class GLContext
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 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 void destroyContextARBImpl(long _context)
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 boolean createImpl() throws GLException
createImpl
in class GLContextImpl
GLException
protected final void updateGLXProcAddressTable(int major, int minor, int ctp)
GLContextImpl
updateGLXProcAddressTable
in class GLContextImpl
public String getPlatformExtensionsString()
GLContext
getPlatformExtensionsString
in class GLContextImpl
protected void setSwapIntervalImpl(int interval)
setSwapIntervalImpl
in class GLContextImpl
public abstract void bindPbufferToTexture()
GLContextImpl
bindPbufferToTexture
in class GLContextImpl
public abstract void releasePbufferFromTexture()
GLContextImpl
releasePbufferFromTexture
in class GLContextImpl
protected void copyImpl(GLContext source, int mask) throws GLException
copyImpl
in class GLContextImpl
GLException
public ByteBuffer glAllocateMemoryNV(int arg0, float arg1, float arg2, float arg3)
glAllocateMemoryNV
in class GLContextImpl
public boolean offscreenImageNeedsVerticalFlip()
GLContextImpl
offscreenImageNeedsVerticalFlip
in class GLContextImpl
public int getOffscreenContextPixelDataType()
GLContextImpl
getOffscreenContextPixelDataType
in class GLContextImpl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |