This commit is contained in:
beta 2019-04-24 23:59:55 -05:00
parent 80eba557b1
commit 0b91875225
5 changed files with 15 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -55,6 +55,7 @@ public:
void square();
void circle();
void pentagon();
void rectangle();
void on_key_up_arrow();
void on_key_down_arrow();

View File

@ -208,6 +208,15 @@ void Game::box()
glVertex3f(-1.0f, -1.0f, 0.0f); // Bottom Left
glEnd();
}
void Game::rectangle(){
glColor3f(1.0f, 1.0f, 1.0f);
glBegin(GL_LINE_LOOP);
glVertex3f(-2.5f, 1.0f, 0.0f); // Top Left
glVertex3f(2.5f, 1.0f, 0.0f); // Top Right
glVertex3f(2.5f, -1.0f, 0.0f); // Bottom Right
glVertex3f(-2.5f, -1.0f, 0.0f); // Bottom Left
glEnd();
}
void Game::circle()
{
@ -293,6 +302,10 @@ void Game::guest_screen(){
glPopMatrix();
}
void Game::top_screen(){
glPushMatrix();
glTranslatef(-0.0f, 1.25f, -6.0f);
this->rectangle();
glPopMatrix();
}
void Game::paint()
@ -305,7 +318,7 @@ void Game::paint()
{
this->grid();
}
this->top_screen();
this->user_screen();
this->guest_screen();