faster method for texture handling

This commit is contained in:
Anakin
2016-11-13 15:46:52 +01:00
parent 0f379ba04a
commit 806024f4f9
3 changed files with 75 additions and 52 deletions

View File

@@ -21,7 +21,7 @@ struct ChunkHeader {
};
struct Segment {
std::string texture = "";
std::uint32_t textureIndex = 0;
float* vertex = nullptr;
float* uv = nullptr;
std::uint32_t* mesh = nullptr;
@@ -65,5 +65,6 @@ private:
public:
std::vector<Modl*> getModels() const;
std::vector<std::string> getTextureList() const;
};