clray

view src/ogl.h @ 56:e3b4457dc4d2

added glFinish after swap-buffers to make the program absolutely correct in regards to mediating usage of the shared GL/CL texture image
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 06 Sep 2010 05:40:47 +0100
parents 29f9330cfa4b
children
line source
1 #ifndef OGL_H_
2 #define OGL_H_
4 #ifndef __APPLE__
6 #if defined(WIN32) || defined(__WIN32__)
7 #include <windows.h>
8 #endif
10 #include <GL/gl.h>
11 #include <GL/glu.h>
13 #else /* __APPLE__ */
14 #include <OpenGL/gl.h>
15 #include <OpenGL/glu.h>
16 #endif
19 #ifndef GL_RGBA32F_ARB
20 #define GL_RGBA32F_ARB 0x8814
21 #endif
24 #endif /* OGL_H_ */