Package com.jogamp.opengl
Class FBObject.RenderAttachment
- java.lang.Object
-
- com.jogamp.opengl.FBObject.Attachment
-
- com.jogamp.opengl.FBObject.RenderAttachment
-
- Direct Known Subclasses:
FBObject.ColorAttachment
- Enclosing class:
- FBObject
public static class FBObject.RenderAttachment extends FBObject.Attachment
Other renderbuffer attachment which maybe a colorbuffer, depth or stencil.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jogamp.opengl.FBObject.Attachment
FBObject.Attachment.StorageDefinition, FBObject.Attachment.Type
-
-
Field Summary
-
Fields inherited from class com.jogamp.opengl.FBObject.Attachment
format, type
-
-
Constructor Summary
Constructors Constructor Description RenderAttachment(FBObject.Attachment.Type type, int iFormat, int samples, int width, int height, int name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Comparison byFBObject.Attachment.type,FBObject.Attachment.format,samples,FBObject.width,FBObject.heightandFBObject.Attachment.name.voidfree(GL gl)Releases the attachment if initialized, i.e.intgetSamples()number of samples, or zero for no multisamplinginthashCode()Hashed byFBObject.Attachment.type,FBObject.Attachment.format,samples,FBObject.width,FBObject.heightandFBObject.Attachment.name.booleaninitialize(GL gl)Initializes the attachment and set it's parameter, if uninitialized, i.e.StringtoString()-
Methods inherited from class com.jogamp.opengl.FBObject.Attachment
formatToGLCapabilities, getFormat, getHeight, getName, getType, getWidth, setStorageDefinition
-
-
-
-
Constructor Detail
-
RenderAttachment
public RenderAttachment(FBObject.Attachment.Type type, int iFormat, int samples, int width, int height, int name)
- Parameters:
type- allowed types areFBObject.Attachment.Type.DEPTH_STENCILFBObject.Attachment.Type.DEPTH,FBObject.Attachment.Type.STENCILorFBObject.Attachment.Type.COLORiFormat-samples-width-height-name-
-
-
Method Detail
-
getSamples
public final int getSamples()
number of samples, or zero for no multisampling
-
equals
public boolean equals(Object o)
Comparison by
FBObject.Attachment.type,FBObject.Attachment.format,samples,FBObject.width,FBObject.heightandFBObject.Attachment.name.Comparison by
FBObject.Attachment.type,FBObject.Attachment.format,FBObject.Attachment.width,FBObject.Attachment.heightandFBObject.Attachment.name.- Overrides:
equalsin classFBObject.Attachment
-
hashCode
public int hashCode()
Hashed by
FBObject.Attachment.type,FBObject.Attachment.format,samples,FBObject.width,FBObject.heightandFBObject.Attachment.name.Hashed by
FBObject.Attachment.type,FBObject.Attachment.format,FBObject.Attachment.width,FBObject.Attachment.heightandFBObject.Attachment.name.- Overrides:
hashCodein classFBObject.Attachment
-
initialize
public boolean initialize(GL gl) throws GLException
Description copied from class:FBObject.AttachmentInitializes the attachment and set it's parameter, if uninitialized, i.e. name iszero.final boolean init = 0 == name; if( init ) { do init .. } return init;- Specified by:
initializein classFBObject.Attachment- Returns:
trueif newly initialized, otherwisefalse.- Throws:
GLException- if buffer generation or setup fails. The just created buffer name will be deleted in this case.
-
free
public void free(GL gl)
Description copied from class:FBObject.AttachmentReleases the attachment if initialized, i.e. name is notzero.if(0 != name) { do free .. name = 0; }- Specified by:
freein classFBObject.Attachment
-
toString
public String toString()
- Overrides:
toStringin classFBObject.Attachment
-
-