26 lines
417 B
C
26 lines
417 B
C
|
|
//
|
||
|
|
// Created by slinky on 4/26/26.
|
||
|
|
//
|
||
|
|
|
||
|
|
#ifndef B_ENGINE_MESH_H
|
||
|
|
#define B_ENGINE_MESH_H
|
||
|
|
|
||
|
|
#include <vector>
|
||
|
|
|
||
|
|
#include "glad/gl.h"
|
||
|
|
|
||
|
|
class Mesh {
|
||
|
|
public:
|
||
|
|
Mesh() = default;
|
||
|
|
|
||
|
|
Mesh(const std::vector<float>& positions,
|
||
|
|
const std::vector<float>& uvs,
|
||
|
|
const std::vector<float>& normals,
|
||
|
|
const std::vector<float>& indices);
|
||
|
|
|
||
|
|
void bind();
|
||
|
|
private:
|
||
|
|
GLuint vao;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif //B_ENGINE_MESH_H
|