GLAutoDrawable do so upon creation.
| Modifier and Type | Method and Description |
|---|---|
| public GLContext | createContext(GLContext shareWith)
Creates a new context for drawing to this drawable that will optionally share buffer objects, textures and other server-side OpenGL objects with the specified GLContext. |
| public GLCapabilitiesImmutable | Returns: The immutable queried instance.Fetches the |
| public GLDrawableFactory | |
| public GLProfile | |
| public long | getHandle()
Returns the GL drawable handle,
guaranteed to be valid after |
| public NativeSurface | getNativeSurface()
Redeclares com. NativeSurface of this NativeSurfaceHolder.
|
| public GLCapabilitiesImmutable | Returns: The immutable queried instance.Fetches the |
| public int | |
| public int | |
| public boolean | isGLOriented()
Returns |
| public boolean | |
| public void | setRealized(boolean realized)
Indicates to GLDrawable implementations whether the
underlying |
| public void | |
| public String |
| createContext | back to summary |
|---|---|
| public GLContext createContext(GLContext shareWith) Creates a new context for drawing to this drawable that will optionally share buffer objects, textures and other server-side OpenGL objects with the specified GLContext.
The GLContext | |
| getChosenGLCapabilities | back to summary |
|---|---|
| public GLCapabilitiesImmutable getChosenGLCapabilities() Fetches the
This query only returns the chosen capabilities if 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.
This object shall be directly associated to the attached
| |
| getFactory | back to summary |
|---|---|
| public GLDrawableFactory getFactory() Return the | |
| getGLProfile | back to summary |
|---|---|
| public GLProfile getGLProfile() Fetches the | |
| getHandle | back to summary |
|---|---|
| public long getHandle() Returns the GL drawable handle,
guaranteed to be valid after
It is usually identical to the underlying windowing toolkit
On EGL it is represented by the EGLSurface. | |
| getNativeSurface | back to summary |
|---|---|
| public NativeSurface getNativeSurface() Redeclares com. Doc from com. Returns the associated
Returns the underlying
| |
| getRequestedGLCapabilities | back to summary |
|---|---|
| public GLCapabilitiesImmutable getRequestedGLCapabilities() Fetches the
If
| |
| getSurfaceHeight | back to summary |
|---|---|
| public int getSurfaceHeight() Returns the height of this
| |
| getSurfaceWidth | back to summary |
|---|---|
| public int getSurfaceWidth() Returns the width of this
| |
| isGLOriented | back to summary |
|---|---|
| public boolean isGLOriented() Returns
Default impl. is
Currently only MS-Windows bitmap offscreen drawable uses a non OpenGL orientation and hence returns | |
| isRealized | back to summary |
|---|---|
| public boolean isRealized() Returns
A drawable can be realized and unrealized via
| |
| setRealized | back to summary |
|---|---|
| public void setRealized(boolean realized) Indicates to GLDrawable implementations whether the
underlying
If realized, the
End users do not need to call this method; it is not necessary to
call
Developers implementing new OpenGL components for various window
toolkits need to call this method against GLDrawables obtained
from the GLDrawableFactory via the
With an argument of
This is important since NativeSurface's lockSurface()
ensures resolving the window/surface handles, and the drawable's GLCapabilities
might have changed.
Calling this method has no other effects. For example, if
| |
| swapBuffers | back to summary |
|---|---|
| public void swapBuffers() throws GLException Swaps the front and back buffers of this drawable. For | |
| toString | back to summary |
|---|---|
public String toString()
| |