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

SCM Repository

[diderot] Diff of /trunk/test/MIP/mip_c.c
ViewVC logotype

Diff of /trunk/test/MIP/mip_c.c

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

revision 436, Tue Oct 19 14:35:45 2010 UTC revision 437, Tue Oct 19 16:50:13 2010 UTC
# Line 103  Line 103 
103      t = t + stepSz;      t = t + stepSz;
104  }  }
105    
106    void Global_init (GlobalState_t *glob)
107    {
108        if (Diderot_input_string("dataFile", &(glob->dataFile))
109        || Diderot_input_real_with_default("stepSz", &(glob->stepSz), 0.1f)
110        || Diderot_input_vec3("eye", &(glob->eye))
111        || Diderot_input_vec3("orig", &(glob->orig))
112        || Diderot_input_vec3("cVec", &(glob->cVec))
113        || Diderot_input_vec3("rVec", &(glob->rVec)))
114          // error processing inputs
115            exit (1);
116    
117      // image(3)[] img = load (dataFile);
118    
119    }
120    
121    
122  int main (int argc, char ** argv)  int main (int argc, char ** argv)
123  {  {
124        GlobalState_t glob;
125    
126        glob.argc = argc;
127        glob.argv = argv;
128        Global_init (glob);
129    
130    /* initial actors */
131    
132    /* run simulation */
133    
134    /* output */
135    
136      char *dataFile = "../../data/txs.nrrd";      char *dataFile = "../../data/txs.nrrd";
137      float transformMatrix[16];      float transformMatrix[16];
138      float inverseMatrix[16];      float inverseMatrix[16];

Legend:
Removed from v.436  
changed lines
  Added in v.437

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