Patches from Norm Vine to get clouds working (and add some debugging
information).
This commit is contained in:
@@ -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 () ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user