...
This commit is contained in:
15
include/opengl/metadata/shader_program_metadata.hpp
Normal file
15
include/opengl/metadata/shader_program_metadata.hpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include "opengl/shading/model_geometry.hpp"
|
||||
#include "opengl/shading/features/generic_features.hpp"
|
||||
|
||||
namespace zgl {
|
||||
|
||||
struct shader_program_metadata
|
||||
{
|
||||
shading::model_geometry::types geometry;
|
||||
shading::features::generic::type static_enabled{};
|
||||
shading::features::generic::type dynamic_enable{};
|
||||
};
|
||||
|
||||
}
|
||||
@@ -1,7 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "opengl/shading/model_geometry.hpp"
|
||||
#include "opengl/shading/shader_stage.hpp"
|
||||
#include "opengl/shading/features/generic_features.hpp"
|
||||
|
||||
namespace zgl
|
||||
|
||||
13
include/opengl/metadata/texture_metadata.hpp
Normal file
13
include/opengl/metadata/texture_metadata.hpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include "assets/components/texture_components.hpp"
|
||||
|
||||
namespace zgl
|
||||
{
|
||||
|
||||
struct texture_metadata
|
||||
{
|
||||
components::texture::flags components;
|
||||
};
|
||||
|
||||
}
|
||||
26
include/opengl/metadata/vertex_buffer_metadata.hpp
Normal file
26
include/opengl/metadata/vertex_buffer_metadata.hpp
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include "assets/components/texture_components.hpp"
|
||||
#include <array>
|
||||
|
||||
#include "GL/glew.h"
|
||||
|
||||
namespace zgl
|
||||
{
|
||||
|
||||
struct vertex_buffer_metadata
|
||||
{
|
||||
static constexpr std::size_t max_component_count = 8;
|
||||
|
||||
struct component
|
||||
{
|
||||
GLenum type{ GL_INVALID_ENUM };
|
||||
GLint length{ 0 };
|
||||
};
|
||||
|
||||
std::array<component, max_component_count> components{};
|
||||
GLuint component_count{};
|
||||
GLsizei stride{};
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user