Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

meshmanager.h File Reference

#include <string>
#include <map>
#include <celutil/resmanager.h>
#include <celengine/model.h>

Include dependency graph for meshmanager.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef ResourceManager< ModelInfoModelManager

Functions

ModelManagerGetModelManager ()
bool operator< (const ModelInfo &mi0, const ModelInfo &mi1)


Typedef Documentation

typedef ResourceManager<ModelInfo> ModelManager
 

Definition at line 62 of file meshmanager.h.


Function Documentation

ModelManager* GetModelManager  ) 
 

Definition at line 39 of file meshmanager.cpp.

References modelManager.

Referenced by Body::computeLocations(), CreatePlanet(), StarDatabase::createStar(), ExactPlanetPickTraversal(), Nebula::load(), Nebula::render(), and Renderer::renderObject().

00040 {
00041     if (modelManager == NULL)
00042         modelManager = new ModelManager("models");
00043     return modelManager;
00044 }

bool operator< const ModelInfo mi0,
const ModelInfo mi1
[inline]
 

Definition at line 48 of file meshmanager.h.

00049 {
00050     if (mi0.source != mi1.source)
00051         return mi0.source < mi1.source;
00052     else if (mi0.path != mi1.path)
00053         return mi0.path < mi1.path;
00054     else if (mi0.center.x != mi1.center.x)
00055         return mi0.center.x < mi1.center.x;
00056     else if (mi0.center.y != mi1.center.y)
00057         return mi0.center.y < mi1.center.y;
00058     else
00059         return mi0.center.z < mi1.center.z;
00060 }


Generated on Sat Jan 14 22:30:57 2006 for Celestia by  doxygen 1.4.1