Package com.jogamp.opengl
Interface FBObject.Attachment.StorageDefinition
-
- Enclosing class:
- FBObject.Attachment
public static interface FBObject.Attachment.StorageDefinitionInterface abstraction to allow custom definitions ofFBObject.Attachment's storage.Please see
setStorage(GL, Attachment)for details.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetStorage(GL gl, FBObject.Attachment a)Set or create theFBObject.Attachment's storage after generating its name and binding it to the target.
-
-
-
Method Detail
-
setStorage
void setStorage(GL gl, FBObject.Attachment a)
Set or create theFBObject.Attachment's storage after generating its name and binding it to the target. Typical examples for standard definitions as implemented inFBObject.Attachmentspecializations 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 withinFBObject.Attachment.initialize(GL)and hence theFBObject.Attachmentinstance'sFBObject.Attachment.setStorageDefinition(StorageDefinition).- Parameters:
gl- currentGLinstancea- instance of theFBObject.AttachmentthisFBObject.Attachment.StorageDefinitionhas been assigned to viaFBObject.Attachment.setStorageDefinition(StorageDefinition).
-
-