Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Mall
- {
- protected :
- int x, y, z;
- public :
- void Draw() {};
- };
- class Road : public Mall
- {
- private :
- int x, y, z;
- public :
- Road(int x, int y, int z)
- {
- this->x = x;
- this->y = y;
- this->z = z;
- }
- public :
- void Draw()
- {
- glTranslated(x, y, z);
- //Quad Road
- glBegin(GL_POLYGON);
- glVertex3f(-7.0f, -8.0f, 0.0f);
- glVertex3f(7.0f, -8.0f, 0.0f);
- glVertex3f(5.0f, 8.0f, 0.0f);
- glVertex3f(-5.0f, 8.0f, 0.0f);
- glEnd();
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement