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:
Anakin
2016-11-25 16:14:33 +01:00
parent e1e8e165fe
commit 5c5b9ac2f1
4 changed files with 40 additions and 36 deletions

View File

@@ -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;
};

View File

@@ -70,7 +70,7 @@ private:
// ========================================
// data
std::vector<Modl*> vModels;
std::vector<Modl*>* vModels = NULL;
std::vector<textureData*> vTextures;
// transformation =========================