|
SPIN Framework
|
A texture state that holds a static image. More...
#include <ImageTexture.h>
Public Types | |
| enum | TextureMode { TEXTURE_2D, TEXTURE_RECTANGLE } |
Public Member Functions | |
| ImageTexture (SceneManager *sceneManager, const char *initID) | |
| virtual void | debug () |
| bool | isValid () const |
| void | setPath (const char *newPath) |
| const char * | getPath () const |
| void | setTextureMode (TextureMode mode) |
| int | getTextureMode () const |
| void | setTextureResize (bool b) |
| int | getTextureResize () const |
| virtual std::vector< lo_message > | getState () const |
Protected Member Functions | |
| void | draw () |
A texture state that holds a static image.
| void spin::ImageTexture::debug | ( | ) | [virtual] |
Print debug information to console.
Reimplemented from spin::Shader.
| std::vector< lo_message > spin::ImageTexture::getState | ( | ) | const [virtual] |
Just like a ReferencedNode, each subclass of ReferencedStateSet must override the getState() method to pass it's current state.
Reimplemented from spin::Shader.
| bool spin::ImageTexture::isValid | ( | ) | const |
Returns whether there is a currently valid image texture
| void spin::ImageTexture::setPath | ( | const char * | newPath | ) |
Creates a texture from a path on disk.
1.7.3