Castor3D
..
|
Description of an attachment between a frame buffer and a render buffer. More...
Public Member Functions | |
virtual C3D_API Castor::PxBufferBaseSPtr | GetBuffer () const =0 |
C3D_API Castor::PxBufferBaseSPtr | DownloadBuffer () |
Downloads the render buffer data. More... | |
virtual C3D_API bool | Blit (FrameBufferSPtr p_buffer, Castor::Rectangle const &p_rectSrc, Castor::Rectangle const &p_rectDst, eINTERPOLATION_MODE p_interpolation)=0 |
Blit this attachment's buffer into the given one. More... | |
eATTACHMENT_POINT | GetAttachmentPoint () const |
eATTACHMENT_TYPE | GetAttachmentType () const |
uint8_t | GetAttachmentIndex () const |
Protected Member Functions | |
C3D_API | FrameBufferAttachment (eATTACHMENT_TYPE p_type) |
Constructor. More... | |
virtual C3D_API | ~FrameBufferAttachment () |
Destructor. More... | |
C3D_API bool | Attach (eATTACHMENT_POINT p_attachment, uint8_t p_index, FrameBufferSPtr p_frameBuffer) |
Attaches the render buffer to the given frame buffer, at given attachment point. More... | |
C3D_API bool | Attach (eATTACHMENT_POINT p_attachment, FrameBufferSPtr p_frameBuffer) |
Attaches the render buffer to the given frame buffer, at given attachment point. More... | |
C3D_API void | Detach () |
Detaches the render buffer from the frame buffer. More... | |
virtual C3D_API bool | DoAttach (FrameBufferSPtr p_frameBuffer)=0 |
Attaches the render buffer to the given frame buffer, at given attachment point. More... | |
virtual C3D_API void | DoDetach ()=0 |
Detaches the render buffer from the frame buffer. More... | |
bool | HasFrameBuffer () |
FrameBufferSPtr | GetFrameBuffer () |
Friends | |
class | FrameBuffer |
Description of an attachment between a frame buffer and a render buffer.
|
protected |
Constructor.
[in] | p_type | The attachment type. |
|
protectedvirtual |
Destructor.
|
protected |
Attaches the render buffer to the given frame buffer, at given attachment point.
[in] | p_attachment | The attachment point |
[in] | p_index | The attachment index |
[in] | p_frameBuffer | The frame buffer |
true
if OK
|
protected |
Attaches the render buffer to the given frame buffer, at given attachment point.
[in] | p_attachment | The attachment point |
[in] | p_frameBuffer | The frame buffer |
true
if OK
|
pure virtual |
Blit this attachment's buffer into the given one.
[in] | p_buffer | The destination buffer |
[in] | p_rectSrc | The source rectangle |
[in] | p_rectDst | The destination rectangle |
[in] | p_interpolation | The interpolation to apply if the image is stretched |
true
if successful
|
protected |
Detaches the render buffer from the frame buffer.
|
protectedpure virtual |
Attaches the render buffer to the given frame buffer, at given attachment point.
[in] | p_frameBuffer | The frame buffer |
true
if OK
|
protectedpure virtual |
Detaches the render buffer from the frame buffer.
C3D_API Castor::PxBufferBaseSPtr Castor3D::FrameBufferAttachment::DownloadBuffer | ( | ) |
Downloads the render buffer data.
|
inline |
|
inline |
|
inline |
|
pure virtual |
Implemented in Castor3D::RenderBufferAttachment, and Castor3D::TextureAttachment.
|
inlineprotected |
|
inlineprotected |
|
friend |