26 lines
462 B
C
26 lines
462 B
C
#ifndef LEDDA_MESH_H
|
|
#define LEDDA_MESH_H
|
|
|
|
#include "../vendor/glad/glad.h"
|
|
#include "../core.h"
|
|
#include "geometry.h"
|
|
|
|
typedef struct {
|
|
uint32 vao;
|
|
union {
|
|
struct {
|
|
uint32 xyz;
|
|
uint32 uv;
|
|
uint32 normals;
|
|
uint32 elements;
|
|
} buffers;
|
|
uint32 vbos[4];
|
|
};
|
|
uint64 num_indices;
|
|
} Mesh;
|
|
|
|
Mesh createMesh(const char* obj_file);
|
|
Mesh createMeshFromShape(const Shape* shape);
|
|
|
|
#endif
|