GUI
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user