|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
Interface abstraction to allow custom definitions of Attachment's storage.
More...
Public Member Functions | |
| void | setStorage (final GL gl, final Attachment a) |
Set or create the Attachment's storage after generating its name and binding it to the target. More... | |
Interface abstraction to allow custom definitions of Attachment's storage.
Please see setStorage(GL, Attachment) for details.
Definition at line 162 of file FBObject.java.
| void com.jogamp.opengl.FBObject.Attachment.StorageDefinition.setStorage | ( | final GL | gl, |
| final Attachment | a | ||
| ) |
Set or create the Attachment's storage after generating its name and binding it to the target.
Typical examples for standard definitions as implemented in Attachment specializations are:
// Renderbuffer (Color, Debt, Stencil, ..) storage definition w/o multisamples gl.glRenderbufferStorage(GL.GL_RENDERBUFFER, a.format, a.getWidth(), a.getHeight()); // Renderbuffer (Color, Debt, Stencil, ..) storage definition with multisamples gl.glRenderbufferStorageMultisample(GL.GL_RENDERBUFFER, samples, a.format, a.getWidth(), a.getHeight()); // TextureAttachment gl.glTexImage2D(GL.GL_TEXTURE_2D, 0, format, getWidth(), getHeight(), 0, dataFormat, dataType, null);
The storage is setup within Attachment#initialize(GL) and hence the Attachment instance's Attachment#setStorageDefinition(StorageDefinition).
| gl | current GL instance |
| a | instance of the Attachment this StorageDefinition has been assigned to via Attachment#setStorageDefinition(StorageDefinition). |