adding gfx and ui stuff

This commit is contained in:
Daniel Ledda
2026-06-04 18:22:30 +02:00
parent d676c50961
commit 4dfac3f82f
48 changed files with 26734 additions and 3 deletions

25
gfx/Mesh.h Normal file
View 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