Package com.jogamp.opengl
Interface FBObject.Attachment.StorageDefinition
-
- Enclosing class:
- FBObject.Attachment
public static interface FBObject.Attachment.StorageDefinition
Interface 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 void
setStorage(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.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 withinFBObject.Attachment.initialize(GL)
and hence theFBObject.Attachment
instance'sFBObject.Attachment.setStorageDefinition(StorageDefinition)
.- Parameters:
gl
- currentGL
instancea
- instance of theFBObject.Attachment
thisFBObject.Attachment.StorageDefinition
has been assigned to viaFBObject.Attachment.setStorageDefinition(StorageDefinition)
.
-
-