|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.opengl.impl.GLDrawableImpl
com.jogamp.opengl.impl.egl.EGLDrawable
public abstract class EGLDrawable
Field Summary | |
---|---|
protected long |
eglDisplay
|
protected long |
eglSurface
|
protected boolean |
ownEGLDisplay
|
protected boolean |
ownEGLSurface
|
Fields inherited from class com.jogamp.opengl.impl.GLDrawableImpl |
---|
DEBUG, factory, realized, requestedCapabilities, surface |
Constructor Summary | |
---|---|
protected |
EGLDrawable(EGLDrawableFactory factory,
NativeSurface component)
|
Method Summary | |
---|---|
abstract GLContext |
createContext(GLContext shareWith)
Creates a new context for drawing to this drawable that will optionally share display lists and other server-side OpenGL objects with the specified GLContext. |
protected abstract long |
createSurface(long eglDpy,
long eglNativeCfg,
long surfaceHandle)
|
GLCapabilitiesImmutable |
getChosenGLCapabilities()
Fetches the GLCapabilitiesImmutable corresponding to the chosen
OpenGL capabilities (pixel format / visual / GLProfile) for this drawable.On some platforms, the pixel format is not directly associated with the drawable; a best attempt is made to return a reasonable value in this case. |
long |
getDisplay()
|
GLDynamicLookupHelper |
getGLDynamicLookupHelper()
Returns the DynamicLookupHelper |
EGLGraphicsConfiguration |
getGraphicsConfiguration()
|
long |
getHandle()
This is the GL/Windowing drawable handle. It is usually the NativeSurface.getSurfaceHandle() ,
ie the native surface handle of the underlying windowing toolkit.However, on X11/GLX this reflects a GLXDrawable, which represents a GLXWindow, GLXPixmap, or GLXPbuffer. On EGL, this represents the EGLSurface. |
int |
getHeight()
Returns the current height of this GLDrawable. |
int |
getWidth()
Returns the current width of this GLDrawable. |
protected void |
setRealizedImpl()
|
String |
toString()
|
Methods inherited from class com.jogamp.opengl.impl.GLDrawableImpl |
---|
destroy, destroyHandle, destroyImpl, getFactory, getFactoryImpl, getGLProfile, getNativeSurface, getRequestedGLCapabilities, isRealized, isSurfaceLocked, lockSurface, setRealized, swapBuffers, swapBuffersImpl, toHexString, unlockSurface, updateHandle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean ownEGLDisplay
protected boolean ownEGLSurface
protected long eglDisplay
protected long eglSurface
Constructor Detail |
---|
protected EGLDrawable(EGLDrawableFactory factory, NativeSurface component) throws GLException
GLException
Method Detail |
---|
public long getDisplay()
public long getHandle()
GLDrawable
NativeSurface.getSurfaceHandle()
,
ie the native surface handle of the underlying windowing toolkit.
getHandle
in interface GLDrawable
getHandle
in class GLDrawableImpl
public EGLGraphicsConfiguration getGraphicsConfiguration()
public GLCapabilitiesImmutable getChosenGLCapabilities()
GLDrawable
GLCapabilitiesImmutable
corresponding to the chosen
OpenGL capabilities (pixel format / visual / GLProfile) for this drawable.NativeSurface
's
AbstractGraphicsConfiguration
, and if changes are necessary,
they should reflect those as well.
getChosenGLCapabilities
in interface GLDrawable
getChosenGLCapabilities
in class GLDrawableImpl
public abstract GLContext createContext(GLContext shareWith)
GLDrawable
The GLContext share
need not be associated with this
GLDrawable and may be null if sharing of display lists and other
objects is not desired. See the note in the overview
documentation on
context sharing.
protected abstract long createSurface(long eglDpy, long eglNativeCfg, long surfaceHandle)
protected void setRealizedImpl()
setRealizedImpl
in class GLDrawableImpl
public int getWidth()
GLDrawable
getWidth
in interface GLDrawable
getWidth
in class GLDrawableImpl
public int getHeight()
GLDrawable
getHeight
in interface GLDrawable
getHeight
in class GLDrawableImpl
public GLDynamicLookupHelper getGLDynamicLookupHelper()
GLDrawableImpl
getGLDynamicLookupHelper
in class GLDrawableImpl
public String toString()
toString
in interface GLDrawable
toString
in class GLDrawableImpl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |