|
|||||||||
| 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 |
formatToGLCapabilities(GLCapabilities caps,
boolean rgba8Avail)
Writes the internal format to the given GLCapabilities object. |
abstract void |
free(GL gl)
Releases the attachment if initialized, i.e. |
int |
getHeight()
height of attachment |
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. |
abstract boolean |
initialize(GL gl)
Initializes the attachment 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 void formatToGLCapabilities(GLCapabilities caps,
boolean rgba8Avail)
caps - the destination for format bitsrgba8Avail - whether rgba8 is availablepublic final int getWidth()
public final int getHeight()
public final int getName()
public abstract boolean initialize(GL gl)
throws GLException
zero.
final boolean init = 0 == name;
if( init ) {
do init ..
}
return init;
true if newly initialized, otherwise false.
GLException - if buffer generation or setup fails. The just created buffer name will be deleted in this case.
public abstract void free(GL gl)
throws GLException
zero.
if(0 != name) {
do free ..
name = 0;
}
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 | ||||||||