mirror of
https://github.com/rwengine/openrw.git
synced 2025-05-01 06:18:04 +03:00
Refactor SubGeometry to use a vector for storage
+ Use memcpy to populate subgeometry data
This commit is contained in:
parent
d0188880d3
commit
d2e19fbdb3
4 changed files with 10 additions and 16 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue