tried making naming more uniform and implemented most of the opengl managers
This commit is contained in:
@@ -13,11 +13,11 @@ namespace rendering::requirements::mesh
|
||||
struct type
|
||||
{
|
||||
shading::features::mesh::indices::type shader_program_requirement_index{};
|
||||
components::mesh_vertex::flags vertex_requirements{
|
||||
components::mesh_vertex::flags::none
|
||||
mesh_vertex_components::flags vertex_requirements{
|
||||
mesh_vertex_components::flags::none
|
||||
};
|
||||
components::material::flags material_requirements{
|
||||
components::material::flags::none
|
||||
material_components::flags material_requirements{
|
||||
material_components::flags::none
|
||||
};
|
||||
};
|
||||
|
||||
@@ -34,13 +34,13 @@ enum class flags : std::uint8_t
|
||||
|
||||
constexpr inline auto position = type{
|
||||
.shader_program_requirement_index = shading::features::mesh::indices::position,
|
||||
.vertex_requirements = components::mesh_vertex::flags::position
|
||||
.vertex_requirements = mesh_vertex_components::flags::position
|
||||
};
|
||||
|
||||
constexpr inline auto lit = type{
|
||||
.shader_program_requirement_index = shading::features::mesh::indices::lit,
|
||||
.vertex_requirements = components::mesh_vertex::flags::normal,
|
||||
.material_requirements = components::material::flags::surface_properties
|
||||
.vertex_requirements = mesh_vertex_components::flags::normal,
|
||||
.material_requirements = material_components::flags::surface_properties
|
||||
};
|
||||
|
||||
constexpr inline auto point = type{
|
||||
@@ -49,8 +49,8 @@ constexpr inline auto point = type{
|
||||
|
||||
constexpr inline auto textured = type{
|
||||
.shader_program_requirement_index = shading::features::mesh::indices::textured,
|
||||
.vertex_requirements = components::mesh_vertex::flags::tex_coord,
|
||||
.material_requirements = components::material::flags::texture,
|
||||
.vertex_requirements = mesh_vertex_components::flags::tex_coord,
|
||||
.material_requirements = material_components::flags::texture,
|
||||
};
|
||||
|
||||
constexpr inline auto uniform_color = type{
|
||||
@@ -59,7 +59,7 @@ constexpr inline auto uniform_color = type{
|
||||
|
||||
constexpr inline auto uniform_alpha = type{
|
||||
.shader_program_requirement_index = shading::features::mesh::indices::uniform_alpha,
|
||||
.material_requirements = components::material::flags::transparency
|
||||
.material_requirements = material_components::flags::transparency
|
||||
};
|
||||
|
||||
constexpr inline auto all = std::array{
|
||||
|
||||
Reference in New Issue
Block a user