ovl-upload/tritex.c

85 lines
1.1 KiB
C
Raw Normal View History

2021-04-29 18:46:10 +02:00
#include "tritex.h"
SVECTOR modelTri_mesh[] = {
{ 0,20,0 },
{ 20,-20,20 },
{ 20,-20,-20 },
{ -20,-20,-20 },
{ -20,-20,20 }
};
SVECTOR modelTri_normal[] = {
0,-4096,0, 0,
-2714,1430,-2714, 0,
-2714,1430,2714, 0,
2714,1430,2714, 0,
2714,1430,-2714, 0
};
SVECTOR modelTri_uv[] = {
125,84, 0, 0,
84,125, 0, 0,
125,125, 0, 0,
42,84, 0, 0,
1,42, 0, 0,
1,84, 0, 0,
125,84, 0, 0,
84,84, 0, 0,
84,125, 0, 0,
1,84, 0, 0,
1,125, 0, 0,
42,125, 0, 0,
42,125, 0, 0,
84,125, 0, 0,
84,84, 0, 0,
42,1, 0, 0,
1,1, 0, 0,
1,42, 0, 0
};
CVECTOR modelTri_color[] = {
255,255,255, 0,
255,5,7, 0,
255,255,255, 0,
255,255,255, 0,
255,255,255, 0,
254,255,94, 0,
255,255,255, 0,
255,255,255, 0,
255,5,7, 0,
255,255,255, 0,
255,5,7, 0,
255,255,255, 0,
255,5,7, 0,
255,255,255, 0,
255,255,255, 0,
254,255,23, 0,
255,255,255, 0,
122,255,107, 0
};
int modelTri_index[18] = {
4,2,1,
0,4,1,
4,3,2,
1,2,0,
2,3,0,
0,3,4
};
TMESH modelTri = {
modelTri_mesh,
modelTri_normal,
modelTri_uv,
modelTri_color,
6
};
MESH Tri = {
&modelTri,
modelTri_index
};