]> git.mxchange.org Git - simgear.git/commitdiff
Patches from Norm Vine to get clouds working (and add some debugging
authordavid <david>
Mon, 16 Sep 2002 02:26:20 +0000 (02:26 +0000)
committerdavid <david>
Mon, 16 Sep 2002 02:26:20 +0000 (02:26 +0000)
information).

simgear/scene/sky/clouds3d/SkyArchive.cpp
simgear/scene/sky/clouds3d/SkySceneLoader.cpp

index 4b6bcc9f58000f0aee9d85bab1fd1a67ec09c9b0..ef19122d63410d6ab97615a786cf65cdf5426f55 100644 (file)
@@ -964,6 +964,9 @@ SKYRESULT SkyArchive::Load(const char* pFileName)
   
   FILE* pSrcFile = NULL;
   
+  char buf[512];
+  sprintf(buf,"SkyArchive::Load(%s)",pFileName);
+  SkyTrace(buf);
   if (NULL == (pSrcFile = fopen(pFileName, "rb"))) // file opened successfully   
   {
     SkyTrace("Error: SkyArchive::Load(): failed to open file for reading.");
index 6ccfe80d54c24054ed99eed3cb457d0c2ff3cf94..6aea15cb4af986432c01edb35bf56db16a2a587f 100644 (file)
@@ -222,11 +222,12 @@ void SkySceneLoader::Draw()
   //_ssgCurrentContext->cull(r) ;
   //_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 ) ;
   glLoadIdentity () ;
 
-}
\ No newline at end of file
+}