initial commit
This commit is contained in:
26
src/Mesh.h
Normal file
26
src/Mesh.h
Normal file
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// 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
|
||||
Reference in New Issue
Block a user