PICCANTE  0.4
The hottest HDR imaging library!
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
pic::Fbo Class Reference

The Fbo class. More...

#include <fbo.hpp>

Public Member Functions

 Fbo ()
 
bool create (int width, int height, bool bDepth)
 create More...
 
bool create (int width, int height, int depth, bool bDepth, GLuint tex)
 create More...
 
bool createMRT (int width, int height, bool bDepth, unsigned int nMRT)
 create More...
 
void attachColorBuffer (GLuint tex, GLenum target, int slice=0)
 attachColorBuffer More...
 
void attachColorBuffer2 (GLuint tex, GLenum target, int slice)
 attachColorBuffer2 More...
 
bool release ()
 release More...
 
void bind ()
 bind More...
 
void unbind ()
 unbind More...
 
void bindSimple ()
 bindSimple More...
 
void unbindSimple ()
 unbindSimple More...
 
void bindMRT ()
 bindMRT More...
 
void unbindMRT ()
 unbind More...
 
Fboclone ()
 clone More...
 

Static Public Member Functions

static void checkStatus (GLenum fboStatus)
 checkStatus More...
 

Public Attributes

GLuint fbo
 
GLuint tex
 
GLuint depth
 
int width
 
int height
 
int frames
 
bool bDepth
 
GLuint * texMRT
 
unsigned int nMRT
 
GLuint * attachmentsMRT
 

Detailed Description

The Fbo class.

Constructor & Destructor Documentation

◆ Fbo()

pic::Fbo::Fbo ( )

Member Function Documentation

◆ attachColorBuffer()

void pic::Fbo::attachColorBuffer ( GLuint  tex,
GLenum  target,
int  slice = 0 
)

attachColorBuffer

Parameters
tex
target
slice

◆ attachColorBuffer2()

void pic::Fbo::attachColorBuffer2 ( GLuint  tex,
GLenum  target,
int  slice 
)

attachColorBuffer2

Parameters
tex
target
slice

◆ bind()

void pic::Fbo::bind ( )

bind

◆ bindMRT()

void pic::Fbo::bindMRT ( )

bindMRT

◆ bindSimple()

void pic::Fbo::bindSimple ( )
inline

bindSimple

◆ checkStatus()

static void pic::Fbo::checkStatus ( GLenum  fboStatus)
inlinestatic

checkStatus

Parameters
fboStatus

◆ clone()

Fbo* pic::Fbo::clone ( )

clone

Returns

◆ create() [1/2]

bool pic::Fbo::create ( int  width,
int  height,
bool  bDepth 
)

create

Parameters
width
height
depth
bDepth
tex
Returns

◆ create() [2/2]

bool pic::Fbo::create ( int  width,
int  height,
int  depth,
bool  bDepth,
GLuint  tex 
)

create

Parameters
width
height
bDepth
Returns

◆ createMRT()

bool pic::Fbo::createMRT ( int  width,
int  height,
bool  bDepth,
unsigned int  nMRT 
)

create

Parameters
width
height
bDepth
Returns

◆ release()

bool pic::Fbo::release ( )

release

Returns

◆ unbind()

void pic::Fbo::unbind ( )

unbind

◆ unbindMRT()

void pic::Fbo::unbindMRT ( )

unbind

◆ unbindSimple()

void pic::Fbo::unbindSimple ( )
inline

unbindSimple

Member Data Documentation

◆ attachmentsMRT

GLuint* pic::Fbo::attachmentsMRT

◆ bDepth

bool pic::Fbo::bDepth

◆ depth

GLuint pic::Fbo::depth

◆ fbo

GLuint pic::Fbo::fbo

◆ frames

int pic::Fbo::frames

◆ height

int pic::Fbo::height

◆ nMRT

unsigned int pic::Fbo::nMRT

◆ tex

GLuint pic::Fbo::tex

◆ texMRT

GLuint* pic::Fbo::texMRT

◆ width

int pic::Fbo::width

The documentation for this class was generated from the following file: