#include <render/rendertexture.h>
Inheritance diagram for neo::render::RenderTexture:


Public Member Functions | |
| virtual void | setType (Type type)=0 |
| Set texture type. | |
| virtual void | setPixelFormat (const image::PixelFormat &format)=0 |
| Set pixel format type. | |
| virtual void | setSize (unsigned int width, unsigned int height, unsigned int depth=0)=0 |
| Set texture size. | |
| void | setActiveSurface (unsigned int index) |
| Set active surface. | |
| unsigned int | getWidth () const |
| Get width. | |
| unsigned int | getHeight () const |
| Get height. | |
| const image::PixelFormat & | getPixelFormat () const |
| Get color buffer pixel format. | |
Protected Member Functions | |
| RenderTexture (const std::string &name="") | |
| virtual | ~RenderTexture () |
| Free resources. | |
Protected Attributes | |
| unsigned int | _surface |
| Active surface. | |
| neo::render::RenderTexture::RenderTexture | ( | const std::string & | name = "" |
) | [protected] |
Protected, renderable textures are created by render device, not directly
| name | Texture name |
| virtual neo::render::RenderTexture::~RenderTexture | ( | ) | [protected, virtual] |
Free resources. Textures are reference counted and not deallocated directly
| virtual void neo::render::RenderTexture::setType | ( | Type | type | ) | [pure virtual] |
Set the texture type. You must do this prior to rendering to the texture. An upload to the texture also sets the texture type
| type | Texture type |
| virtual void neo::render::RenderTexture::setPixelFormat | ( | const image::PixelFormat & | format | ) | [pure virtual] |
Set the desired pixel format. You must do this prior to rendering to the texture. An upload to the texture also sets the pixel format
| format | Pixel format |
| virtual void neo::render::RenderTexture::setSize | ( | unsigned int | width, | |
| unsigned int | height, | |||
| unsigned int | depth = 0 | |||
| ) | [pure virtual] |
Set the texture size. The width or height cannot be larger than the size of the current frame buffer on the device (arguments will be clamped to this size). You must set the size prior to rendering to the texture. An upload to the texture also sets the texture size.
| width | Width | |
| height | Height | |
| depth | Depth (for 3D textures) |
| void neo::render::RenderTexture::setActiveSurface | ( | unsigned int | index | ) |
Set the active surface index (must be done while texture is not the current render target). This only has a meaning for cubemap textures and 3D textures. For cubemaps it denotes which of the six cubemap faces is active, and for 3D textures it indicates which z slice is active.
| index | Surface index |
| unsigned int neo::render::RenderTexture::getWidth | ( | ) | const [inline] |
| unsigned int neo::render::RenderTexture::getHeight | ( | ) | const [inline] |
| const image::PixelFormat & neo::render::RenderTexture::getPixelFormat | ( | ) | const [inline] |
1.5.1