Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

process_image.cpp

00001 #include <iostream>
00002 #include <stdio.h>
00003 #include <stdlib.h>
00004 #include <gl/glut.h>
00005 #include "lifeVariables.h"
00006 #include "CDensities.h"
00007 #include "CTex.h"
00008 
00009 void process_image(void)
00010 {
00011         /* display callback, clear frame buffer and z buffer,
00012                 rotate cube and draw, swap buffers */
00013 
00014     // note: I commented this out since it only needs to be done once
00015     // before rendering all the crap. think it should be done in the
00016     // callback in main.
00017 
00018         //glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
00019         //glLoadIdentity();
00020 
00021     /*
00022      *  need to replace this conditional statement with one that determines:
00023      *    - whether we have a new state (slice, direction) to display
00024      *    - whether we have a new file/set of data to display
00025      *    - whether we have a new state (slice vs. volumetric) state to display
00026      */ 
00027 /*
00028     switch( gCurrentState )
00029     {
00030     case SE_NEW_SLICE:
00031     case SE_NEW_DIRECTION:
00032     case SE_NEW_FILE_DATA
00033     case SE_
00034 
00035     }
00036 */
00037     if ( !GVolVoxels.GetDimX() )
00038         return;
00039 
00040     GTex.RenderSubTexture();
00041 }

Generated on Mon Dec 12 15:20:26 2005 for CCube by  doxygen 1.4.1