Classes | Namespaces | Functions

glut-model.h File Reference

#include "common/common.h"
#include "geometry/geometry_3d.h"
#include "glut/camera.h"
#include "glut/renderable.h"
#include "threadsafe/smart_ptr.h"
Include dependency graph for glut-model.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  glut::material_t
 material (used for rendering polygons) More...
class  glut::MaterialRegistry
 Clients of the parsing APIs must implement this interface themselves. More...
struct  glut::polygon_t
 polygon object. More...
class  glut::model_t
 model object. More...
struct  glut::lod_entry_t
 level-of-detail entry. contains a model and distance information More...
struct  glut::lod_model_t
 level-of-detail model. Contains multiple level-of-detail entries (models) More...

Namespaces

namespace  glut

Functions

void glut::parseColor (std::istream &stream, img_color_t &color)
void glut::parseMaterial (std::istream &stream, const char *parentDir, material_t &material)
void glut::parsePolygon (MaterialRegistry *mreg, std::istream &stream, polygon_t &polygon)
void glut::parseModel (MaterialRegistry *mreg, std::istream &stream, model_t &model)
void glut::parseLodEntry (MaterialRegistry *mreg, std::istream &stream, lod_entry_t &entry)
void glut::parseLodModel (MaterialRegistry *mreg, std::istream &stream, lod_model_t &lod_model)
smart_ptr< MaterialRegistry > glut::getSimpleRegistry (const char *materialDir)
 get a simple implementation of a material registry.
smart_ptr< Renderable > glut::loadModel (const char *filename, MaterialRegistry *reg)
 load a model from a Wavepacket Glut Model file (.wgm extension, normally)
void glut::writeModelToStream (std::ostream &stream, const model_t &model)
 assumes you have already written the key name, this will write the opening and closing brackets