#include <stdio.h>
#include <X11/Xlib.h>
#include <X11/extensions/shape.h>
-#include <GL/glx.h>
+/*#include <GL/glx.h>*/
#include <string.h>
#include <stdlib.h>
#include "render.h"
win =
XCreateWindow(ob_display, RootWindow(ob_display, 0)
, 10, 10, w, h, 10,
- CopyFromParent, // depth
- CopyFromParent, // class
- CopyFromParent, // visual
- 0, // valuemask
- 0); // attributes
+ CopyFromParent, /* depth */
+ CopyFromParent, /* class */
+ CopyFromParent, /* visual */
+ 0, /* valuemask */
+ 0); /* attributes */
XMapWindow(ob_display, win);
XSelectInput(ob_display, win, ExposureMask | StructureNotifyMask);
root = RootWindow (ob_display, DefaultScreen (ob_display));
return 0;
}
- paint(win, look, 500, 500);
+ paint(win, look, 0, 0, 500, 500);
while (1) {
XNextEvent(ob_display, &report);
switch (report.type) {
case ConfigureNotify:
w = report.xconfigure.width;
h = report.xconfigure.height;
- paint(win, look, w, h);
+ paint(win, look, 0, 0, w, h);
printf("confignotify %i:%i\n", w, h);
break;
}