lilith3d::StaticResource Class Reference

#include <meshresource.h>

Inheritance diagram for lilith3d::StaticResource:

lilith3d::TreeResource List of all members.

Detailed Description

A MeshResource is the actual data that defines a shape - vertices, colors, textures, etc. A Mesh uses a MeshResource, and applies some transformation to it - usually position, rotation, and color.


Public Member Functions

 StaticResource (const std::string &name, int flags)
void SetBaseMatrix (const grinliz::Matrix4 &matrix)
void PushObject (const char *name, const grinliz::Matrix4 &matrix, const Texture *tex)
void PushSurface (int numVertex, float normalX, float normalY, float normalZ)
void PushVertex (float x, float y, float z, float tx, float ty)
void PopObject ()
 Importing: Call when the current object is done.
virtual void ImportDone ()
 Importing: Call when import is complete.


Constructor & Destructor Documentation

lilith3d::StaticResource::StaticResource ( const std::string &  name,
int  flags 
)

Constructs a new resource. Flags is an OR mask of: SMOOTH_SHADING Smooth shading if set. Useful for organic shading. If not set, hard shading will be used which is useful for buildings.


Member Function Documentation

void lilith3d::StaticResource::SetBaseMatrix ( const grinliz::Matrix4 matrix  ) 

Importing: set the base transform for the entire object. Used to map between coordinate systems or scales.

void lilith3d::StaticResource::PushObject ( const char *  name,
const grinliz::Matrix4 matrix,
const Texture tex 
)

Importing: push a high level object. Objects are either made up of:

void lilith3d::StaticResource::PushSurface ( int  numVertex,
float  normalX,
float  normalY,
float  normalZ 
)

Importing: push a surface. An object has a bunch of surfaces, and surfaces are made of vertices. Any given surface can be made of 3 or 4 vertices (tri or quad). The engine will convert quads to tris.

void lilith3d::StaticResource::PushVertex ( float  x,
float  y,
float  z,
float  tx,
float  ty 
)

Importing: push a vertex for the surface..


The documentation for this class was generated from the following file:
Generated on Fri Mar 23 19:36:27 2007 for Lilith3D by  doxygen 1.5.1-p1