Add a new client that draws a pointer.

This commit is contained in:
Kristian Høgsberg 2008-11-02 10:55:25 -05:00
parent e120a4b1ee
commit 5a27f3e6a7
5 changed files with 195 additions and 8 deletions

View file

@ -40,7 +40,7 @@ repaint(void *data)
struct wl_surface *surface;
struct surface_data *sd;
GLint vertices[12];
GLint tex_coords[8] = { 1, 0, 1, 1, 0, 0, 0, 1 };
GLint tex_coords[12] = { 0, 0, 0, 1, 1, 0, 1, 1 };
GLuint indices[4] = { 0, 1, 2, 3 };
/* This part is where we actually copy the buffer to screen.