PanoramaViewer
 All Classes Namespaces Files Functions Variables Macros Pages
LayerSceneGraph::Impostor Class Reference

#include <Impostor.h>

Inheritance diagram for LayerSceneGraph::Impostor:
LayerSceneGraph::SceneNode

Public Member Functions

 Impostor (GLfloat distance)
 
virtual ~Impostor ()
 
void draw ()
 
void setTexture (Texture *texture)
 
- Public Member Functions inherited from LayerSceneGraph::SceneNode
 SceneNode ()
 
virtual ~SceneNode ()
 
virtual void onTouch ()
 
void addChild (SceneNode *s)
 
SceneNoderemoveChild ()
 
Matrix4 getTransform ()
 
void setTransform (Matrix4 m)
 
Matrix4 getWorldTransform ()
 
void setWorldTransform (Matrix4 m)
 
SceneNodegetParent ()
 
Vector3 getPosition ()
 
vector< SceneNode * >
::const_iterator 
getChildteratorStart ()
 
vector< SceneNode * >
::const_iterator 
getChildteratorEnd ()
 

Private Attributes

Meshmesh
 

Additional Inherited Members

- Protected Attributes inherited from LayerSceneGraph::SceneNode
Matrix4transform
 
Matrix4worldTransform
 
SceneNodeparent
 
vector< SceneNode * > children
 
Vector3 position
 

Constructor & Destructor Documentation

LayerSceneGraph::Impostor::Impostor ( GLfloat  distance)
LayerSceneGraph::Impostor::~Impostor ( )
virtual

Member Function Documentation

void LayerSceneGraph::Impostor::draw ( )
virtual

*This method updates this node world matrix based on its parent world matrix. It is necessary for correct drawing.

Todo:
think about a better update strategy

Reimplemented from LayerSceneGraph::SceneNode.

void LayerSceneGraph::Impostor::setTexture ( Texture texture)

Member Data Documentation

Mesh* LayerSceneGraph::Impostor::mesh
private

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