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

@@ -15,7 +15,7 @@ std::error_code zgl::mesh_data::build_from(
const GLsizei stride,
const std::span<const ztu::u32> index_buffer,
const ztu::u32 material_id,
const components::mesh_vertex::flags components,
const mesh_vertex_components::flags components,
mesh_data& data
) {
if (not std::ranges::all_of(component_types, type_utils::is_valid_type))

View File

@@ -9,7 +9,7 @@ inline mesh_data::mesh_data(
const GLuint index_vbo_id,
const GLuint vao_id,
const ztu::u32 material_id,
const components::mesh_vertex::flags components,
const mesh_vertex_components::flags components,
const GLsizei index_count
) :
m_handle{
@@ -38,7 +38,7 @@ inline mesh_data& mesh_data::operator=(mesh_data&& other) noexcept
other.m_vertex_vbo_id = 0;
other.m_index_vbo_id = 0;
other.m_material_id = 0;
other.m_component_types = components::mesh_vertex::flags::none;
other.m_component_types = mesh_vertex_components::flags::none;
}
return *this;
@@ -56,7 +56,7 @@ inline mesh_data::mesh_data(mesh_data&& other) noexcept :
other.m_vertex_vbo_id = 0;
other.m_index_vbo_id = 0;
other.m_material_id = 0;
other.m_component_types = components::mesh_vertex::flags::none;
other.m_component_types = mesh_vertex_components::flags::none;
}
inline mesh_data::~mesh_data() {
@@ -77,7 +77,7 @@ inline mesh_handle mesh_data::handle() const
return m_handle;
}
inline components::mesh_vertex::flags mesh_data::components() const
inline mesh_vertex_components::flags mesh_data::components() const
{
return m_component_types;
}

View File

@@ -59,7 +59,7 @@ inline point_cloud_handle point_cloud_data::handle() const
return m_handle;
}
inline components::point_cloud_vertex::flags point_cloud_data::components() const
inline point_cloud_vertex_components::flags point_cloud_data::components() const
{
return m_component_types;
}