Silence some warnings

This commit is contained in:
Georg Hagen
2024-07-02 21:29:15 +02:00
parent c008c98311
commit fa51f868b7
10 changed files with 36 additions and 13 deletions

View File

@@ -16,7 +16,7 @@ namespace OpenVulkano
ArCameraController::ArCameraController(Scene::Camera* camera, const std::shared_ptr<AR::ArSession>& session, const Math::Matrix4f& registration)
: CameraController(camera), m_arSession(session), m_registration(registration), m_updated(false)
{
Init();
CommonInit();
}
ArCameraController::~ArCameraController()
@@ -24,7 +24,7 @@ namespace OpenVulkano
if (m_arSession) Close();
}
void ArCameraController::Init()
void ArCameraController::CommonInit()
{
//m_registration = Math::Utils::translate(Math::Vector3f_SIMD(0.0f, 0.0f, -2.5f)) * Math::Utils::rotate(Math::Matrix4f(1), M_PI_2f, {0,1,0});
if (m_arSession)
@@ -70,7 +70,7 @@ namespace OpenVulkano
CameraController::Init(camera);
m_arSession = session;
m_registration = registration;
Init();
CommonInit();
}
void ArCameraController::Tick()