mirror of https://github.com/BOINC/boinc.git
93 lines
1.9 KiB
C
Executable File
93 lines
1.9 KiB
C
Executable File
#ifndef BOINC_GRAPHICS_API_H
|
|
#define BOINC_GRAPHICS_API_H
|
|
|
|
#ifdef __APPLE_CC__
|
|
#ifndef HAVE_GL_LIB
|
|
#define HAVE_GL_LIB 1
|
|
#endif
|
|
#ifndef HAVE_OPENGL_GL_H
|
|
#define HAVE_OPENGL_GL_H
|
|
#endif
|
|
|
|
#elif defined(_WIN32)
|
|
#ifndef HAVE_GL_LIB
|
|
#define HAVE_GL_LIB 1
|
|
#endif
|
|
#ifndef HAVE_GL_GL_H
|
|
#define HAVE_GL_GL_H 1
|
|
#endif
|
|
#ifndef HAVE_GL_GLU_H
|
|
#define HAVE_GL_GLU_H 1
|
|
#endif
|
|
#ifndef HAVE_GL_GLAUX_H
|
|
#define HAVE_GL_GLAUX_H 1
|
|
#endif
|
|
|
|
#include <windows.h>
|
|
extern HANDLE hQuitEvent;
|
|
extern HANDLE graphics_threadh;
|
|
extern BOOL win_loop_done;
|
|
#endif
|
|
|
|
#ifdef HAVE_GL_H
|
|
#include <gl.h>
|
|
#elif defined(HAVE_GL_GL_H)
|
|
#include <GL/gl.h>
|
|
#elif defined(HAVE_OPENGL_GL_H)
|
|
#include <OpenGL/gl.h>
|
|
#elif defined(HAVE_MESAGL_GL_H)
|
|
#include <MesaGL/gl.h>
|
|
#endif
|
|
#ifdef HAVE_GLU_H
|
|
#include <glu.h>
|
|
#elif defined(HAVE_GL_GLU_H)
|
|
#include <GL/glu.h>
|
|
#elif defined(HAVE_OPENGL_GLU_H)
|
|
#include <OpenGL/glu.h>
|
|
#elif defined(HAVE_MESAGL_GLU_H)
|
|
#include <MesaGL/glu.h>
|
|
#endif
|
|
#ifdef HAVE_GLUT_H
|
|
#include <glut.h>
|
|
#elif defined(HAVE_GL_GLUT_H)
|
|
#include <GL/glut.h>
|
|
#elif defined(HAVE_OPENGL_GLUT_H)
|
|
#include <OpenGL/glut.h>
|
|
#elif defined(HAVE_MESAGL_GLUT_H)
|
|
#include <MesaGL/glut.h>
|
|
#elif defined(HAVE_GLUT_GLUT_H)
|
|
#include <GLUT/glut.h>
|
|
#endif
|
|
#ifdef HAVE_GLAUX_H
|
|
#include <glaux.h>
|
|
#elif defined(HAVE_GL_GLAUX_H)
|
|
#include <GL/glaux.h>
|
|
#elif defined(HAVE_OPENGL_GLAUX_H)
|
|
#include <OpenGL/glaux.h>
|
|
#elif defined(HAVE_MESAGL_GLAUX_H)
|
|
#include <MesaGL/glaux.h>
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(HAVE_GL_LIB) && defined(HAVE_X11)
|
|
#include "x_opengl.h"
|
|
#endif
|
|
|
|
#ifdef __APPLE_CC__
|
|
#include <Carbon/Carbon.h>
|
|
#endif
|
|
|
|
extern int boinc_init_opengl();
|
|
extern int boinc_finish_opengl();
|
|
#ifdef HAVE_GL_LIB
|
|
extern GLvoid glPrint(GLuint font, const char *fmt, ...);
|
|
extern GLenum InitGL(GLvoid);
|
|
extern GLenum ReSizeGLScene(GLsizei width, GLsizei height);
|
|
#endif
|
|
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
|