Cinder  0.9.1
Public Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
cinder::gl::FboCubeMap::Format Struct Reference

#include <Fbo.h>

Inherits cinder::gl::Fbo::Format.

Public Member Functions

 Format ()
 
FormattextureCubeMapFormat (const TextureCubeMap::Format &format)
 
const TextureCubeMap::FormatgetTextureCubeMapFormat () const
 
FormatdisableDepth ()
 
Formatlabel (const std::string &label)
 

Protected Attributes

gl::TextureCubeMap::Format mTextureCubeMapFormat
 

Private Member Functions

FormatcolorTexture (const Texture::Format &textureFormat=getDefaultColorTextureFormat(true))
 
FormatdisableColor ()
 
FormatdepthBuffer (GLenum internalFormat=getDefaultDepthInternalFormat())
 
FormatdepthTexture (const Texture::Format &textureFormat=getDefaultDepthTextureFormat())
 
Formatsamples (int samples)
 
FormatcoverageSamples (int coverageSamples)
 
FormatstencilBuffer (bool stencilBuffer=true)
 
Formatattachment (GLenum attachmentPoint, const RenderbufferRef &buffer, RenderbufferRef multisampleBuffer=RenderbufferRef())
 
Formatattachment (GLenum attachmentPoint, const TextureBaseRef &texture, RenderbufferRef multisampleBuffer=RenderbufferRef())
 
void setDepthBufferInternalFormat (GLint depthInternalFormat)
 
void setSamples (int samples)
 
void setCoverageSamples (int coverageSamples)
 
void setColorTextureFormat (const Texture::Format &format)
 
void enableDepthBuffer (bool depthBuffer=true)
 
void enableStencilBuffer (bool stencilBuffer=true)
 
void removeAttachment (GLenum attachmentPoint)
 
GLint getDepthBufferInternalFormat () const
 
const Texture::Format & getColorTextureFormat () const
 
const Texture::Format & getDepthTextureFormat () const
 
int getSamples () const
 
int getCoverageSamples () const
 
bool hasColorTexture () const
 
bool hasDepthBuffer () const
 
bool hasStencilBuffer () const
 
const std::string & getLabel () const
 
void setLabel (const std::string &label)
 

Static Private Member Functions

static Texture::Format getDefaultColorTextureFormat (bool alpha=true)
 
static Texture::Format getDefaultDepthTextureFormat ()
 
static GLint getDefaultColorInternalFormat (bool alpha=true)
 
static GLint getDefaultDepthInternalFormat ()
 
static void getDepthStencilFormats (GLint depthInternalFormat, GLint *resultInternalFormat, GLenum *resultPixelDataType)
 

Private Attributes

GLenum mDepthBufferInternalFormat
 
int mSamples
 
int mCoverageSamples
 
bool mColorTexture
 
bool mDepthTexture
 
bool mDepthBuffer
 
bool mStencilBuffer
 
Texture::Format mColorTextureFormat
 
Texture::Format mDepthTextureFormat
 
std::string mLabel
 
std::map< GLenum, RenderbufferRefmAttachmentsBuffer
 
std::map< GLenum, RenderbufferRefmAttachmentsMultisampleBuffer
 
std::map< GLenum, TextureBaseRefmAttachmentsTexture
 

Friends

class FboCubeMap
 

Constructor & Destructor Documentation

cinder::gl::FboCubeMap::Format::Format ( )

Member Function Documentation

Format& cinder::gl::FboCubeMap::Format::textureCubeMapFormat ( const TextureCubeMap::Format format)

Sets the TextureCubeMap format for the default CubeMap.

const TextureCubeMap::Format& cinder::gl::FboCubeMap::Format::getTextureCubeMapFormat ( ) const

Returns the TextureCubeMap format for the default CubeMap.

Format& cinder::gl::FboCubeMap::Format::disableDepth ( )

Disables a depth Buffer.

Format& cinder::gl::FboCubeMap::Format::label ( const std::string &  label)

Sets the debugging label associated with the Fbo. Calls glObjectLabel() when available.

Friends And Related Function Documentation

friend class FboCubeMap
friend

Member Data Documentation

gl::TextureCubeMap::Format cinder::gl::FboCubeMap::Format::mTextureCubeMapFormat
protected

The documentation for this struct was generated from the following files: