|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
Resizeable GLFBODrawable specialization.
More...
Public Member Functions | |
| void | setSurfaceSize (GLContext context, int newWidth, int newHeight) throws NativeWindowException, GLException |
Resize this GLFBODrawable's surface. More... | |
Public Member Functions inherited from com.jogamp.opengl.GLFBODrawable | |
| boolean | isInitialized () |
| void | setFBOMode (final int modeBits) throws IllegalStateException |
| Set the FBO mode bits used for FBO creation. More... | |
| int | getFBOMode () |
| void | resetSize (final GL gl) throws GLException |
Notify this instance about upstream size change to reconfigure the FBObject. More... | |
| int | getTextureUnit () |
| void | setTextureUnit (final int unit) |
| void | setNumSamples (final GL gl, final int newSamples) throws GLException |
| Set the number of sample buffers if using MSAA. More... | |
| int | getNumSamples () |
| int | setNumBuffers (final int bufferCount) throws IllegalStateException, GLException |
Sets the number of buffers (FBO) being used if using double buffering. More... | |
| int | getNumBuffers () |
| FBObject | getFBObject (final int bufferName) throws IllegalArgumentException |
Sets the DoubleBufferMode. More... | |
| Colorbuffer | getColorbuffer (final int bufferName) throws IllegalArgumentException |
Returns the named Colorbuffer instance. More... | |
Public Member Functions inherited from com.jogamp.opengl.GLDrawable | |
| 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. More... | |
| void | setRealized (boolean realized) |
Indicates to GLDrawable implementations whether the underlying surface has been created and can be drawn into. More... | |
| boolean | isRealized () |
Returns true if this drawable is realized, otherwise false. More... | |
| int | getSurfaceWidth () |
Returns the width of this GLDrawable's surface client area in pixel units. More... | |
| int | getSurfaceHeight () |
Returns the height of this GLDrawable's surface client area in pixel units. More... | |
| boolean | isGLOriented () |
Returns true if the drawable is rendered in OpenGL's coordinate system, origin at bottom left. More... | |
| void | swapBuffers () throws GLException |
| Swaps the front and back buffers of this drawable. More... | |
| GLCapabilitiesImmutable | getChosenGLCapabilities () |
Fetches the GLCapabilitiesImmutable corresponding to the chosen OpenGL capabilities (pixel format / visual / GLProfile) for this drawable. More... | |
| GLCapabilitiesImmutable | getRequestedGLCapabilities () |
Fetches the GLCapabilitiesImmutable corresponding to the user requested OpenGL capabilities (pixel format / visual / GLProfile) for this drawable. More... | |
| GLProfile | getGLProfile () |
Fetches the GLProfile for this drawable. More... | |
| NativeSurface | getNativeSurface () |
Returns the associated NativeSurface of this NativeSurfaceHolder. More... | |
| long | getHandle () |
Returns the GL drawable handle, guaranteed to be valid after realization and while it's surface is being locked. More... | |
| GLDrawableFactory | getFactory () |
Return the GLDrawableFactory being used to create this instance. More... | |
| String | toString () |
| NativeSurface | getNativeSurface () |
Returns the associated NativeSurface of this NativeSurfaceHolder. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from com.jogamp.opengl.GLFBODrawable | |
| static final int | FBOMODE_USE_TEXTURE = 1 << 0 |
FBO Mode Bit: Use a TextureAttachment for the render colorbuffer, see setFBOMode(int). More... | |
Resizeable GLFBODrawable specialization.
Definition at line 212 of file GLFBODrawable.java.
| void com.jogamp.opengl.GLFBODrawable.Resizeable.setSurfaceSize | ( | GLContext | context, |
| int | newWidth, | ||
| int | newHeight | ||
| ) | throws NativeWindowException, GLException |
Resize this GLFBODrawable's surface.
This drawable is being locked during operation.
| context | the GLContext bound to this drawable, will be made current during operation A prev. current context will be make current after operation. |
| newWidth | new width in pixel units |
| newHeight | new width in pixel units |
| NativeWindowException | in case the surface could no be locked |
| GLException | in case an error during the resize operation occurred |