VAPOR3 3.9.4
Public Member Functions | Static Public Member Functions | List of all members
VAPoR::Framebuffer Class Reference

Wrapper class for an OpenGL Framebuffer. More...

#include <Framebuffer.h>

Inheritance diagram for VAPoR::Framebuffer:
VAPoR::NonCopyableMixin

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 Texture2DGetColorTexture () const
 
const Texture2DGetDepthTexture () const
 

Static Public Member Functions

static const char * GetStatusString (int status)
 

Detailed Description

Wrapper class for an OpenGL Framebuffer.

Author
Stas Jaroszynski
Version
1.0
Date
May 2019

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.

Constructor & Destructor Documentation

◆ ~Framebuffer()

VAPoR::Framebuffer::~Framebuffer ( )

Member Function Documentation

◆ Bind()

void VAPoR::Framebuffer::Bind ( )

◆ EnableDepthBuffer()

void VAPoR::Framebuffer::EnableDepthBuffer ( )

◆ Generate()

int VAPoR::Framebuffer::Generate ( )

◆ GetColorTexture()

const Texture2D * VAPoR::Framebuffer::GetColorTexture ( ) const

◆ GetDepthTexture()

const Texture2D * VAPoR::Framebuffer::GetDepthTexture ( ) const

◆ GetSize()

void VAPoR::Framebuffer::GetSize ( int *  width,
int *  height 
) const

◆ GetStatus()

int VAPoR::Framebuffer::GetStatus ( ) const

◆ GetStatusString() [1/2]

const char * VAPoR::Framebuffer::GetStatusString ( ) const

◆ GetStatusString() [2/2]

static const char * VAPoR::Framebuffer::GetStatusString ( int  status)
static

◆ Initialized()

bool VAPoR::Framebuffer::Initialized ( ) const

◆ IsComplete()

bool VAPoR::Framebuffer::IsComplete ( ) const

◆ MakeRenderTarget()

int VAPoR::Framebuffer::MakeRenderTarget ( )

◆ SetSize()

void VAPoR::Framebuffer::SetSize ( int  width,
int  height 
)

◆ UnBind()

void VAPoR::Framebuffer::UnBind ( )

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