drm: add matrix_cubesphere
This commit is contained in:
parent
5716b2bc24
commit
e27e0ef0a4
1182
drm/matrix_cubesphere.cpp
Normal file
1182
drm/matrix_cubesphere.cpp
Normal file
File diff suppressed because it is too large
Load Diff
1306
model/cubesphere.h
Normal file
1306
model/cubesphere.h
Normal file
File diff suppressed because it is too large
Load Diff
20
model/model2.h
Normal file
20
model/model2.h
Normal 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;
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user