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
|
2003-02-28 21:03:17 +00:00
|
|
|
#define MODE_BLANK_SCREEN 2
|
2002-09-11 21:41:42 +00:00
|
|
|
|
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, ...);
|
2003-02-14 18:47:26 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
GLenum InitGL(GLvoid);
|
|
|
|
GLenum ReSizeGLScene(GLsizei width, GLsizei height);
|
2003-02-19 18:55:07 +00:00
|
|
|
extern bool app_render(int xs, int ys, double time_of_day);
|
2003-02-14 18:47:26 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2002-10-31 00:13:50 +00:00
|
|
|
#endif
|