clray

annotate 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
rev   line source
John@14 1 #ifndef OGL_H_
John@14 2 #define OGL_H_
John@14 3
John@14 4 #ifndef __APPLE__
John@14 5
John@14 6 #if defined(WIN32) || defined(__WIN32__)
John@14 7 #include <windows.h>
John@14 8 #endif
John@14 9
John@14 10 #include <GL/gl.h>
John@14 11 #include <GL/glu.h>
John@14 12
John@14 13 #else /* __APPLE__ */
John@14 14 #include <OpenGL/gl.h>
John@14 15 #include <OpenGL/glu.h>
John@14 16 #endif
John@14 17
John@14 18
John@49 19 #ifndef GL_RGBA32F_ARB
John@49 20 #define GL_RGBA32F_ARB 0x8814
John@49 21 #endif
John@49 22
John@49 23
John@14 24 #endif /* OGL_H_ */