don't copy the model list. It can be very big - using pointer now,
garbage is not from the texture or object changes
This commit is contained in:
@@ -45,7 +45,7 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
std::vector<Modl*> vModls;
|
||||
std::vector<Modl*>* vModls;
|
||||
std::fstream fsMesh;
|
||||
std::vector<std::string> vTextures;
|
||||
|
||||
@@ -63,7 +63,7 @@ private:
|
||||
|
||||
|
||||
public:
|
||||
std::vector<Modl*> getModels() const;
|
||||
std::vector<Modl*>* getModels() const;
|
||||
std::vector<std::string> getTextureList() const;
|
||||
|
||||
};
|
||||
|
@@ -70,7 +70,7 @@ private:
|
||||
// ========================================
|
||||
|
||||
// data
|
||||
std::vector<Modl*> vModels;
|
||||
std::vector<Modl*>* vModels = NULL;
|
||||
std::vector<textureData*> vTextures;
|
||||
|
||||
// transformation =========================
|
||||
|
Reference in New Issue
Block a user