Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- class wall {
- public:
- int _x1, _y1, _x2, _y2;
- public:
- wall(void) { }
- wall(int x1, int y1, int x2, int y2) {
- _x1 = x1;
- _y1 = y1;
- _x2 = x2;
- _y2 = y2;
- }
- void draw(void) {
- glVertex3f(_x1,0,_y1);
- glVertex3f(_x2,0,_y2);
- glVertex3f(_x2,1,_y2);
- glVertex3f(_x1,1,_y1);
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement