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

SCM Repository

[diderot] Diff of /branches/lamont/test/implicit-surface/main.c
ViewVC logotype

Diff of /branches/lamont/test/implicit-surface/main.c

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

revision 2225, Thu Feb 28 05:14:28 2013 UTC revision 2226, Thu Feb 28 17:35:37 2013 UTC
# Line 1  Line 1 
1  #include <math.h>  #include <math.h>
2  #include <stdlib.h>  #include <stdlib.h>
 #include <time.h>  
3  #include <stdio.h>  #include <stdio.h>
4  #include "unit-circle.h"  
 #ifdef __APPLE__  
 #  include <GLUT/glut.h>  
 #else  
 #  include <GL/glut.h>  
 #endif  
5    
6  #define PI 3.1415926535897932384626433832795  #define PI 3.1415926535897932384626433832795
7    
# Line 104  Line 98 
98      }      }
99      glutTimerFunc(50,update, 0);      glutTimerFunc(50,update, 0);
100  }  }
101  void Display(void)  
 {  
     glClearColor(1.0f, 1.0f, 1.0f, 1.0f);  
     glClear(GL_COLOR_BUFFER_BIT);     // Clear The Screen And The Depth Buffer  
     setUpView();  
 }  
102  int main(int argc, char** argv)  int main(int argc, char** argv)
103  {  {
104      glutInit(&argc, argv);      glutInit(&argc, argv);
# Line 119  Line 108 
108      glutDisplayFunc(&Display);      glutDisplayFunc(&Display);
109    
110      // initialize the Diderot program      // initialize the Diderot program
111        CIRCLE_World_t * wrld;
112      wrld = CIRCLE_Init();      wrld = CIRCLE_Init();
113      nData = nrrdNew();      nData = nrrdNew();
114      CIRCLE_Initially (wrld);      CIRCLE_Initially (wrld);
115    
116      glutTimerFunc(50,update, 0);  
117        // step the computation
118        CIRCLE_Run(wrld, STEP_SIZE);
119        // get and render the state
120        GetData (wrld, nData);
121    
122    
123    
124    
125    
126      glutMainLoop();      glutMainLoop();
127    

Legend:
Removed from v.2225  
changed lines
  Added in v.2226

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