Optimization interne de chunk!
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
#include "skybox.h"
|
||||
#include "audio.h"
|
||||
#include "textureatlas.h"
|
||||
#include "blockinfo.h"
|
||||
#include "array2d.h"
|
||||
|
||||
class Engine : public OpenglContext
|
||||
{
|
||||
@@ -36,13 +38,16 @@ private:
|
||||
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);
|
||||
|
||||
Texture m_textureFloor;
|
||||
Texture m_textureSkybox;
|
||||
Texture m_textureFont;
|
||||
Texture m_textureCrosshair;
|
||||
Texture m_textureCube1;
|
||||
|
||||
TextureAtlas m_textureAtlas = TextureAtlas(128);
|
||||
|
||||
Skybox m_skybox;
|
||||
Shader m_shader01;
|
||||
Chunk m_testChunk;
|
||||
|
Reference in New Issue
Block a user