#include <meshresource.h>
Inheritance diagram for lilith3d::StaticResource:

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. | |
| 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.
| 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..
1.5.1-p1