Show
Ignore:
Timestamp:
06/18/07 07:03:43 (1 year ago)
Author:
vossg
Message:

fixed: updated project files

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/VSBuild/OpenSGES/testApp/testApp.cpp

    r16 r804  
    5151#include "OSGTypedGeoIntegralProperty.h" 
    5252 
     53#include "OSGRAWSceneFileType.h" 
     54 
    5355//----------------------------------------------------------------------------- 
    5456// Parameterization 
     
    650652 
    651653    camTransCore->editMatrix().setIdentity(); 
     654#ifdef DO_SPHERES 
    652655    camTransCore->editMatrix()[3][2] = 300.f; 
     656#else 
     657    camTransCore->editMatrix()[3][2] = 15.f; 
     658#endif 
    653659 
    654660    // beacon for camera and light   
     
    681687    file->setCore(OSG::Group::create()); 
    682688 
     689#ifdef DO_SPHERES 
    683690    for(int i = 0; i < NUM_FLAKES; ++i) 
    684691        { 
     
    692699        file->addChild(s_pFlakes[i].pTN); 
    693700        } 
     701#else 
     702        std::ifstream sin("\\data\\dino.raw", std::ios::binary); 
     703 
     704        if(sin) 
     705        { 
     706                OSG::NodePtr pFileTree = OSG::RAWSceneFileType::the().read(sin, ""); 
     707 
     708                file->addChild(pFileTree); 
     709        } 
     710 
     711#endif 
    694712 
    695713 
     
    749767                } 
    750768 
    751               update (); 
     769//            update (); 
    752770                display(); 
    753771