2002-08-09 21:43:59 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2002-09-11 21:41:42 +00:00
|
|
|
#define MODE_NO_GRAPHICS -1
|
|
|
|
#define MODE_WINDOW 0
|
|
|
|
#define MODE_FULLSCREEN 1
|
|
|
|
|
2002-08-09 21:43:59 +00:00
|
|
|
struct GRAPHICS_INFO {
|
2002-08-05 00:29:34 +00:00
|
|
|
int xsize;
|
|
|
|
int ysize;
|
2002-09-17 21:54:59 +00:00
|
|
|
int graphics_mode;
|
2002-08-05 00:29:34 +00:00
|
|
|
double refresh_period;
|
|
|
|
};
|
|
|
|
|
2002-09-17 21:54:59 +00:00
|
|
|
typedef struct GRAPHICS_INFO GRAPHICS_INFO;
|
|
|
|
|
2002-08-05 00:29:34 +00:00
|
|
|
struct APP_OUT_GRAPHICS {
|
|
|
|
};
|
2002-09-11 21:41:42 +00:00
|
|
|
|
2002-09-17 21:54:59 +00:00
|
|
|
int write_graphics_file(FILE* f, GRAPHICS_INFO* gi);
|
|
|
|
int parse_graphics_file(FILE* f, GRAPHICS_INFO* gi);
|
2002-09-18 21:15:23 +00:00
|
|
|
int boinc_init_opengl();
|
|
|
|
int boinc_finish_opengl();
|
2002-10-31 00:13:50 +00:00
|
|
|
|
|
|
|
#ifdef BOINC_APP_GRAPHICS
|
|
|
|
GLvoid glPrint(GLuint font, const char *fmt, ...);
|
|
|
|
#endif
|