Advertisement
Komoluna

Untitled

Mar 28th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.35 KB | None | 0 0
  1.   glMatrixMode(GL_PROJECTION);
  2.   glLoadIdentity;
  3.   glOrtho(0, 1, 0, 1, -1, 1);
  4.   glMatrixMode(GL_MODELVIEW);
  5.   glLoadIdentity;
  6.   Tex.Bind();
  7.   glBegin(GL_QUADS);
  8.   glTexCoord2f(0, 0);  glVertex2f(0, 0);
  9.   glTexCoord2f(1, 0);  glVertex2f(1, 0);
  10.   glTexCoord2f(1, 1);  glVertex2f(1, 1);
  11.   glTexCoord2f(0, 1);  glVertex2f(0, 1);
  12.   glEnd;
  13.   Tex.Unbind();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement