boinc/api/graphics_api.h

38 lines
923 B
C
Raw Normal View History

#ifndef BOINC_GRAPHICS_API_H
#define BOINC_GRAPHICS_API_H
#ifdef __APPLE_CC__
#include <OpenGL/gl.h>
#include <Carbon/Carbon.h>
#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
#ifdef HAVE_GL_LIB
#include <GL/gl.h>
#include "x_opengl.h"
#endif
#ifdef _WIN32
extern HANDLE hQuitEvent;
extern HANDLE graphics_threadh;
extern BOOL win_loop_done;
#endif
extern int boinc_init_opengl();
extern int boinc_finish_opengl();
extern GLvoid glPrint(GLuint font, const char *fmt, ...);
extern GLenum InitGL(GLvoid);
extern GLenum ReSizeGLScene(GLsizei width, GLsizei height);
extern bool app_render(int xs, int ys, double time_of_day);
extern void app_init_gl(void);
extern void app_resize(int width, int height);
#endif