A class that represents a frame buffer, this is used by the graphics api to enable shadow maps in programming examples. Will probably be unnecessary for most customers. See diguyOglGraphicsFrameBuffer for a sample implementation.
More...
#include <diguyGraphicsFrameBuffer.h>
|
The functions in this section are all virtual functions that will be called by DI-Guy at various times during DI-Guy execution.
They will need Graphics API specific functionality implemented.
Because the functions are all virtual, DI-Guy programmers can create a subclass of this class and override them. Unless otherwise stated, the base class functions do not need to be called.
|
| int | m_width |
| |
| int | m_height |
| |
| int | m_shadow_map |
| |
| int | m_enable_mipmaps |
| |
| int | m_texture_unit |
| |
| virtual void | bind ()=0 |
| | binds the frame buffer More...
|
| |
| virtual void | clear ()=0 |
| | clears the frame buffer More...
|
| |
| virtual void | unbind ()=0 |
| | unbinds the frame buffer, presumably restores the main view rendering More...
|
| |
| unsigned virtual int | get_texture_id ()=0 |
| |
| unsigned virtual int | get_frame_buffer_id ()=0 |
| |
| unsigned virtual int | get_depth_texture_id ()=0 |
| |
A class that represents a frame buffer, this is used by the graphics api to enable shadow maps in programming examples. Will probably be unnecessary for most customers. See diguyOglGraphicsFrameBuffer for a sample implementation.
Link against: libdiguy_graphics_api
Can be subclassed by filling out the diguy_graphics_set_frame_buffer_create_func().
| diguyGraphicsFrameBuffer::diguyGraphicsFrameBuffer |
( |
| ) |
|
|
inline |
| virtual diguyGraphicsFrameBuffer::~diguyGraphicsFrameBuffer |
( |
| ) |
|
|
inlinevirtual |
| virtual int diguyGraphicsFrameBuffer::resize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
inlinevirtual |
| virtual void diguyGraphicsFrameBuffer::set_shadow_map |
( |
int |
shadow_map | ) |
|
|
inlinevirtual |
| virtual void diguyGraphicsFrameBuffer::set_enable_mipmaps |
( |
int |
enable_mipmaps | ) |
|
|
inlinevirtual |
| virtual void diguyGraphicsFrameBuffer::set_texture_unit |
( |
int |
texture_unit | ) |
|
|
inlinevirtual |
| int diguyGraphicsFrameBuffer::get_width |
( |
| ) |
|
|
inline |
| int diguyGraphicsFrameBuffer::get_height |
( |
| ) |
|
|
inline |
| virtual void diguyGraphicsFrameBuffer::bind |
( |
| ) |
|
|
pure virtual |
| virtual void diguyGraphicsFrameBuffer::clear |
( |
| ) |
|
|
pure virtual |
| virtual void diguyGraphicsFrameBuffer::unbind |
( |
| ) |
|
|
pure virtual |
| unsigned virtual int diguyGraphicsFrameBuffer::get_texture_id |
( |
| ) |
|
|
pure virtual |
| unsigned virtual int diguyGraphicsFrameBuffer::get_frame_buffer_id |
( |
| ) |
|
|
pure virtual |
| unsigned virtual int diguyGraphicsFrameBuffer::get_depth_texture_id |
( |
| ) |
|
|
pure virtual |
| int diguyGraphicsFrameBuffer::m_width |
|
protected |
| int diguyGraphicsFrameBuffer::m_height |
|
protected |
| int diguyGraphicsFrameBuffer::m_shadow_map |
|
protected |
| int diguyGraphicsFrameBuffer::m_enable_mipmaps |
|
protected |
| int diguyGraphicsFrameBuffer::m_texture_unit |
|
protected |
The documentation for this class was generated from the following file: