summaryrefslogtreecommitdiffstats
path: root/src/math/Matrix.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-12 20:07:37 +0200
committeraap <aap@papnet.eu>2019-06-12 20:11:17 +0200
commita9517c01afad50d90c3afdee0fdc6238158378f2 (patch)
tree9226e392b0869576faccd8a3d66d68490d648417 /src/math/Matrix.h
parentMerge branch 'master' into master (diff)
downloadre3-a9517c01afad50d90c3afdee0fdc6238158378f2.tar
re3-a9517c01afad50d90c3afdee0fdc6238158378f2.tar.gz
re3-a9517c01afad50d90c3afdee0fdc6238158378f2.tar.bz2
re3-a9517c01afad50d90c3afdee0fdc6238158378f2.tar.lz
re3-a9517c01afad50d90c3afdee0fdc6238158378f2.tar.xz
re3-a9517c01afad50d90c3afdee0fdc6238158378f2.tar.zst
re3-a9517c01afad50d90c3afdee0fdc6238158378f2.zip
Diffstat (limited to '')
-rw-r--r--src/math/Matrix.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/math/Matrix.h b/src/math/Matrix.h
index cc15da09..10255af1 100644
--- a/src/math/Matrix.h
+++ b/src/math/Matrix.h
@@ -16,26 +16,26 @@ public:
m_hasRwMatrix = false;
*this = m;
}
- CMatrix(RwMatrix *matrix, bool attach){
+ CMatrix(RwMatrix *matrix, bool owner = false){
m_attachment = nil;
- Attach(matrix, attach);
+ Attach(matrix, owner);
}
~CMatrix(void){
if(m_hasRwMatrix && m_attachment)
RwMatrixDestroy(m_attachment);
}
- void Attach(RwMatrix *matrix, bool attach){
+ void Attach(RwMatrix *matrix, bool owner = false){
if(m_hasRwMatrix && m_attachment)
RwMatrixDestroy(m_attachment);
m_attachment = matrix;
- m_hasRwMatrix = attach;
+ m_hasRwMatrix = owner;
Update();
}
- void AttachRW(RwMatrix *matrix, bool attach){
+ void AttachRW(RwMatrix *matrix, bool owner = false){
if(m_hasRwMatrix && m_attachment)
RwMatrixDestroy(m_attachment);
m_attachment = matrix;
- m_hasRwMatrix = attach;
+ m_hasRwMatrix = owner;
UpdateRW();
}
void Detach(void){