public abstract static class FBObject.Attachment extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FBObject.Attachment.Type |
| Modifier and Type | Field and Description |
|---|---|
int |
format
immutable the internal format
|
FBObject.Attachment.Type |
type
immutable type [
#COLOR, #DEPTH, #STENCIL, #COLOR_TEXTURE, #DEPTH_TEXTURE, #STENCIL_TEXTURE ] |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
|
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 |
getFormat()
immutable internal format of attachment
|
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()
|
abstract boolean |
initialize(GL gl)
Initializes the attachment and set it's parameter, if uninitialized, i.e.
|
String |
toString() |
public final FBObject.Attachment.Type type
#COLOR, #DEPTH, #STENCIL, #COLOR_TEXTURE, #DEPTH_TEXTURE, #STENCIL_TEXTURE ]public final int format
public final void formatToGLCapabilities(GLCapabilities caps, boolean rgba8Avail)
caps - the destination for format bitsrgba8Avail - whether rgba8 is availablepublic final int getFormat()
public 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 static FBObject.Attachment.Type getType(int attachmentPoint, int maxColorAttachments)
Copyright 2010 JogAmp Community.