Changeset 804 for trunk/VSBuild/OpenSGES/testApp/testApp.cpp
- Timestamp:
- 06/18/07 07:03:43 (1 year ago)
- Files:
-
- trunk/VSBuild/OpenSGES/testApp/testApp.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/VSBuild/OpenSGES/testApp/testApp.cpp
r16 r804 51 51 #include "OSGTypedGeoIntegralProperty.h" 52 52 53 #include "OSGRAWSceneFileType.h" 54 53 55 //----------------------------------------------------------------------------- 54 56 // Parameterization … … 650 652 651 653 camTransCore->editMatrix().setIdentity(); 654 #ifdef DO_SPHERES 652 655 camTransCore->editMatrix()[3][2] = 300.f; 656 #else 657 camTransCore->editMatrix()[3][2] = 15.f; 658 #endif 653 659 654 660 // beacon for camera and light … … 681 687 file->setCore(OSG::Group::create()); 682 688 689 #ifdef DO_SPHERES 683 690 for(int i = 0; i < NUM_FLAKES; ++i) 684 691 { … … 692 699 file->addChild(s_pFlakes[i].pTN); 693 700 } 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 694 712 695 713 … … 749 767 } 750 768 751 update ();769 // update (); 752 770 display(); 753 771
