com.jogamp.opengl
Interface FBObject.Colorbuffer

All Known Implementing Classes:
FBObject.ColorAttachment, FBObject.TextureAttachment
Enclosing class:
FBObject

public static interface FBObject.Colorbuffer

Marker interface, denotes a color buffer attachment.

Always an instance of FBObject.Attachment.

Either an instance of FBObject.ColorAttachment or FBObject.TextureAttachment.


Method Summary
 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.
 boolean initialize(GL gl)
          Initializes the color buffer and set it's parameter, if uninitialized, i.e.
 

Method Detail

initialize

boolean initialize(GL gl)
                   throws GLException
Initializes the color buffer and set it's parameter, if uninitialized, i.e. name is zero.

Returns:
true if newly initialized, otherwise false.
Throws:
GLException - if buffer generation or setup fails. The just created buffer name will be deleted in this case.

free

void free(GL gl)
          throws GLException
Releases the color buffer if initialized, i.e. name is not zero.

Throws:
GLException - if buffer release fails.

formatToGLCapabilities

void formatToGLCapabilities(GLCapabilities caps,
                            boolean rgba8Avail)
Writes the internal format to the given GLCapabilities object.

Parameters:
caps - the destination for format bits
rgba8Avail - whether rgba8 is available


Copyright 2010 JogAmp Community.