Browse Source

top box

master
beta 5 years ago
parent
commit
0b91875225
5 changed files with 15 additions and 1 deletions
  1. BIN
      .vscode/ipch/c35aa11ec19d39d2/mmap_address.bin
  2. BIN
      .vscode/ipch/ca13418f9203bc8f/GAME.ipch
  3. BIN
      .vscode/ipch/ca13418f9203bc8f/mmap_address.bin
  4. +1
    -0
      includes/game.hpp
  5. +14
    -1
      source/game.cpp

BIN
.vscode/ipch/c35aa11ec19d39d2/mmap_address.bin View File


BIN
.vscode/ipch/ca13418f9203bc8f/GAME.ipch View File


BIN
.vscode/ipch/ca13418f9203bc8f/mmap_address.bin View File


+ 1
- 0
includes/game.hpp 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();

+ 14
- 1
source/game.cpp 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();

Loading…
Cancel
Save