public ChunkRenderer(Chunk chunk, World world)
        {
            this.WorldObj = world;
            this.Chunk = chunk;

            this.Buffer = new VertexBuffer();
        }
        public void Init()
        {
            this.Buffer = new VertexBuffer();

            var pos = new ChunkPos(0, 0, 0);
            var chunk = new Chunk(this.WorldObj, pos);

            for (int i = 0; i < 16; i++)
            {
                for (int j = 0; j < 1; j++)
                {
                    for (int k = 0; k < 16; k++)
                    {
                        chunk.SetBlock(BlockList.Stone, i, j, k);
                    }
                }
            }

            this.ChunkRenderers.Add(pos, new ChunkRenderer(chunk, this.WorldObj));

            this.Buffer.Upload();
        }
 public ChunkRenderer(Chunk chunk)
     : this(chunk, chunk.WorldObj)
 {
 }