SPIN Framework
Public Types | Public Member Functions | Protected Member Functions

spin::ImageTexture Class Reference

A texture state that holds a static image. More...

#include <ImageTexture.h>

Inheritance diagram for spin::ImageTexture:
spin::Shader spin::ReferencedStateSet

List of all members.

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 ()

Detailed Description

A texture state that holds a static image.


Member Function Documentation

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.


The documentation for this class was generated from the following files: