overview wiki api reference download
 All Classes Functions Variables Typedefs Enumerations Enumerator
Public Types | Public Member Functions | Static Public Member Functions
gameplay::DepthStencilTarget Class Reference

#include <DepthStencilTarget.h>

Inheritance diagram for gameplay::DepthStencilTarget:
gameplay::Ref

List of all members.

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 DepthStencilTargetcreate (const char *id, Format format, unsigned int width, unsigned int height)
static DepthStencilTargetgetDepthStencilTarget (const char *id)

Detailed Description

Defines a container for depth and stencil targets in a frame buffer object.


Member Enumeration Documentation

Defines the accepted formats for DepthStencilTargets.

Enumerator:
DEPTH 

A target with depth data.

DEPTH_STENCIL 

A target with depth data and stencil data.


Member Function Documentation

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.

Parameters:
idThe ID of the new DepthStencilTarget. Uniqueness is recommended but not enforced.
formatThe format of the new DepthStencilTarget.
widthWidth of the new DepthStencilTarget.
heightHeight of the new DepthStencilTarget.
Returns:
A newly created DepthStencilTarget.

Get a named DepthStencilTarget from its ID.

Parameters:
idThe ID of the DepthStencilTarget to search for.
Returns:
The DepthStencilTarget with the specified ID, or NULL if one was not found.

Returns the format of the DepthStencilTarget.

Returns:
The format.

Returns the height of the DepthStencilTarget.

Returns:
The height.
const char* gameplay::DepthStencilTarget::getId ( ) const

Get the ID of this DepthStencilTarget.

Returns:
The ID of this DepthStencilTarget.

Returns the width of the DepthStencilTarget.

Returns:
The width.

Returns true if depth and stencil buffer are packed.

Returns:
The packed state.
 All Classes Functions Variables Typedefs Enumerations Enumerator