Refactor SubGeometry to use a vector for storage

+ Use memcpy to populate subgeometry data
This commit is contained in:
Daniel Evans 2014-08-10 20:09:54 +01:00
parent d0188880d3
commit d2e19fbdb3
4 changed files with 10 additions and 16 deletions

View file

@ -93,10 +93,10 @@ public:
float ambientIntensity;
};
struct SubGeometry {
struct SubGeometry {
GLuint start = 0;
size_t material;
uint32_t* indices;
size_t material;
std::vector<uint32_t> indices;
size_t numIndices;
};