top box
This commit is contained in:
parent
80eba557b1
commit
0b91875225
BIN
.vscode/ipch/c35aa11ec19d39d2/mmap_address.bin
vendored
BIN
.vscode/ipch/c35aa11ec19d39d2/mmap_address.bin
vendored
Binary file not shown.
BIN
.vscode/ipch/ca13418f9203bc8f/GAME.ipch
vendored
BIN
.vscode/ipch/ca13418f9203bc8f/GAME.ipch
vendored
Binary file not shown.
BIN
.vscode/ipch/ca13418f9203bc8f/mmap_address.bin
vendored
BIN
.vscode/ipch/ca13418f9203bc8f/mmap_address.bin
vendored
Binary file not shown.
@ -55,6 +55,7 @@ public:
|
|||||||
void square();
|
void square();
|
||||||
void circle();
|
void circle();
|
||||||
void pentagon();
|
void pentagon();
|
||||||
|
void rectangle();
|
||||||
|
|
||||||
void on_key_up_arrow();
|
void on_key_up_arrow();
|
||||||
void on_key_down_arrow();
|
void on_key_down_arrow();
|
||||||
|
@ -208,6 +208,15 @@ void Game::box()
|
|||||||
glVertex3f(-1.0f, -1.0f, 0.0f); // Bottom Left
|
glVertex3f(-1.0f, -1.0f, 0.0f); // Bottom Left
|
||||||
glEnd();
|
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()
|
void Game::circle()
|
||||||
{
|
{
|
||||||
@ -293,6 +302,10 @@ void Game::guest_screen(){
|
|||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
}
|
}
|
||||||
void Game::top_screen(){
|
void Game::top_screen(){
|
||||||
|
glPushMatrix();
|
||||||
|
glTranslatef(-0.0f, 1.25f, -6.0f);
|
||||||
|
this->rectangle();
|
||||||
|
glPopMatrix();
|
||||||
|
|
||||||
}
|
}
|
||||||
void Game::paint()
|
void Game::paint()
|
||||||
@ -305,7 +318,7 @@ void Game::paint()
|
|||||||
{
|
{
|
||||||
this->grid();
|
this->grid();
|
||||||
}
|
}
|
||||||
|
this->top_screen();
|
||||||
this->user_screen();
|
this->user_screen();
|
||||||
this->guest_screen();
|
this->guest_screen();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user