summaryrefslogtreecommitdiffstats
path: root/src/math/Matrix.h
diff options
context:
space:
mode:
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){