faster method for texture handling
This commit is contained in:
@@ -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;
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user