2003-05-07 20:04:26 +00:00
|
|
|
#ifndef BOINC_GRAPHICS_API_H
|
|
|
|
#define BOINC_GRAPHICS_API_H
|
|
|
|
|
2003-05-07 23:42:17 +00:00
|
|
|
#ifdef __APPLE_CC__
|
2003-09-30 21:17:20 +00:00
|
|
|
#include <OpenGL/gl.h>
|
|
|
|
#include <Carbon/Carbon.h>
|
2003-05-07 23:42:17 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#include <windows.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
|
2003-05-07 20:04:26 +00:00
|
|
|
|
2003-05-07 23:42:17 +00:00
|
|
|
#ifdef HAVE_GL_LIB
|
|
|
|
#include <GL/gl.h>
|
|
|
|
#include "x_opengl.h"
|
|
|
|
#endif
|
2002-09-17 21:54:59 +00:00
|
|
|
|
2003-09-30 21:17:20 +00:00
|
|
|
#ifdef _WIN32
|
|
|
|
extern HANDLE hQuitEvent;
|
|
|
|
extern HANDLE graphics_threadh;
|
|
|
|
extern BOOL win_loop_done;
|
|
|
|
#endif
|
2002-09-11 21:41:42 +00:00
|
|
|
|
2003-09-30 21:17:20 +00:00
|
|
|
extern int boinc_init_opengl();
|
|
|
|
extern int boinc_finish_opengl();
|
2002-10-31 00:13:50 +00:00
|
|
|
|
2003-09-30 21:17:20 +00:00
|
|
|
extern GLvoid glPrint(GLuint font, const char *fmt, ...);
|
|
|
|
extern GLenum InitGL(GLvoid);
|
|
|
|
extern 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-03-03 18:46:06 +00:00
|
|
|
extern void app_init_gl(void);
|
2003-09-22 22:22:20 +00:00
|
|
|
extern void app_resize(int width, int height);
|
2003-05-07 20:04:26 +00:00
|
|
|
|
|
|
|
#endif
|