summaryrefslogtreecommitdiff
path: root/src/blu_cat/gra/skeletal_mesh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/blu_cat/gra/skeletal_mesh.cpp')
-rw-r--r--src/blu_cat/gra/skeletal_mesh.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/blu_cat/gra/skeletal_mesh.cpp b/src/blu_cat/gra/skeletal_mesh.cpp
index 89d701b..1beed1a 100644
--- a/src/blu_cat/gra/skeletal_mesh.cpp
+++ b/src/blu_cat/gra/skeletal_mesh.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright 2022-2024 Frederico de Oliveira Linhares
+ * Copyright 2022-2025 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.
@@ -16,7 +16,7 @@
#include "skeletal_mesh.hpp"
-#include "binary_reader.hpp"
+#include "../com/binary_reader.hpp"
#include "../com/command.hpp"
#include "../int/core.hpp"
#include "skeletal_mesh_vertex.hpp"
@@ -72,7 +72,7 @@ load_mesh(void *obj)
for(auto ii{0}; ii < BluCat::GRA::SKELETAL_MESH_MAX_NUM_OF_INFLUENCING_BONES;
ii++)
- vertexes[i].bone_weights[ii] = input.read_float();
+ vertexes[i].bone_weights[ii] = input.read_f32();
}
void *vertexes_data{vertexes.data()};
@@ -112,10 +112,10 @@ load_mesh(void *obj)
self->mesh->animations.resize(num_animations);
for(uint32_t i{0}; i < num_animations; i++)
{
- auto duration{input.read_double()};
+ auto duration{input.read_f64()};
self->mesh->animations[i].final_time = (float)duration;
- auto ticks_per_second{input.read_double()};
+ auto ticks_per_second{input.read_f64()};
auto num_bone_transforms{input.read_ui32()};
std::vector<BluCat::GRA::BoneTransform> *bone_transforms =
@@ -133,7 +133,7 @@ load_mesh(void *obj)
position_key_index++)
{
auto vec3{input.read_vec3()};
- auto timestamp{input.read_double()};
+ auto timestamp{input.read_f64()};
positions->key_frames.emplace_back(
vec3, static_cast<float>(timestamp));
}
@@ -145,7 +145,7 @@ load_mesh(void *obj)
rotation_key_index++)
{
auto quat{input.read_quat()};
- auto timestamp{input.read_double()};
+ auto timestamp{input.read_f64()};
rotations->key_frames.emplace_back(
quat, static_cast<float>(timestamp));
}
@@ -157,7 +157,7 @@ load_mesh(void *obj)
scaling_key_index++)
{
auto vec3{input.read_vec3()};
- auto timestamp{input.read_double()};
+ auto timestamp{input.read_f64()};
scales->key_frames.emplace_back(vec3, static_cast<float>(timestamp));
}
}