#include <RenderTarget.h>
Public Member Functions | |
const char * | getId () const |
Texture * | getTexture () const |
unsigned int | getWidth () const |
unsigned int | getHeight () const |
Static Public Member Functions | |
static RenderTarget * | create (const char *id, unsigned int width, unsigned int height) |
static RenderTarget * | create (const char *id, Texture *texture) |
static RenderTarget * | getRenderTarget (const char *id) |
Defines a linear area of display memory and usually resides in the display memory of the graphics device.
static RenderTarget* gameplay::RenderTarget::create | ( | const char * | id, |
unsigned int | width, | ||
unsigned int | height | ||
) | [static] |
Create a RenderTarget and add it to the list of available RenderTargets.
The created RenderTarget contains a 32-bit texture with a single/base mipmap level only.
id | The ID of the new RenderTarget. |
width | The width of the new RenderTarget. |
height | The height of the new RenderTarget. |
static RenderTarget* gameplay::RenderTarget::create | ( | const char * | id, |
Texture * | texture | ||
) | [static] |
Create a RenderTarget from the given Texture and add it to the list of available RenderTargets.
Note that different hardware and OpenGL versions have different capabilities and restrictions on what texture formats are supported as render targets.
id | The ID of the new RenderTarget. |
texture | The texture for the new RenderTarget. |
unsigned int gameplay::RenderTarget::getHeight | ( | ) | const |
Returns the height of the RenderTarget.
const char* gameplay::RenderTarget::getId | ( | ) | const |
Get the ID of this RenderTarget.
static RenderTarget* gameplay::RenderTarget::getRenderTarget | ( | const char * | id | ) | [static] |
Get a named RenderTarget from its ID.
id | The ID of the RenderTarget to search for. |
Texture* gameplay::RenderTarget::getTexture | ( | ) | const |
Get the backing texture of this RenderTarget.
unsigned int gameplay::RenderTarget::getWidth | ( | ) | const |
Returns the width of the RenderTarget.