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 |
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()
|
void |
initialize(GL gl)
Initializes the attachment buffer 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 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 static FBObject.Attachment.Type getType(int attachmentPoint, int maxColorAttachments)
Copyright 2010 JogAmp Community.