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 boolean
equals(Object o)
Comparison byFBObject.Attachment.type
,FBObject.Attachment.format
,samples
,FBObject.width
,FBObject.height
andFBObject.Attachment.name
.void
free(GL gl)
Releases the attachment if initialized, i.e.int
getSamples()
number of samples, or zero for no multisamplingint
hashCode()
boolean
initialize(GL gl)
Initializes the attachment and set it's parameter, if uninitialized, i.e.String
toString()
-
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_STENCIL
FBObject.Attachment.Type.DEPTH
,FBObject.Attachment.Type.STENCIL
orFBObject.Attachment.Type.COLOR
iFormat
-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.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
public boolean initialize(GL gl) throws GLException
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
public void free(GL gl)
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
public String toString()
- Overrides:
toString
in classFBObject.Attachment
-
-