public static interface FBObject.Colorbuffer
FBObject.ColorAttachment
or FBObject.TextureAttachment
.
Always an instance of FBObject.Attachment
.
Modifier and Type | Method and Description |
---|---|
void |
formatToGLCapabilities(GLCapabilities caps,
boolean rgba8Avail)
Writes the internal format to the given GLCapabilities object.
|
void |
free(GL gl)
Releases the color buffer if initialized, i.e.
|
FBObject.ColorAttachment |
getColorAttachment()
Casts this object to a
FBObject.ColorAttachment reference, see isTextureAttachment() . |
int |
getFormat()
internal format of colorbuffer
|
int |
getHeight()
height of colorbuffer
|
int |
getName()
colorbuffer name [1..max]
|
FBObject.TextureAttachment |
getTextureAttachment()
Casts this object to a
FBObject.TextureAttachment reference, see isTextureAttachment() . |
int |
getWidth()
width of colorbuffer
|
boolean |
initialize(GL gl)
Initializes the color buffer and set it's parameter, if uninitialized, i.e.
|
boolean |
isTextureAttachment()
Returns
true if instance is of type FBObject.TextureAttachment
and false if instance is of type FBObject.ColorAttachment . |
boolean initialize(GL gl) throws GLException
zero
.true
if newly initialized, otherwise false
.GLException
- if buffer generation or setup fails. The just created buffer name will be deleted in this case.void free(GL gl) throws GLException
zero
.GLException
- if buffer release fails.void formatToGLCapabilities(GLCapabilities caps, boolean rgba8Avail)
caps
- the destination for format bitsrgba8Avail
- whether rgba8 is availableboolean isTextureAttachment()
true
if instance is of type FBObject.TextureAttachment
and false
if instance is of type FBObject.ColorAttachment
.FBObject.TextureAttachment getTextureAttachment()
FBObject.TextureAttachment
reference, see isTextureAttachment()
.GLException
- if this object is not of type FBObject.TextureAttachment
isTextureAttachment()
FBObject.ColorAttachment getColorAttachment()
FBObject.ColorAttachment
reference, see isTextureAttachment()
.GLException
- if this object is not of type FBObject.ColorAttachment
isTextureAttachment()
int getFormat()
int getWidth()
int getHeight()
int getName()
Copyright 2010 JogAmp Community.