This commit is contained in:
Jorijn van der Graaf 2026-01-28 01:07:41 +01:00
commit 819517d150
10 changed files with 1069 additions and 44 deletions

View file

@ -73,46 +73,46 @@ export namespace Crafter {
std::uint8_t a;
};
struct __attribute__((packed)) Vertex {
float x;
float y;
float z;
float w;
};
struct __attribute__((packed)) VertexUV {
float x;
float y;
float z;
float w;
// struct __attribute__((packed)) Vertex {
// float x;
// float y;
// float z;
// float w;
// };
// struct __attribute__((packed)) VertexUV {
// float x;
// float y;
// float z;
// float w;
float u;
float v;
// float u;
// float v;
float pad[2];
};
// float pad[2];
// };
struct __attribute__((packed)) VertexRGBA {
float x;
float y;
float z;
float w;
// struct __attribute__((packed)) VertexRGBA {
// float x;
// float y;
// float z;
// float w;
float r;
float g;
float b;
float a;
};
// float r;
// float g;
// float b;
// float a;
// };
struct __attribute__((packed)) HeightRGBA {
float height;
// struct __attribute__((packed)) HeightRGBA {
// float height;
float pad[3];
// float pad[3];
float r;
float g;
float b;
float a;
};
// float r;
// float g;
// float b;
// float a;
// };
struct FrameTime {
std::chrono::time_point<std::chrono::high_resolution_clock> now;