Added DPRINTFs to track resource loading.

pull/22/head
cjlaurel 2001-02-26 19:36:40 +00:00
parent 6b3bbea76c
commit 4f1c9d7084
2 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,7 @@ bool MeshManager::find(string name, Mesh** mesh)
Mesh* MeshManager::load(string name)
{
DPRINTF("Loading mesh: %s\n", name.c_str());
ContentType fileType = DetermineFileType(name);
Mesh* mesh = NULL;

View File

@ -7,6 +7,7 @@
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
#include "celestia.h"
#include "texmanager.h"
@ -24,6 +25,7 @@ bool TextureManager::find(string name, CTexture** tex)
CTexture* TextureManager::load(string name)
{
DPRINTF("Loading texture: %s\n", name.c_str());
CTexture* tex = LoadTextureFromFile(baseDir + "\\" + name);
if (tex != NULL)
tex->bindName();