27 lines
402 B
C++
27 lines
402 B
C++
#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{};
|
|
};
|
|
|
|
}
|