Colobot
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Gfx::CGLFramebufferEXT Class Reference
Inheritance diagram for Gfx::CGLFramebufferEXT:
Inheritance graph
[legend]

Public Member Functions

 CGLFramebufferEXT (const FramebufferParams &params)
 
bool Create () override
 Creates this framebuffer. More...
 
void Destroy () override
 Destroys this framebuffer. More...
 
bool IsDefault () override
 Returns true if this is default framebuffer. More...
 
int GetWidth () override
 Returns width of buffers in this framebuffer. More...
 
int GetHeight () override
 Returns height of buffers in this framebuffer. More...
 
int GetDepth () override
 Returns depth size in bits. More...
 
int GetSamples () override
 Returns number of samples or 1 if multisampling is not supported. More...
 
int GetColorTexture () override
 Returns texture that contains color buffer or 0 if not available. More...
 
int GetDepthTexture () override
 Returns texture that contains depth buffer or 0 if not available. More...
 
void Bind () override
 Binds this framebuffer to context. More...
 
void Unbind () override
 Unbinds this framebuffer from context. More...
 
void CopyToScreen (int fromX, int fromY, int fromWidth, int fromHeight, int toX, int toY, int toWidth, int toHeight) override
 Copies content of color buffer to screen. More...
 

Protected Attributes

FramebufferParams m_params
 
int m_width
 
int m_height
 
int m_depth
 
int m_samples
 
GLuint m_fbo
 
GLuint m_colorRenderbuffer
 
GLuint m_colorTexture
 
GLuint m_depthRenderbuffer
 
GLuint m_depthTexture
 

Static Protected Attributes

static GLuint m_currentFBO = 0
 

Member Function Documentation

bool Gfx::CGLFramebufferEXT::Create ( )
overridevirtual

Creates this framebuffer.

Implements Gfx::CFramebuffer.

void Gfx::CGLFramebufferEXT::Destroy ( )
overridevirtual

Destroys this framebuffer.

Implements Gfx::CFramebuffer.

bool Gfx::CGLFramebufferEXT::IsDefault ( )
overridevirtual

Returns true if this is default framebuffer.

Implements Gfx::CFramebuffer.

int Gfx::CGLFramebufferEXT::GetWidth ( )
overridevirtual

Returns width of buffers in this framebuffer.

Implements Gfx::CFramebuffer.

int Gfx::CGLFramebufferEXT::GetHeight ( )
overridevirtual

Returns height of buffers in this framebuffer.

Implements Gfx::CFramebuffer.

int Gfx::CGLFramebufferEXT::GetDepth ( )
overridevirtual

Returns depth size in bits.

Implements Gfx::CFramebuffer.

int Gfx::CGLFramebufferEXT::GetSamples ( )
overridevirtual

Returns number of samples or 1 if multisampling is not supported.

Implements Gfx::CFramebuffer.

int Gfx::CGLFramebufferEXT::GetColorTexture ( )
overridevirtual

Returns texture that contains color buffer or 0 if not available.

Implements Gfx::CFramebuffer.

int Gfx::CGLFramebufferEXT::GetDepthTexture ( )
overridevirtual

Returns texture that contains depth buffer or 0 if not available.

Implements Gfx::CFramebuffer.

void Gfx::CGLFramebufferEXT::Bind ( )
overridevirtual

Binds this framebuffer to context.

Implements Gfx::CFramebuffer.

void Gfx::CGLFramebufferEXT::Unbind ( )
overridevirtual

Unbinds this framebuffer from context.

Implements Gfx::CFramebuffer.

void Gfx::CGLFramebufferEXT::CopyToScreen ( int  fromX,
int  fromY,
int  fromWidth,
int  fromHeight,
int  toX,
int  toY,
int  toWidth,
int  toHeight 
)
overridevirtual

Copies content of color buffer to screen.

Implements Gfx::CFramebuffer.


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