adding gfx and ui stuff
This commit is contained in:
25
gfx/Mesh.h
Normal file
25
gfx/Mesh.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user