blob: 1f199a4c80d8cb4a38b1ce6f64cbb2f789f42909 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <gtk/gtk.h>
#include <gtk/gtkgl.h>
#include "WindowManager.h"
int main(int argc, char *argv[]) {
gtk_init(&argc, &argv);
gtk_gl_init(&argc, &argv);
GdkGLConfig *glconfig = gdk_gl_config_new_by_mode((GdkGLConfigMode)(GDK_GL_MODE_RGB | GDK_GL_MODE_DOUBLE));
if(!glconfig) glconfig = gdk_gl_config_new_by_mode(GDK_GL_MODE_RGB);
if(!glconfig) {
g_print("*** No appropriate OpenGL-capable visual found.\n");
return 1;
}
WindowManager windowManager(glconfig);
windowManager.run();
return 0;
}
|