formatting fix

svn path=/trunk/boinc/; revision=426
This commit is contained in:
Eric Heien 2002-09-18 22:31:36 +00:00
parent 1455eaaeae
commit d705ce54ea
1 changed files with 50 additions and 20 deletions

View File

@ -31,14 +31,33 @@
#include <ctype.h>
#include <time.h>
#ifdef BOINC_APP_GRAPHICS
#ifdef __APPLE_CC__
#include <Carbon/Carbon.h>
#include <DrawSprocket/DrawSprocket.h>
#include <AGL/agl.h>
#include <AGL/aglRenderers.h>
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <GLUT/glut.h>
#endif
#ifdef _WIN32
#include "glut.h"
#include <gl\gl.h> // Header File For The OpenGL32 Library
#include <gl\glu.h> // Header File For The GLu32 Library
#include <gl\glaux.h> // Header File For The Glaux Library
#endif
bool app_render(int xs, int ys, double time_of_day);
void renderBitmapString( float x, float y, void *font, char *string);
#endif
#include "util.h"
#include "filesys.h"
#include "boinc_api.h"
#include "graphics_api.h"
int DrawGLScene(GLvoid);
void renderBitmapString( float x, float y, void *font, char *string);
@ -130,6 +149,11 @@ int main(int argc, char **argv) {
retval = boinc_init();
if (retval) exit(retval);
retval = boinc_init_opengl();
if (retval) exit(retval);
boinc_get_init_data(uc_aid);
boinc_get_init_data(uc_aid);
boinc_resolve_filename( "in", resolved_name );
@ -200,10 +224,14 @@ int main(int argc, char **argv) {
time_file.printf("%f\n", boinc_cpu_time());
time_file.flush();
time_file.close();
//boinc_finish_opengl();
boinc_finish(0);
return 0;
}
#ifdef BOINC_APP_GRAPHICS
int DrawGLScene(GLvoid) // Here's Where We Do All The Drawing
{
@ -227,3 +255,5 @@ int DrawGLScene(GLvoid) // Here's Where We Do All The Drawing
return TRUE; // Everything Went OK
}
#endif