JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.FBObject.Attachment.StorageDefinition Interface Reference

Interface abstraction to allow custom definitions of Attachment's storage. More...

Collaboration diagram for com.jogamp.opengl.FBObject.Attachment.StorageDefinition:

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...
 

Detailed Description

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.

Member Function Documentation

◆ setStorage()

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).

Parameters
glcurrent GL instance
ainstance of the Attachment this StorageDefinition has been assigned to via Attachment#setStorageDefinition(StorageDefinition).
Here is the caller graph for this function:

The documentation for this interface was generated from the following file: