summaryrefslogtreecommitdiff
path: root/src/vk/static_model.cpp
diff options
context:
space:
mode:
authorFrederico Linhares <fred@linhares.blue>2024-02-06 17:37:20 -0300
committerFrederico Linhares <fred@linhares.blue>2024-03-23 19:12:24 -0300
commitbf240d7eeaa89657462b705849fde56e54e237db (patch)
tree0bd3f9826dd2d4d88f9da1ec77ba8f1b27b41be1 /src/vk/static_model.cpp
parent8d7e40e0b2b592efc7bcf7101ee362ec61f1989f (diff)
refa Use quaternion for orientation
Diffstat (limited to 'src/vk/static_model.cpp')
-rw-r--r--src/vk/static_model.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vk/static_model.cpp b/src/vk/static_model.cpp
index a89d79a..ef53155 100644
--- a/src/vk/static_model.cpp
+++ b/src/vk/static_model.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright 2022-2023 Frederico de Oliveira Linhares
+ * Copyright 2022-2024 Frederico de Oliveira Linhares
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -148,11 +148,11 @@ namespace VK
StaticModel::StaticModel(
std::shared_ptr<StaticMesh> static_mesh,
std::shared_ptr<Texture> texture, std::shared_ptr<glm::vec3> position,
- std::shared_ptr<glm::vec3> rotation):
+ std::shared_ptr<glm::quat> orientation):
static_mesh{static_mesh},
texture{texture},
position{position},
- rotation{rotation}
+ orientation{orientation}
{
loader.execute(this);
}