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 TypeMethodDescriptionboolean
Comparison byFBObject.Attachment.type
,FBObject.Attachment.format
,samples
,FBObject.width
,FBObject.height
andFBObject.Attachment.name
.void
Releases the attachment if initialized, i.e.final int
number of samples, or zero for no multisamplingint
hashCode()
Hashed byFBObject.Attachment.type
,FBObject.Attachment.format
,samples
,FBObject.width
,FBObject.height
andFBObject.Attachment.name
.boolean
initialize
(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_STENCIL
FBObject.Attachment.Type.DEPTH
,FBObject.Attachment.Type.STENCIL
orFBObject.Attachment.Type.COLOR
iFormat
-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.height
andFBObject.Attachment.name
.Comparison by
FBObject.Attachment.type
,FBObject.Attachment.format
,FBObject.Attachment.width
,FBObject.Attachment.height
andFBObject.Attachment.name
.- Overrides:
equals
in classFBObject.Attachment
-
hashCode
public int hashCode()Hashed by
FBObject.Attachment.type
,FBObject.Attachment.format
,samples
,FBObject.width
,FBObject.height
andFBObject.Attachment.name
.Hashed by
FBObject.Attachment.type
,FBObject.Attachment.format
,FBObject.Attachment.width
,FBObject.Attachment.height
andFBObject.Attachment.name
.- Overrides:
hashCode
in classFBObject.Attachment
-
initialize
Description copied from class:FBObject.Attachment
Initializes 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:
initialize
in classFBObject.Attachment
- Returns:
true
if 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.Attachment
Releases the attachment if initialized, i.e. name is notzero
.if(0 != name) { do free .. name = 0; }
- Specified by:
free
in classFBObject.Attachment
-
toString
- Overrides:
toString
in classFBObject.Attachment
-