diff options
Diffstat (limited to 'src/mapblock_mesh.h')
-rw-r--r-- | src/mapblock_mesh.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/mapblock_mesh.h b/src/mapblock_mesh.h index 2f1f3871d..39bc2f318 100644 --- a/src/mapblock_mesh.h +++ b/src/mapblock_mesh.h @@ -173,51 +173,6 @@ private: v3s16 m_camera_offset; }; - - -/* - This is used because CMeshBuffer::append() is very slow -*/ -struct PreMeshBuffer -{ - TileLayer layer; - std::vector<u16> indices; - std::vector<video::S3DVertex> vertices; - std::vector<video::S3DVertexTangents> tangent_vertices; -}; - -struct MeshCollector -{ - std::array<std::vector<PreMeshBuffer>, MAX_TILE_LAYERS> prebuffers; - bool m_use_tangent_vertices; - - MeshCollector(bool use_tangent_vertices): - m_use_tangent_vertices(use_tangent_vertices) - { - } - - void append(const TileSpec &material, - const video::S3DVertex *vertices, u32 numVertices, - const u16 *indices, u32 numIndices); - void append(const TileLayer &material, - const video::S3DVertex *vertices, u32 numVertices, - const u16 *indices, u32 numIndices, u8 layernum, - bool use_scale = false); - void append(const TileSpec &material, - const video::S3DVertex *vertices, u32 numVertices, - const u16 *indices, u32 numIndices, v3f pos, - video::SColor c, u8 light_source); - void append(const TileLayer &material, - const video::S3DVertex *vertices, u32 numVertices, - const u16 *indices, u32 numIndices, v3f pos, - video::SColor c, u8 light_source, u8 layernum, - bool use_scale = false); - /*! - * Colorizes all vertices in the collector. - */ - void applyTileColors(); -}; - /*! * Encodes light of a node. * The result is not the final color, but a |