draw window frame
[windtk] / example.c
index 2d13dc5..4ff5bdc 100644 (file)
--- a/example.c
+++ b/example.c
@@ -36,9 +36,12 @@ int main(int argc, char **argv)
        glutMotionFunc(motion);
        glutPassiveMotionFunc(motion);
 
+       glClearColor(0.6, 0.6, 0.6, 1);
+
        if(wt_init(800, 600, &gfx)) {
                return 1;
        }
+       wt_window(0, "foo", WT_WS_DEFAULT, 100, 100, 200, 200);
 
        glutMainLoop();
        return 0;
@@ -48,6 +51,8 @@ static void display(void)
 {
        glClear(GL_COLOR_BUFFER_BIT);
 
+       wt_draw();
+
        glutSwapBuffers();
 }