Exemplo n.º 1
0
 public void RemoveMesh(ChunkMesh mesh)
 {
     if (mesh.Transparent) _transparentMeshes.Remove(mesh);
     else _solidMeshes.Remove(mesh);
 }
Exemplo n.º 2
0
 public void AddMesh(ChunkMesh mesh)
 {
     if (mesh.Transparent) _transparentMeshes.Add(mesh);
     else _solidMeshes.Add(mesh);
 }
Exemplo n.º 3
0
 public void BuildVertices(CubeVertex[] buffer, GraphicsDevice graphics, CubeStorage store)
 {
     ChunkMesh currentMesh;
     int i = 0;
     while (i < HEIGHT)
     {
         currentMesh = new ChunkMesh(i, ref Position);
         currentMesh.BuildVertices(buffer, graphics, this, store);
         if(!currentMesh.Empty) Meshes.Add(currentMesh);
         i += Chunk.WIDTH;
     }
 }