|
JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java (public API).
|
Generic color buffer FBO attachment, either of type ColorAttachment or TextureAttachment.
More...
Public Member Functions | |
| boolean | initialize (final GL gl) throws GLException |
| Initializes the color buffer and set it's parameter, if uninitialized, i.e. More... | |
| void | free (final GL gl) throws GLException |
| Releases the color buffer if initialized, i.e. More... | |
| void | formatToGLCapabilities (final GLCapabilities caps, final boolean rgba8Avail) |
| Writes the internal format to the given GLCapabilities object. More... | |
| boolean | isTextureAttachment () |
Returns true if instance is of type TextureAttachment and false if instance is of type ColorAttachment. More... | |
| TextureAttachment | getTextureAttachment () |
Casts this object to a TextureAttachment reference, see isTextureAttachment(). More... | |
| ColorAttachment | getColorAttachment () |
Casts this object to a ColorAttachment reference, see isTextureAttachment(). More... | |
| int | getFormat () |
| internal format of colorbuffer More... | |
| int | getWidth () |
| width of colorbuffer More... | |
| int | getHeight () |
| height of colorbuffer More... | |
| int | getName () |
| colorbuffer name [1..max] More... | |
Generic color buffer FBO attachment, either of type ColorAttachment or TextureAttachment.
Always an instance of Attachment.
Definition at line 70 of file FBObject.java.
| void com.jogamp.opengl.FBObject.Colorbuffer.formatToGLCapabilities | ( | final GLCapabilities | caps, |
| final boolean | rgba8Avail | ||
| ) |
Writes the internal format to the given GLCapabilities object.
| caps | the destination for format bits |
| rgba8Avail | whether rgba8 is available |
| void com.jogamp.opengl.FBObject.Colorbuffer.free | ( | final GL | gl | ) | throws GLException |
Releases the color buffer if initialized, i.e.
name is not zero.
| GLException | if buffer release fails. |
Implemented in com.jogamp.opengl.FBObject.TextureAttachment.
| ColorAttachment com.jogamp.opengl.FBObject.Colorbuffer.getColorAttachment | ( | ) |
Casts this object to a ColorAttachment reference, see isTextureAttachment().
| GLException | if this object is not of type ColorAttachment |
Implemented in com.jogamp.opengl.FBObject.ColorAttachment, and com.jogamp.opengl.FBObject.TextureAttachment.
| int com.jogamp.opengl.FBObject.Colorbuffer.getFormat | ( | ) |
internal format of colorbuffer
| int com.jogamp.opengl.FBObject.Colorbuffer.getHeight | ( | ) |
height of colorbuffer
| int com.jogamp.opengl.FBObject.Colorbuffer.getName | ( | ) |
colorbuffer name [1..max]
| TextureAttachment com.jogamp.opengl.FBObject.Colorbuffer.getTextureAttachment | ( | ) |
Casts this object to a TextureAttachment reference, see isTextureAttachment().
| GLException | if this object is not of type TextureAttachment |
Implemented in com.jogamp.opengl.FBObject.ColorAttachment, and com.jogamp.opengl.FBObject.TextureAttachment.
| int com.jogamp.opengl.FBObject.Colorbuffer.getWidth | ( | ) |
width of colorbuffer
| boolean com.jogamp.opengl.FBObject.Colorbuffer.initialize | ( | final GL | gl | ) | throws GLException |
Initializes the color buffer and set it's parameter, if uninitialized, i.e.
name is zero.
true if newly initialized, otherwise false. | GLException | if buffer generation or setup fails. The just created buffer name will be deleted in this case. |
Implemented in com.jogamp.opengl.FBObject.TextureAttachment.
| boolean com.jogamp.opengl.FBObject.Colorbuffer.isTextureAttachment | ( | ) |
Returns true if instance is of type TextureAttachment and false if instance is of type ColorAttachment.
Implemented in com.jogamp.opengl.FBObject.ColorAttachment, and com.jogamp.opengl.FBObject.TextureAttachment.