|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.opengl.FBObject.Attachment
public abstract static class FBObject.Attachment
Common super class of all attachments
Nested Class Summary | |
---|---|
static class |
FBObject.Attachment.Type
|
Field Summary | |
---|---|
int |
format
immutable the internal format |
FBObject.Attachment.Type |
type
immutable type [ #COLOR , #DEPTH , #STENCIL , #COLOR_TEXTURE , #DEPTH_TEXTURE , #STENCIL_TEXTURE ] |
Method Summary | |
---|---|
boolean |
equals(Object o)
Comparison by type , format , width , height and name . |
void |
free(GL gl)
Releases the attachment buffer if initialized, i.e. |
int |
getHeight()
height of attachment |
int |
getInitCounter()
|
int |
getName()
buffer name [1..max], maybe a texture or renderbuffer name, depending on type. |
static FBObject.Attachment.Type |
getType(int attachmentPoint,
int maxColorAttachments)
|
int |
getWidth()
width of attachment |
int |
hashCode()
Hashed by type , format , width , height and name . |
void |
initialize(GL gl)
Initializes the attachment buffer and set it's parameter, if uninitialized, i.e. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final FBObject.Attachment.Type type
#COLOR
, #DEPTH
, #STENCIL
, #COLOR_TEXTURE
, #DEPTH_TEXTURE
, #STENCIL_TEXTURE
]
public final int format
Method Detail |
---|
public final int getWidth()
public final int getHeight()
public final int getName()
public final int getInitCounter()
public void initialize(GL gl) throws GLException
zero
.
Implementation employs an initialization counter, hence it can be paired recursively with free(GL)
.
GLException
- if buffer generation or setup fails. The just created buffer name will be deleted in this case.public void free(GL gl) throws GLException
zero
.
Implementation employs an initialization counter, hence it can be paired recursively with initialize(GL)
.
GLException
- if buffer release fails.public boolean equals(Object o)
public int hashCode()
public String toString()
toString
in class Object
public static FBObject.Attachment.Type getType(int attachmentPoint, int maxColorAttachments)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |