ork::RenderBuffer Class Reference
[render]
A buffer for offscreen rendering.
More...
#include <RenderBuffer.h>
List of all members.
Public Types |
enum | RenderBufferFormat {
R8,
R8_SNORM,
R16,
R16_SNORM,
RG8,
RG8_SNORM,
RG16,
RG16_SNORM,
R3_G3_B2,
RGB4,
RGB5,
RGB8,
RGB8_SNORM,
RGB10,
RGB12,
RGB16,
RGB16_SNORM,
RGBA2,
RGBA4,
RGB5_A1,
RGBA8,
RGBA8_SNORM,
RGB10_A2,
RGB10_A2UI,
RGBA12,
RGBA16,
RGBA16_SNORM,
SRGB8,
SRGB8_ALPHA8,
R16F,
RG16F,
RGB16F,
RGBA16F,
R32F,
RG32F,
RGB32F,
RGBA32F,
R11F_G11F_B10F,
RGB9_E5,
R8I,
R8UI,
R16I,
R16UI,
R32I,
R32UI,
RG8I,
RG8UI,
RG16I,
RG16UI,
RG32I,
RG32UI,
RGB8I,
RGB8UI,
RGB16I,
RGB16UI,
RGB32I,
RGB32UI,
RGBA8I,
RGBA8UI,
RGBA16I,
RGBA16UI,
RGBA32I,
RGBA32UI,
DEPTH_COMPONENT,
DEPTH_COMPONENT16,
DEPTH_COMPONENT24,
DEPTH_COMPONENT32,
DEPTH_COMPONENT32F,
DEPTH24_STENCIL8,
DEPTH32F_STENCIL8,
STENCIL_INDEX,
STENCIL_INDEX1,
STENCIL_INDEX4,
STENCIL_INDEX8,
STENCIL_INDEX16
} |
| A pixel format for a RenderBuffer.
More...
|
Public Member Functions |
| RenderBuffer (RenderBufferFormat type, int width, int height, int samples=0) |
| Creates a new offscreen render buffer.
|
virtual | ~RenderBuffer () |
| Deletes this render buffer.
|
GLuint | getId () const |
| Returns the id of this render buffer.
|
Detailed Description
A buffer for offscreen rendering.
Member Enumeration Documentation
A pixel format for a RenderBuffer.
- Enumerator:
R8 |
|
R8_SNORM |
|
R16 |
|
R16_SNORM |
|
RG8 |
|
RG8_SNORM |
|
RG16 |
|
RG16_SNORM |
|
R3_G3_B2 |
|
RGB4 |
|
RGB5 |
|
RGB8 |
|
RGB8_SNORM |
|
RGB10 |
|
RGB12 |
|
RGB16 |
|
RGB16_SNORM |
|
RGBA2 |
|
RGBA4 |
|
RGB5_A1 |
|
RGBA8 |
|
RGBA8_SNORM |
|
RGB10_A2 |
|
RGB10_A2UI |
|
RGBA12 |
|
RGBA16 |
|
RGBA16_SNORM |
|
SRGB8 |
|
SRGB8_ALPHA8 |
|
R16F |
|
RG16F |
|
RGB16F |
|
RGBA16F |
|
R32F |
|
RG32F |
|
RGB32F |
|
RGBA32F |
|
R11F_G11F_B10F |
|
RGB9_E5 |
|
R8I |
|
R8UI |
|
R16I |
|
R16UI |
|
R32I |
|
R32UI |
|
RG8I |
|
RG8UI |
|
RG16I |
|
RG16UI |
|
RG32I |
|
RG32UI |
|
RGB8I |
|
RGB8UI |
|
RGB16I |
|
RGB16UI |
|
RGB32I |
|
RGB32UI |
|
RGBA8I |
|
RGBA8UI |
|
RGBA16I |
|
RGBA16UI |
|
RGBA32I |
|
RGBA32UI |
|
DEPTH_COMPONENT |
|
DEPTH_COMPONENT16 |
|
DEPTH_COMPONENT24 |
|
DEPTH_COMPONENT32 |
|
DEPTH_COMPONENT32F |
|
DEPTH24_STENCIL8 |
|
DEPTH32F_STENCIL8 |
|
STENCIL_INDEX |
|
STENCIL_INDEX1 |
|
STENCIL_INDEX4 |
|
STENCIL_INDEX8 |
|
STENCIL_INDEX16 |
|
Constructor & Destructor Documentation
ork::RenderBuffer::RenderBuffer |
( |
RenderBufferFormat |
type, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
samples = 0 | |
|
) |
| | |
Creates a new offscreen render buffer.
- Parameters:
-
| type | the pixel format for this buffer. |
| width | the width of the buffer. |
| height | the height of the buffer. |
| samples | the number of samples per pixel, or 0 if multisampling is not needed. |
virtual ork::RenderBuffer::~RenderBuffer |
( |
|
) |
[virtual] |
Deletes this render buffer.
Member Function Documentation
GLuint ork::RenderBuffer::getId |
( |
|
) |
const |
Returns the id of this render buffer.