forked from jajanps0015/LearnOpenGL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
78 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,6 @@ | |
#define MAX_RAY_DEPTH 100 | ||
#define PI 3.1415926535 | ||
|
||
//vector 3 | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
LearningOpenGL/LearningOpenGL/include/Tetris/StartScreen.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#pragma once | ||
#include "GLTexture.h" | ||
#include "GameEntity.h" | ||
|
||
using namespace FOGrP; | ||
|
||
class StartScreen : public GameEntity | ||
{ | ||
private: | ||
|
||
|
||
|
||
GLTexture* mStartButton; | ||
GLTexture* mTetrisLogo; | ||
|
||
|
||
public: | ||
StartScreen(); | ||
~StartScreen(); | ||
|
||
|
||
void Update() override; | ||
void Render() override; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#include "Tetris/StartScreen.h" | ||
|
||
|
||
StartScreen::StartScreen() | ||
{ | ||
|
||
|
||
mStartButton = new GLTexture("Start", "emulogic.ttf", 32, { 200, 0, 0 }); | ||
mTetrisLogo = new GLTexture("Tetris.png"); | ||
|
||
} | ||
|
||
StartScreen::~StartScreen() | ||
{ | ||
|
||
delete mStartButton; | ||
mStartButton = nullptr; | ||
|
||
// logo entities | ||
delete mTetrisLogo; | ||
mTetrisLogo = nullptr; | ||
|
||
|
||
} | ||
|
||
void StartScreen::Update() | ||
{ | ||
|
||
} | ||
|
||
void StartScreen::Render() | ||
{ | ||
|
||
|
||
mStartButton->Render(); | ||
|
||
mTetrisLogo->Render(); | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.