21 lines
324 B
C++
21 lines
324 B
C++
|
|
#pragma once
|
|
|
|
#include "array_buffer.hpp"
|
|
#include "vertex_array.hpp"
|
|
#include "../mesh.hpp"
|
|
|
|
namespace Graphics::GL {
|
|
struct Model {
|
|
VertexArray m_vao;
|
|
ArrayBuffer m_vbo;
|
|
ArrayBuffer m_ebo;
|
|
unsigned int m_size;
|
|
|
|
void bind() const;
|
|
void set(const Mesh& mesh, int usage);
|
|
void render(int mode) const;
|
|
};
|
|
};
|
|
|