mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 04:03:59 +02:00
add destructors for arrays in Hair
This commit is contained in:
parent
2ca673175a
commit
1e52232a4c
2 changed files with 12 additions and 0 deletions
|
@ -90,6 +90,17 @@ Hair::Hair(int strands,
|
|||
}
|
||||
}
|
||||
|
||||
Hair::~Hair() {
|
||||
delete[] _hairPosition;
|
||||
delete[] _hairOriginalPosition;
|
||||
delete[] _hairLastPosition;
|
||||
delete[] _hairQuadDelta;
|
||||
delete[] _hairNormals;
|
||||
delete[] _hairColors;
|
||||
delete[] _hairIsMoveable;
|
||||
delete[] _hairConstraints;
|
||||
}
|
||||
|
||||
const float SOUND_THRESHOLD = 40.0f;
|
||||
|
||||
void Hair::simulate(float deltaTime) {
|
||||
|
|
|
@ -37,6 +37,7 @@ public:
|
|||
float radius = DEFAULT_HAIR_RADIUS,
|
||||
float linkLength = DEFAULT_HAIR_LINK_LENGTH,
|
||||
float hairThickness = DEFAULT_HAIR_THICKNESS);
|
||||
~Hair();
|
||||
void simulate(float deltaTime);
|
||||
void render();
|
||||
void setAcceleration(const glm::vec3& acceleration) { _acceleration = acceleration; }
|
||||
|
|
Loading…
Reference in a new issue