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

texmanager.h File Reference

#include <string>
#include <map>
#include <celutil/resmanager.h>
#include <celengine/texture.h>
#include "multitexture.h"

Include dependency graph for texmanager.h:

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

Go to the source code of this file.

Typedefs

typedef ResourceManager< TextureInfoTextureManager

Functions

TextureManagerGetTextureManager ()
bool operator< (const TextureInfo &ti0, const TextureInfo &ti1)


Typedef Documentation

typedef ResourceManager<TextureInfo> TextureManager
 

Definition at line 87 of file texmanager.h.


Function Documentation

TextureManager* GetTextureManager  ) 
 

Definition at line 30 of file texmanager.cpp.

References textureManager.

Referenced by Convert3DSMesh(), convertToVertexList(), ConvertToVertexList(), createBumpMap(), createTexture(), MultiResTexture::find(), StarDetails::InitializeStarTextures(), AsciiModelLoader::loadMaterial(), BinaryModelLoader::loadMaterial(), FixedFunctionRenderContext::makeCurrent(), GLSL_RenderContext::makeCurrent(), Mesh3DS::render(), MultiResTexture::setTexture(), AsciiModelWriter::writeMaterial(), and BinaryModelWriter::writeMaterial().

00031 {
00032     if (textureManager == NULL)
00033         textureManager = new TextureManager("textures");
00034     return textureManager;
00035 }

bool operator< const TextureInfo ti0,
const TextureInfo ti1
[inline]
 

Definition at line 72 of file texmanager.h.

00073 {
00074     if (ti0.resolution == ti1.resolution)
00075     {
00076         if (ti0.source == ti1.source)
00077             return ti0.path < ti1.path;
00078         else
00079             return ti0.source < ti1.source;
00080     }
00081     else
00082     {
00083         return ti0.resolution < ti1.resolution;
00084     }
00085 }


Generated on Sat Jan 14 22:31:25 2006 for Celestia by  doxygen 1.4.1