add MeshData
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "typedefs.hpp"
|
||||
|
||||
struct vattr {
|
||||
ubyte size;
|
||||
};
|
||||
#include "typedefs.hpp"
|
||||
#include "MeshData.hpp"
|
||||
|
||||
class Mesh {
|
||||
unsigned int vao;
|
||||
@@ -15,6 +13,7 @@ class Mesh {
|
||||
size_t indices;
|
||||
size_t vertexSize;
|
||||
public:
|
||||
Mesh(const MeshData& data);
|
||||
Mesh(const float* vertexBuffer, size_t vertices, const int* indexBuffer, size_t indices, const vattr* attrs);
|
||||
Mesh(const float* vertexBuffer, size_t vertices, const vattr* attrs) :
|
||||
Mesh(vertexBuffer, vertices, nullptr, 0, attrs) {};
|
||||
|
||||
Reference in New Issue
Block a user