VAPOR3 3.9.4
|
Wrapper class for an OpenGL Framebuffer. More...
#include <Framebuffer.h>
Public Member Functions | |
~Framebuffer () | |
int | Generate () |
bool | Initialized () const |
bool | IsComplete () const |
int | GetStatus () const |
const char * | GetStatusString () const |
void | Bind () |
void | UnBind () |
void | SetSize (int width, int height) |
void | GetSize (int *width, int *height) const |
int | MakeRenderTarget () |
void | EnableDepthBuffer () |
const Texture2D * | GetColorTexture () const |
const Texture2D * | GetDepthTexture () const |
Static Public Member Functions | |
static const char * | GetStatusString (int status) |
Wrapper class for an OpenGL Framebuffer.
This class is intended to be used as a member object for a renderer. Any use of this class (including the destructor and except the constructor) must occur inside the correct OpenGL context.
To use a depth buffer, EnableDepthBuffer must be called before calling Generate()
Definition at line 23 of file Framebuffer.h.
VAPoR::Framebuffer::~Framebuffer | ( | ) |
void VAPoR::Framebuffer::Bind | ( | ) |
void VAPoR::Framebuffer::EnableDepthBuffer | ( | ) |
int VAPoR::Framebuffer::Generate | ( | ) |
const Texture2D * VAPoR::Framebuffer::GetColorTexture | ( | ) | const |
const Texture2D * VAPoR::Framebuffer::GetDepthTexture | ( | ) | const |
void VAPoR::Framebuffer::GetSize | ( | int * | width, |
int * | height | ||
) | const |
int VAPoR::Framebuffer::GetStatus | ( | ) | const |
const char * VAPoR::Framebuffer::GetStatusString | ( | ) | const |
|
static |
bool VAPoR::Framebuffer::Initialized | ( | ) | const |
bool VAPoR::Framebuffer::IsComplete | ( | ) | const |
int VAPoR::Framebuffer::MakeRenderTarget | ( | ) |
void VAPoR::Framebuffer::SetSize | ( | int | width, |
int | height | ||
) |
void VAPoR::Framebuffer::UnBind | ( | ) |