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
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.Type -
Field Summary
Fields inherited from class com.jogamp.opengl.FBObject.Attachment
format, type -
Constructor Summary
ConstructorsConstructorDescriptionRenderAttachment(FBObject.Attachment.Type type, int iFormat, int samples, int width, int height, int name) -
Method Summary
Modifier and TypeMethodDescriptionbooleanComparison byFBObject.Attachment.type,FBObject.Attachment.format,samples,FBObject.width,FBObject.heightandFBObject.Attachment.name.voidReleases the attachment if initialized, i.e.final intnumber 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.toString()Methods inherited from class com.jogamp.opengl.FBObject.Attachment
formatToGLCapabilities, getFormat, getHeight, getName, getType, getWidth
-
Constructor Details
-
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 Details
-
getSamples
public final int getSamples()number of samples, or zero for no multisampling -
equals
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
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
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
- Overrides:
toStringin classFBObject.Attachment
-