HALLELUJAH!!
This commit is contained in:
@@ -12,9 +12,9 @@
|
||||
#include "textureatlas.h"
|
||||
#include "blockinfo.h"
|
||||
#include "array2d.h"
|
||||
#include "world.h"
|
||||
|
||||
class Engine : public OpenglContext
|
||||
{
|
||||
class Engine : public OpenglContext {
|
||||
public:
|
||||
Engine();
|
||||
virtual ~Engine();
|
||||
@@ -35,12 +35,12 @@ private:
|
||||
void PrintText(unsigned int x, unsigned int y, const std::string& t);
|
||||
int GetFps(float elapsedTime) const;
|
||||
|
||||
private:
|
||||
bool m_wireframe = false;
|
||||
|
||||
BlockInfo* m_blockinfo[BTYPE_LAST];
|
||||
TextureAtlas m_textureAtlas = TextureAtlas(BTYPE_LAST);
|
||||
Array2d<Chunk*> m_chunks = Array2d<Chunk*>(VIEW_DISTANCE, VIEW_DISTANCE);
|
||||
World m_world = World();
|
||||
Chunk m_copychunk = Chunk(0, 0);;
|
||||
|
||||
Texture m_textureFloor;
|
||||
Texture m_textureSkybox;
|
||||
@@ -52,7 +52,7 @@ private:
|
||||
Shader m_shader01;
|
||||
Audio m_audio = Audio(AUDIO_PATH "music01.wav");
|
||||
|
||||
Player m_player = Player(Vector3f(0, 0, 0));
|
||||
Player m_player = Player(Vector3f(64, 64, 64));
|
||||
|
||||
bool m_keyW = false;
|
||||
bool m_keyA = false;
|
||||
@@ -60,6 +60,9 @@ private:
|
||||
bool m_keyD = false;
|
||||
bool m_keylshift = false;
|
||||
bool m_keySpace = false;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif // ENGINE_H__
|
||||
|
Reference in New Issue
Block a user