implemented CCutsceneHead and dependencies

This commit is contained in:
aap committed 2019-06-12 20:11:17 +02:00
1 parent cb5ec27747
commit a9517c01af
21 files changed
+374 -20

No files matched your search

+6 -6
View File
@@ -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){