Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis12/test/vr-lite-cam/main.c
ViewVC logotype

Diff of /branches/vis12/test/vr-lite-cam/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1718, Sat Mar 10 23:03:02 2012 UTC revision 1734, Tue Mar 13 14:32:29 2012 UTC
# Line 21  Line 21 
21      uint32_t nSteps = VR_Run (wrld, 0);      uint32_t nSteps = VR_Run (wrld, 0);
22    
23    // get results    // get results
24      Nrrd *data = ??;      Nrrd *nData = nrrdNew();
25      if (VR_Get_outRGBA (wrld, data)) {      if (VR_Get_outRGBA (wrld, nData)) {
26        // error        // error
27      }      }
28    
29      VR_Shutdown (wrld);      if (nrrdSave("out.nrrd", nData, NULL)) {
30            char *err = biffGetDone(NRRD);
31            fprintf(stderr, "Trouble saving nrrd struct: %s\n", err);
32            return 1;
33        }
34    
35  /**** Getters for output values ****/      VR_Shutdown (wrld);
36    
37      return 0;      return 0;
38  }  }

Legend:
Removed from v.1718  
changed lines
  Added in v.1734

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0