Castor3D
..
|
Render buffer base class. More...
Public Member Functions | |
C3D_API | RenderBuffer (eBUFFER_COMPONENT p_type, Castor::ePIXEL_FORMAT p_format) |
Constructor. More... | |
virtual C3D_API | ~RenderBuffer () |
Destructor. More... | |
virtual C3D_API bool | Create ()=0 |
Creation function. More... | |
virtual C3D_API void | Destroy ()=0 |
Destruction function. More... | |
virtual C3D_API bool | Initialise (Castor::Size const &p_size)=0 |
Initialisation function. More... | |
virtual C3D_API void | Cleanup ()=0 |
Cleanup function. More... | |
virtual C3D_API bool | Bind ()=0 |
Activation function, to tell the GPU it is active. More... | |
virtual C3D_API void | Unbind ()=0 |
Deactivation function, to tell the GPU it is inactive. More... | |
virtual C3D_API bool | Resize (Castor::Size const &p_size)=0 |
Resizing function. More... | |
Castor::ePIXEL_FORMAT | GetPixelFormat () const |
Retrieves the buffer pixel format. More... | |
Castor::Size const & | GetDimensions () const |
Retrieves the buffer dimensions. More... | |
uint32_t | GetWidth () const |
Retrieves the buffer width. More... | |
uint32_t | GetHeight () const |
Retrieves the buffer height. More... | |
eBUFFER_COMPONENT | GetComponent () const |
Retrieves the buffer component. More... | |
void | SetSamplesCount (int p_iSamples) |
Defines the buffer samples count. More... | |
int | GetSamplesCount () |
Retrieves the buffer samples count. More... | |
Protected Attributes | |
Castor::Size | m_size |
The buffer dimensions. More... | |
Render buffer base class.
C3D_API Castor3D::RenderBuffer::RenderBuffer | ( | eBUFFER_COMPONENT | p_type, |
Castor::ePIXEL_FORMAT | p_format | ||
) |
Constructor.
[in] | p_type | The buffer component |
[in] | p_format | The buffer pixel format |
|
virtual |
Destructor.
|
pure virtual |
Activation function, to tell the GPU it is active.
true
if successful
|
pure virtual |
Cleanup function.
|
pure virtual |
Creation function.
true
if OK
|
pure virtual |
Destruction function.
|
inline |
Retrieves the buffer component.
|
inline |
|
inline |
|
inline |
Retrieves the buffer pixel format.
|
inline |
Retrieves the buffer samples count.
|
inline |
|
pure virtual |
Initialisation function.
[in] | p_size | The buffer dimensions |
true
if OK
|
pure virtual |
Resizing function.
[in] | p_size | The buffer dimensions |
true
if OK
|
inline |
Defines the buffer samples count.
[in] | p_iSamples | The samples count |
|
pure virtual |
Deactivation function, to tell the GPU it is inactive.
|
protected |
The buffer dimensions.
Referenced by GetDimensions(), GetHeight(), and GetWidth().