#include <fbo.h>
Public Types | |
enum | RTStorageType { BUFFER, TEXTURE } |
Public Member Functions | |
bool | Attach (FrameBuffer *fb) |
virtual GLenum | Attachment (void) const =0 |
bool | Detach (void) |
virtual GLenum | Format (void) const =0 |
FrameBuffer * | GetFrameBuffer (void) |
const FrameBuffer * | GetFrameBuffer (void) const |
virtual GLsizei | Height (void) const =0 |
RenderTarget (void) | |
virtual RTStorageType | StorageType (void) const =0 |
virtual bool | ValidateAttachment (GLenum attachment) const =0 |
virtual GLsizei | Width (void) const =0 |
Protected Member Functions | |
virtual bool | BindToFB (void)=0 |
Protected Attributes | |
FrameBuffer * | frameBuffer |
Friends | |
class | FrameBuffer |
RenderTarget::RenderTarget | ( | void | ) | [inline] |
bool RenderTarget::Attach | ( | FrameBuffer * | fb | ) |
virtual GLenum RenderTarget::Attachment | ( | void | ) | const [pure virtual] |
Implemented in StencilRenderTarget, DepthRenderTarget, and ColorRenderTarget.
virtual bool RenderTarget::BindToFB | ( | void | ) | [protected, pure virtual] |
Implemented in TextureRenderTarget, and BufferRenderTarget.
bool RenderTarget::Detach | ( | void | ) |
virtual GLenum RenderTarget::Format | ( | void | ) | const [pure virtual] |
Implemented in TextureRenderTarget, and BufferRenderTarget.
FrameBuffer* RenderTarget::GetFrameBuffer | ( | void | ) | [inline] |
const FrameBuffer* RenderTarget::GetFrameBuffer | ( | void | ) | const [inline] |
virtual GLsizei RenderTarget::Height | ( | void | ) | const [pure virtual] |
Implemented in TextureRenderTarget, and BufferRenderTarget.
virtual RTStorageType RenderTarget::StorageType | ( | void | ) | const [pure virtual] |
Implemented in TextureRenderTarget, and BufferRenderTarget.
virtual bool RenderTarget::ValidateAttachment | ( | GLenum | attachment | ) | const [pure virtual] |
Implemented in StencilRenderTarget, DepthRenderTarget, and ColorRenderTarget.
virtual GLsizei RenderTarget::Width | ( | void | ) | const [pure virtual] |
Implemented in TextureRenderTarget, and BufferRenderTarget.
friend class FrameBuffer [friend] |
FrameBuffer* RenderTarget::frameBuffer [protected] |