summaryrefslogtreecommitdiff
path: root/src/boring_parts.hpp
blob: 09404d850c52aca35aeb0bd681a38309d0ba36f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <iostream>

#include <gtkmm.h> /* Must included before X11/Xlib.h */
//#include <GL/glew.h> /* Seems included by GL/glxew.h */
//#include <GL/glxew.h> /* For GLXContext, must appear before gl.h, includes X11/Xlib.h */
#include <gtkglmm.h> /* Includes a GL/gl.h (the right one ??) */

//#include <GL/gl.h>
#include <GL/glu.h>
//#include <CL/cl_gl.h>

#ifdef HAS_OPENCL
// Blabla
#else
// Quick and dirty cl_float4 replacement
typedef union {
	float s[4];
	struct{ float x, y, z, w; };
	struct{ float s0, s1, s2, s3; };
} cl_float4;
#endif /*HAS_OPENCL*/

bool updateGLProjectionMatrix(Glib::RefPtr<Gdk::GL::Context> glCtx, Glib::RefPtr<Gdk::GL::Window> glWin, int width, int height);