Skip to content

Instantly share code, notes, and snippets.

Created January 2, 2013 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/a3ef7d9bce9f0dfaa02a to your computer and use it in GitHub Desktop.
Save anonymous/a3ef7d9bce9f0dfaa02a to your computer and use it in GitHub Desktop.
GL11.glBegin(GL11.GL_QUADS);
cloudTexture.bind();
GL11.glTexCoord2f(0,0);
GL11.glVertex2f(x,y);
GL11.glTexCoord2f(1,0);
GL11.glVertex2f(x+width,y);
GL11.glTexCoord2f(1,1);
GL11.glVertex2f(x+width,y+height);
GL11.glTexCoord2f(0,1);
GL11.glVertex2f(x,y+height);
GL11.glEnd();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment