This commit is contained in:
Marc-Eric Martel
2021-10-26 17:28:37 -04:00
parent fbf2e8858e
commit c3c432c369
14 changed files with 410 additions and 60 deletions

View File

@@ -4,11 +4,12 @@
#include "openglcontext.h"
#include "texture.h"
#include "transformation.h"
#include "shader.h""
#include "shader.h"
#include "player.h"
#include "chunk.h"
#include "skybox.h"
#include "audio.h"
#include "textureatlas.h"
class Engine : public OpenglContext
{
@@ -28,17 +29,20 @@ public:
private:
bool LoadTexture(Texture& texture, const std::string& filename, bool stopOnError = true);
void DrawHud(float elapsedTime);
void PrintText(unsigned int x, unsigned int y, const std::string& t);
int GetFps(float elapsedTime) const;
private:
bool m_wireframe = false;
Texture m_textureFloor;
Texture m_textureSkybox;
Texture m_textureFont;
Texture m_textureCrosshair;
Texture m_textureCube1;
Texture m_textureCube2;
Texture m_textureCube3;
Texture m_textureCube4;
TextureAtlas m_textureAtlas = TextureAtlas(128);
Skybox m_skybox;
Shader m_shader01;
Chunk m_testChunk;