tried making naming more uniform and implemented most of the opengl managers
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include <tuple>
|
||||
#include "../dynamic_read_buffers"
|
||||
|
||||
#include "assets/data_stores/texture_store.hpp"
|
||||
#include "assets/data/surface_properties.hpp"
|
||||
#include "util/enum_bitfield_operators.hpp"
|
||||
|
||||
namespace components::material
|
||||
namespace assets::material_components
|
||||
{
|
||||
using surface_properties = ::surface_properties;
|
||||
using surface_properties = surface_properties;
|
||||
using transparency = float;
|
||||
using ambient_color_texture = ::dynamic_texture_data;
|
||||
using diffuse_color_texture = ::dynamic_texture_data;
|
||||
using specular_color_texture = ::dynamic_texture_data;
|
||||
using shininess_texture = ::dynamic_texture_data;
|
||||
using alpha_texture = ::dynamic_texture_data;
|
||||
using bump_texture = ::dynamic_texture_data;
|
||||
using ambient_color_texture = texture_store::id_type;
|
||||
using diffuse_color_texture = texture_store::id_type;
|
||||
using specular_color_texture = texture_store::id_type;
|
||||
using shininess_texture = texture_store::id_type;
|
||||
using alpha_texture = texture_store::id_type;
|
||||
using bump_texture = texture_store::id_type;
|
||||
|
||||
namespace indices
|
||||
{
|
||||
@@ -56,4 +57,4 @@ constexpr inline auto count = std::tuple_size_v<all>;
|
||||
|
||||
} // namespace material_component
|
||||
|
||||
DEFINE_ENUM_BITFIELD_OPERATORS(components::material::flags)
|
||||
DEFINE_ENUM_BITFIELD_OPERATORS(assets::material_components::flags)
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
#include <tuple>
|
||||
#include "util/enum_bitfield_operators.hpp"
|
||||
|
||||
namespace components::mesh_vertex {
|
||||
namespace assets::mesh_vertex_components
|
||||
{
|
||||
|
||||
using position = std::array<float, 3>;
|
||||
using normal = std::array<float, 3>;
|
||||
@@ -35,6 +36,6 @@ enum class flags : std::uint8_t
|
||||
using all = std::tuple<position, normal, tex_coord, color, reflectance>;
|
||||
constexpr inline auto count = std::tuple_size_v<all>;
|
||||
|
||||
} // namespace components::mesh_vertex
|
||||
} // namespace mesh_vertex_components
|
||||
|
||||
DEFINE_ENUM_BITFIELD_OPERATORS(components::mesh_vertex::flags)
|
||||
DEFINE_ENUM_BITFIELD_OPERATORS(assets::mesh_vertex_components::flags)
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
#include <tuple>
|
||||
#include "util/enum_bitfield_operators.hpp"
|
||||
|
||||
namespace components::point_cloud_vertex {
|
||||
namespace assets::point_cloud_vertex_components
|
||||
{
|
||||
|
||||
using position = std::array<float, 3>;
|
||||
using normal = std::array<float, 3>;
|
||||
@@ -32,6 +33,6 @@ enum class flags : std::uint8_t
|
||||
using all = std::tuple<position, normal, color, reflectance>;
|
||||
constexpr inline auto count = std::tuple_size_v<all>;
|
||||
|
||||
} // namespace components::point_cloud_vertex
|
||||
} // namespace point_cloud_vertex_components
|
||||
|
||||
DEFINE_ENUM_BITFIELD_OPERATORS(components::point_cloud_vertex::flags)
|
||||
DEFINE_ENUM_BITFIELD_OPERATORS(assets::point_cloud_vertex_components::flags)
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
#include <cinttypes>
|
||||
#include "util/enum_bitfield_operators.hpp"
|
||||
|
||||
namespace components::texture {
|
||||
namespace assets::texture_components
|
||||
{
|
||||
|
||||
using red = std::uint8_t;
|
||||
using green = std::uint8_t;
|
||||
@@ -24,6 +25,6 @@ enum class flags : std::uint8_t
|
||||
using all = std::tuple<red, green, blue, luminance>;
|
||||
constexpr inline auto count = std::tuple_size_v<all>;
|
||||
|
||||
} // namespace components::texture
|
||||
} // namespace texture_components
|
||||
|
||||
DEFINE_ENUM_BITFIELD_OPERATORS(components::texture::flags)
|
||||
DEFINE_ENUM_BITFIELD_OPERATORS(assets::texture_components::flags)
|
||||
|
||||
Reference in New Issue
Block a user