Added DPRINTFs to track resource loading.
parent
6b3bbea76c
commit
4f1c9d7084
|
@ -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;
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue