Skip to content

Instantly share code, notes, and snippets.

@jdiez17
Created November 1, 2012 22:01
Show Gist options
  • Save jdiez17/3996942 to your computer and use it in GitHub Desktop.
Save jdiez17/3996942 to your computer and use it in GitHub Desktop.
unsigned int idx = 0;
void* vertices = 0x5000;
/* top */
vertices[idx++] = 0x0000;
vertices[idx++] = 0x02ff;
vertices[idx++] = 0xff00;
vertices[idx++] = 0x02ff;
vertices[idx++] = 0xffff;
vertices[idx++] = 0x02ff;
vertices[idx++] = 0x00ff;
vertices[idx++] = 0x02ff;
/* bottom */
vertices[idx++] = 0x0000;
vertices[idx++] = 0x0200;
vertices[idx++] = 0x00ff;
vertices[idx++] = 0x0200;
vertices[idx++] = 0xffff;
vertices[idx++] = 0x0200;
vertices[idx++] = 0xff00;
vertices[idx++] = 0x0200;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment