SHARE
TWEET

Untitled

a guest Jun 19th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "stdafx.h"
  2.  
  3. class wall {
  4.     public:
  5.         int _x1, _y1, _x2, _y2;
  6.     public:
  7.         wall(void) { }
  8.         wall(int x1, int y1, int x2, int y2) {
  9.             _x1 = x1;
  10.             _y1 = y1;
  11.             _x2 = x2;
  12.             _y2 = y2;
  13.         }
  14.         void draw(void) {
  15.             glVertex3f(_x1,0,_y1);
  16.             glVertex3f(_x2,0,_y2);
  17.             glVertex3f(_x2,1,_y2);
  18.             glVertex3f(_x1,1,_y1);
  19.         }
  20. };
RAW Paste Data
Top