Advertisement
Guest User

Untitled

a guest
Apr 9th, 2021
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.92 KB | None | 0 0
  1.         glPushAttrib(GL_ALL_ATTRIB_BITS);
  2.  
  3.         glDisable(GL_TEXTURE_2D);
  4.         glBindTexture(GL_TEXTURE_2D, 0);
  5.         glDisable(GL_CULL_FACE);
  6.         glDisable(GL_LIGHTING);
  7.         glDepthFunc(GL_ALWAYS);
  8.  
  9.         glDepthRange(0, 0);
  10.        
  11.         glLineWidth(2);
  12.         glColor3ub(255, 255, 255);
  13.  
  14.         glBegin(GL_LINES);
  15.         glVertex3f(1, 0, 0);
  16.         glVertex3f(1, -1, 0);
  17.  
  18.         glVertex3f(0, 0, 0);
  19.         glVertex3f(1, 0, 0);
  20.  
  21.         glVertex3f(0, 0, 0);
  22.         glVertex3f(0, -1, 0);
  23.  
  24.         glVertex3f(0, -1, 0);
  25.         glVertex3f(1, -1, 0);
  26.  
  27.         glVertex3f(1, -1, 0);
  28.         glVertex3f(1, -1, -1);
  29.  
  30.         glVertex3f(1, -1, -1);
  31.         glVertex3f(1, 0, -1);
  32.  
  33.         glVertex3f(1, -1, -1);
  34.         glVertex3f(0, -1, -1);
  35.  
  36.         glVertex3f(0, -1, -1);
  37.         glVertex3f(0, -1, 0);
  38.  
  39.         glVertex3f(0, -1, -1);
  40.         glVertex3f(0, 0, -1);
  41.  
  42.         glVertex3f(0, 0, -1);
  43.         glVertex3f(1, 0, -1);
  44.  
  45.         glVertex3f(0, 0, -1);
  46.         glVertex3f(0, 0, 0);
  47.  
  48.         glVertex3f(1, 0, -1);
  49.         glVertex3f(1, 0, 0);
  50.  
  51.         glEnd();
  52.  
  53.         glPopAttrib();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement