#include <stdlib.h>
#include <iostream>
-#include "glimports.hpp"
#include "glws.hpp"
#include <X11/Xlib.h>
+#include <GL/gl.h>
#include <GL/glx.h>
display, window, name, name,
None, (char **)NULL, 0, &sizehints);
- XMapWindow(display, window);
-
- waitForEvent(window, Expose);
glXWaitX();
}
glXWaitX();
}
+ void show(void) {
+ if (!visible) {
+ XMapWindow(display, window);
+
+ waitForEvent(window, Expose);
+
+ Drawable::show();
+ }
+ }
+
void swapBuffers(void) {
glXSwapBuffers(display, window);
}