#include <DepthStencilTarget.h>
Public Types | |
| enum | Format { DEPTH, DEPTH_STENCIL } |
Public Member Functions | |
| const char * | getId () const |
| Format | getFormat () const |
| unsigned int | getWidth () const |
| unsigned int | getHeight () const |
| bool | isPacked () const |
Static Public Member Functions | |
| static DepthStencilTarget * | create (const char *id, Format format, unsigned int width, unsigned int height) |
| static DepthStencilTarget * | getDepthStencilTarget (const char *id) |
Defines a container for depth and stencil targets in a frame buffer object.
| static DepthStencilTarget* gameplay::DepthStencilTarget::create | ( | const char * | id, |
| Format | format, | ||
| unsigned int | width, | ||
| unsigned int | height | ||
| ) | [static] |
Create a DepthStencilTarget and add it to the list of available DepthStencilTargets.
| id | The ID of the new DepthStencilTarget. Uniqueness is recommended but not enforced. |
| format | The format of the new DepthStencilTarget. |
| width | Width of the new DepthStencilTarget. |
| height | Height of the new DepthStencilTarget. |
| static DepthStencilTarget* gameplay::DepthStencilTarget::getDepthStencilTarget | ( | const char * | id | ) | [static] |
Get a named DepthStencilTarget from its ID.
| id | The ID of the DepthStencilTarget to search for. |
Returns the format of the DepthStencilTarget.
| unsigned int gameplay::DepthStencilTarget::getHeight | ( | ) | const |
Returns the height of the DepthStencilTarget.
| const char* gameplay::DepthStencilTarget::getId | ( | ) | const |
Get the ID of this DepthStencilTarget.
| unsigned int gameplay::DepthStencilTarget::getWidth | ( | ) | const |
Returns the width of the DepthStencilTarget.
| bool gameplay::DepthStencilTarget::isPacked | ( | ) | const |
Returns true if depth and stencil buffer are packed.
1.7.6.1