glClear is causing stack corrpution

This commit is contained in:
2023-11-19 01:16:41 -06:00
parent 26b5ec2c7f
commit 830694ee0a
22 changed files with 503 additions and 37 deletions

View File

@@ -123,6 +123,12 @@ glm::quat SceneItemTransform::getLocalRotation() {
return this->localRotation;
}
void SceneItemTransform::setLocalTransform(const glm::mat4 transform) {
this->transformLocal = transform;
this->updateLocalValuesFromLocalTransform();
this->updateWorldTransformFromLocalTransform();
}
void SceneItemTransform::setWorldTransform(const glm::mat4 transform) {
this->transformWorld = transform;
this->updateLocalTransformFromWorldTransform();

View File

@@ -106,6 +106,13 @@ namespace Dawn {
* @return Local rotation of this item.
*/
glm::quat getLocalRotation();
/**
* Sets the transform of this item within local space (relative to parent)
*
* @param transform Transform of this item in local space.
*/
void setLocalTransform(const glm::mat4 transform);
/**
* Sets the transform of this item within world space (relative to scene