SOFA API  7dc68564
Open source framework for multi-physics simuation
sofa::gl::FrameBufferObject Class Reference

#include <FrameBufferObject.h>

Public Member Functions

 FrameBufferObject (bool depthTexture=false, bool enableDepth=true, bool enableColor=true, bool enableMipMap=false, GLint defaultWindowFramebuffer=getCurrentFramebufferID())
 
virtual ~FrameBufferObject ()
 
 FrameBufferObject (const fboParameters &FboFormat, bool depthTexture=false, bool enableDepth=true, bool enableColor=true, bool enableMipMap=false, GLint defaultWindowFramebuffer=getCurrentFramebufferID())
 
void setFormat (const fboParameters &fboParams)
 
void init (unsigned int width, unsigned height)
 
void destroy ()
 
void reinit (unsigned int width, unsigned height, bool lDepthTexture, bool lEnableDepth, bool lEnableColor)
 
void start ()
 
void stop ()
 
bool checkFBO ()
 
void setSize (unsigned int width, unsigned height)
 
GLuint getID ()
 
GLuint getDepthTexture ()
 
GLuint getColorTexture ()
 
void createDepthBuffer ()
 
void createColorBuffer ()
 
void initDepthBuffer ()
 
void initColorBuffer ()
 

Constructor details

◆ FrameBufferObject() [1/2]

sofa::gl::FrameBufferObject::FrameBufferObject ( bool  depthTexture = false,
bool  enableDepth = true,
bool  enableColor = true,
bool  enableMipMap = false,
GLint  defaultWindowFramebuffer = getCurrentFramebufferID() 
)

◆ ~FrameBufferObject()

sofa::gl::FrameBufferObject::~FrameBufferObject ( )
virtual

◆ FrameBufferObject() [2/2]

sofa::gl::FrameBufferObject::FrameBufferObject ( const fboParameters FboFormat,
bool  depthTexture = false,
bool  enableDepth = true,
bool  enableColor = true,
bool  enableMipMap = false,
GLint  defaultWindowFramebuffer = getCurrentFramebufferID() 
)

Function details

◆ checkFBO()

bool sofa::gl::FrameBufferObject::checkFBO ( )

◆ createColorBuffer()

void sofa::gl::FrameBufferObject::createColorBuffer ( )

◆ createDepthBuffer()

void sofa::gl::FrameBufferObject::createDepthBuffer ( )

◆ destroy()

void sofa::gl::FrameBufferObject::destroy ( )

◆ getColorTexture()

GLuint sofa::gl::FrameBufferObject::getColorTexture ( )

◆ getDepthTexture()

GLuint sofa::gl::FrameBufferObject::getDepthTexture ( )

◆ getID()

GLuint sofa::gl::FrameBufferObject::getID ( )

◆ init()

void sofa::gl::FrameBufferObject::init ( unsigned int  width,
unsigned  height 
)

◆ initColorBuffer()

void sofa::gl::FrameBufferObject::initColorBuffer ( )

◆ initDepthBuffer()

void sofa::gl::FrameBufferObject::initDepthBuffer ( )

◆ reinit()

void sofa::gl::FrameBufferObject::reinit ( unsigned int  width,
unsigned  height,
bool  lDepthTexture,
bool  lEnableDepth,
bool  lEnableColor 
)

◆ setFormat()

void sofa::gl::FrameBufferObject::setFormat ( const fboParameters fboParams)
inline

◆ setSize()

void sofa::gl::FrameBufferObject::setSize ( unsigned int  width,
unsigned  height 
)

◆ start()

void sofa::gl::FrameBufferObject::start ( )

◆ stop()

void sofa::gl::FrameBufferObject::stop ( )