mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 16:22:32 +03:00
feat(ui): add CGCamera::HasModel
This commit is contained in:
2 files changed
+11
No files matched your search
@@ -38,6 +38,9 @@ bool ValidateCameraView(CVar* var, const char* oldValue, const char* value, void
|
||||
}
|
||||
|
||||
CGCamera::CGCamera() : CSimpleCamera(CWorld::GetNearClip(), CWorld::GetFarClip(), 90.0f * CMath::DEG2RAD) {
|
||||
this->m_model = nullptr;
|
||||
|
||||
this->m_target = 0;
|
||||
this->m_relativeTo = 0;
|
||||
|
||||
this->m_view = s_cameraView->GetInt();
|
||||
@@ -67,6 +70,10 @@ const WOWGUID& CGCamera::GetTarget() const {
|
||||
return this->m_target;
|
||||
}
|
||||
|
||||
int32_t CGCamera::HasModel() const {
|
||||
return this->m_model != nullptr;
|
||||
}
|
||||
|
||||
C33Matrix CGCamera::ParentToWorld() const {
|
||||
// TODO
|
||||
return {};
|
||||
|
||||
Reference in new issue
Block a user