mirror of https://github.com/BOINC/boinc.git
46 lines
954 B
C
Executable File
46 lines
954 B
C
Executable File
#include <stdio.h>
|
|
|
|
#ifndef BOINC_GRAPHICS_API_H
|
|
#define BOINC_GRAPHICS_API_H
|
|
|
|
#define MODE_UNSUPPORTED 0
|
|
#define MODE_NO_GRAPHICS 1
|
|
#define MODE_WINDOW 2
|
|
#define MODE_FULLSCREEN 3
|
|
#define MODE_BLANKSCREEN 4
|
|
|
|
extern char* xml_graphics_modes[5];
|
|
|
|
struct GRAPHICS_INFO {
|
|
int xsize;
|
|
int ysize;
|
|
int graphics_mode;
|
|
double refresh_period;
|
|
};
|
|
|
|
typedef struct GRAPHICS_INFO GRAPHICS_INFO;
|
|
|
|
struct APP_OUT_GRAPHICS {
|
|
};
|
|
|
|
int write_graphics_file(FILE* f, GRAPHICS_INFO* gi);
|
|
int parse_graphics_file(FILE* f, GRAPHICS_INFO* gi);
|
|
int boinc_init_opengl();
|
|
int boinc_finish_opengl();
|
|
|
|
#ifdef BOINC_APP_GRAPHICS
|
|
GLvoid glPrint(GLuint font, const char *fmt, ...);
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
GLenum InitGL(GLvoid);
|
|
GLenum ReSizeGLScene(GLsizei width, GLsizei height);
|
|
extern bool app_render(int xs, int ys, double time_of_day);
|
|
extern void app_init_gl(void);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
#endif
|