drm: add matrix_cubesphere

This commit is contained in:
Zack Buhman 2025-10-30 10:53:46 -05:00
parent 5716b2bc24
commit e27e0ef0a4
3 changed files with 2508 additions and 0 deletions

1182
drm/matrix_cubesphere.cpp Normal file

File diff suppressed because it is too large Load Diff

1306
model/cubesphere.h Normal file

File diff suppressed because it is too large Load Diff

20
model/model2.h Normal file
View File

@ -0,0 +1,20 @@
struct index_ptn {
uint16_t position;
uint16_t texture;
uint16_t normal;
};
typedef index_ptn triangle_t[3];
struct object {
const triangle_t * triangle;
const int triangle_count;
};
struct model {
const vec3 * position;
const vec2 * texture;
const vec3 * normal;
const struct object ** object;
const int object_count;
};