PeriDyno 0.8.2
Public Member Functions | Static Public Member Functions | List of all members
gl::Framebuffer Class Reference

#include <Framebuffer.h>

Inheritance diagram for gl::Framebuffer:
Inheritance graph
[legend]
Collaboration diagram for gl::Framebuffer:
Collaboration graph
[legend]

Public Member Functions

void create () override
 
void release () override
 
void bind (unsigned int target=0x8CA9)
 
void unbind ()
 
void clearColor (float r=0.f, float g=0.f, float b=0.f, float a=1.f)
 
void clearDepth (float depth=1.f)
 
void setTexture2D (unsigned int attachment, unsigned int tex, int level=0)
 
void drawBuffers (int count, const unsigned int *buffers)
 
int checkStatus ()
 

Static Public Member Functions

static unsigned int current ()
 

Additional Inherited Members

- Public Attributes inherited from gl::Object
unsigned int id = 0xFFFFFFFF
 
- Protected Member Functions inherited from gl::Object
virtual void create ()=0
 
virtual void release ()=0
 
virtual bool isValid () const
 
 Object ()=default
 
virtual ~Object ()=default
 
 Object (const Object &)=delete
 
Objectoperator= (const Object &)=delete
 

Detailed Description

Definition at line 23 of file Framebuffer.h.

Member Function Documentation

◆ bind()

void gl::Framebuffer::bind ( unsigned int  target = 0x8CA9)

Definition at line 53 of file Framebuffer.cpp.

Here is the caller graph for this function:

◆ checkStatus()

int gl::Framebuffer::checkStatus ( )

Definition at line 20 of file Framebuffer.cpp.

Here is the caller graph for this function:

◆ clearColor()

void gl::Framebuffer::clearColor ( float  r = 0.f,
float  g = 0.f,
float  b = 0.f,
float  a = 1.f 
)

Definition at line 39 of file Framebuffer.cpp.

Here is the caller graph for this function:

◆ clearDepth()

void gl::Framebuffer::clearDepth ( float  depth = 1.f)

Definition at line 46 of file Framebuffer.cpp.

Here is the caller graph for this function:

◆ create()

void gl::Framebuffer::create ( )
overridevirtual

Implements gl::Object.

Definition at line 7 of file Framebuffer.cpp.

Here is the caller graph for this function:

◆ current()

unsigned int gl::Framebuffer::current ( )
static

Definition at line 32 of file Framebuffer.cpp.

◆ drawBuffers()

void gl::Framebuffer::drawBuffers ( int  count,
const unsigned int *  buffers 
)

Definition at line 69 of file Framebuffer.cpp.

Here is the caller graph for this function:

◆ release()

void gl::Framebuffer::release ( )
overridevirtual

Implements gl::Object.

Definition at line 12 of file Framebuffer.cpp.

Here is the caller graph for this function:

◆ setTexture2D()

void gl::Framebuffer::setTexture2D ( unsigned int  attachment,
unsigned int  tex,
int  level = 0 
)

Definition at line 63 of file Framebuffer.cpp.

Here is the caller graph for this function:

◆ unbind()

void gl::Framebuffer::unbind ( )

Definition at line 58 of file Framebuffer.cpp.

Here is the caller graph for this function:

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