Patches from Norm Vine to get clouds working (and add some debugging

information).
This commit is contained in:
david
2002-09-16 02:26:20 +00:00
parent 69a93342c0
commit 83e6e44eab
2 changed files with 7 additions and 3 deletions
@@ -964,6 +964,9 @@ SKYRESULT SkyArchive::Load(const char* pFileName)
FILE* pSrcFile = NULL; FILE* pSrcFile = NULL;
char buf[512];
sprintf(buf,"SkyArchive::Load(%s)",pFileName);
SkyTrace(buf);
if (NULL == (pSrcFile = fopen(pFileName, "rb"))) // file opened successfully if (NULL == (pSrcFile = fopen(pFileName, "rb"))) // file opened successfully
{ {
SkyTrace("Error: SkyArchive::Load(): failed to open file for reading."); SkyTrace("Error: SkyArchive::Load(): failed to open file for reading.");
@@ -222,11 +222,12 @@ void SkySceneLoader::Draw()
//_ssgCurrentContext->cull(r) ; //_ssgCurrentContext->cull(r) ;
//_ssgDrawDList () ; //_ssgDrawDList () ;
SceneManager::InstancePtr()->Display(*pCam); SceneManager::InstancePtr()->Update(*pCam);
SceneManager::InstancePtr()->Display(*pCam);
//pLight->Display(); // draw the light position to debug with sun position //pLight->Display(); // draw the light position to debug with sun position
glMatrixMode ( GL_MODELVIEW ) ; glMatrixMode ( GL_MODELVIEW ) ;
glLoadIdentity () ; glLoadIdentity () ;
} }