#include "celestia.h"#include <celutil/debug.h>#include <iostream>#include <fstream>#include "multitexture.h"#include "texmanager.h"Include dependency graph for texmanager.cpp:

Go to the source code of this file.
Functions | |
| TextureManager * | GetTextureManager () |
| static string | resolveWildcard (const string &filename) |
Variables | |
| static const char * | directories [] |
| static TextureManager * | textureManager = NULL |
|
|
Definition at line 30 of file texmanager.cpp. References textureManager. Referenced by Convert3DSMesh(), ConvertToVertexList(), convertToVertexList(), createBumpMap(), createTexture(), MultiResTexture::find(), StarDetails::InitializeStarTextures(), BinaryModelLoader::loadMaterial(), AsciiModelLoader::loadMaterial(), GLSL_RenderContext::makeCurrent(), FixedFunctionRenderContext::makeCurrent(), Mesh3DS::render(), MultiResTexture::setTexture(), BinaryModelWriter::writeMaterial(), and AsciiModelWriter::writeMaterial(). 00031 {
00032 if (textureManager == NULL)
00033 textureManager = new TextureManager("textures");
00034 return textureManager;
00035 }
|
|
|
Definition at line 38 of file texmanager.cpp. Referenced by TextureInfo::resolve(). 00039 {
00040 string base(filename, 0, filename.length() - 1);
00041
00042 string pngfile = base + "png";
00043 {
00044 ifstream in(pngfile.c_str());
00045 if (in.good())
00046 return pngfile;
00047 }
00048 string jpgfile = base + "jpg";
00049 {
00050 ifstream in(jpgfile.c_str());
00051 if (in.good())
00052 return jpgfile;
00053 }
00054 string ddsfile = base + "dds";
00055 {
00056 ifstream in(ddsfile.c_str());
00057 if (in.good())
00058 return ddsfile;
00059 }
00060 string ctxfile = base + "ctx";
00061 {
00062 ifstream in(ctxfile.c_str());
00063 if (in.good())
00064 return ctxfile;
00065 }
00066
00067 return "";
00068 }
|
|
|
Initial value:
{
"/lores/",
"/medres/",
"/hires/"
}
Definition at line 22 of file texmanager.cpp. Referenced by TextureInfo::resolve(). |
|
|
Definition at line 20 of file texmanager.cpp. Referenced by GetTextureManager(). |
1.4.1