Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:19

0001 /**
0002 SOPTIX_Scene_Encapsulated_test.cc 
0003 ====================================
0004 
0005 ::
0006  
0007     ~/o/sysrap/tests/SOPTIX_Scene_test.sh 
0008     ~/o/sysrap/tests/SOPTIX_Scene_test.cc
0009 
0010 For an enchancement of this with OpenGL interactive control see::
0011 
0012     ~/o/sysrap/tests/SGLFW_SOPTIX_Scene_test.sh  
0013     ~/o/sysrap/tests/SGLFW_SOPTIX_Scene_test.cc  
0014 
0015 Other related tests::
0016 
0017     ~/o/sysrap/tests/SCUDA_Mesh_test.sh
0018     ~/o/sysrap/tests/SCUDA_Mesh_test.cc
0019 
0020 **/
0021 
0022 #include "ssys.h"
0023 #include "SGLM.h"
0024 #include "SScene.h"
0025 #include "SOPTIX.h"
0026 
0027 int main()
0028 {
0029     SScene* scene = SScene::Load("$SCENE_FOLD") ; 
0030     sfr fr = scene->getFrame(ssys::getenvint("FRAME", -1))  ; 
0031 
0032     SGLM gm ; 
0033     gm.set_frame(fr);   
0034     std::cout << gm.desc() ; 
0035 
0036     SOPTIX opx(scene, gm) ; 
0037     opx.render_ppm("$PPM_PATH"); 
0038 
0039     return 0 ; 
0040 }