tried making naming more uniform and implemented most of the opengl managers

This commit is contained in:
ZY4N
2025-03-25 02:22:44 +01:00
parent c609d49f0d
commit 71ea2d9237
155 changed files with 4097 additions and 2434 deletions

View File

@@ -4,9 +4,9 @@
#include <algorithm>
void estimate_normals(
std::span<const components::mesh_vertex::position> vertices,
std::span<const mesh_vertex_components::position> vertices,
std::span<const std::array<ztu::u32, 3>> triangles,
std::vector<components::mesh_vertex::normal>& normals
std::vector<mesh_vertex_components::normal>& normals
) {
normals.resize(vertices.size());
@@ -59,7 +59,7 @@ void estimate_normals(
}
}
using normal_component_type = components::mesh_vertex::normal::component_type;
using normal_component_type = mesh_vertex_components::normal::component_type;
constexpr auto epsilon = std::numeric_limits<normal_component_type>::epsilon();
for (auto& [ x, y, z ] : normals)