168 lines
2.7 KiB
C
168 lines
2.7 KiB
C
SVECTOR modelCube_mesh[] = {
|
|
{ -128,128,128 },
|
|
{ 128,128,128 },
|
|
{ 128,128,-128 },
|
|
{ -128,128,-128 },
|
|
{ -128,-128,128 },
|
|
{ 128,-128,128 },
|
|
{ 128,-128,-128 },
|
|
{ -128,-128,-128 }
|
|
};
|
|
|
|
SVECTOR modelCube_normal[] = {
|
|
2365,-2365,-2365, 0,
|
|
-2365,-2365,-2365, 0,
|
|
-2365,-2365,2365, 0,
|
|
2365,-2365,2365, 0,
|
|
2365,2365,-2365, 0,
|
|
-2365,2365,-2365, 0,
|
|
-2365,2365,2365, 0,
|
|
2365,2365,2365, 0
|
|
};
|
|
|
|
CVECTOR modelCube_color[] = {
|
|
255,237,0, 0,
|
|
255,235,0, 0,
|
|
255,236,0, 0,
|
|
255,2,0, 0,
|
|
254,3,0, 0,
|
|
255,8,0, 0,
|
|
229,0,255, 0,
|
|
229,0,255, 0,
|
|
229,0,255, 0,
|
|
5,16,250, 0,
|
|
0,12,255, 0,
|
|
0,12,255, 0,
|
|
4,251,25, 0,
|
|
0,255,26, 0,
|
|
0,255,26, 0,
|
|
0,248,255, 0,
|
|
0,248,255, 0,
|
|
0,248,255, 0,
|
|
255,237,0, 0,
|
|
255,237,0, 0,
|
|
255,235,0, 0,
|
|
255,2,0, 0,
|
|
255,6,2, 0,
|
|
254,3,0, 0,
|
|
229,0,255, 0,
|
|
232,21,232, 0,
|
|
229,0,255, 0,
|
|
5,16,250, 0,
|
|
2,13,253, 0,
|
|
0,12,255, 0,
|
|
4,251,25, 0,
|
|
0,255,26, 0,
|
|
0,255,26, 0,
|
|
0,248,255, 0,
|
|
0,248,255, 0,
|
|
0,248,255, 0
|
|
};
|
|
|
|
int modelCube_index[] = {
|
|
0,2,3,
|
|
7,5,4,
|
|
4,1,0,
|
|
5,2,1,
|
|
2,7,3,
|
|
0,7,4,
|
|
0,1,2,
|
|
7,6,5,
|
|
4,5,1,
|
|
5,6,2,
|
|
2,6,7,
|
|
0,3,7
|
|
};
|
|
|
|
TMESH modelCube = {
|
|
modelCube_mesh,
|
|
modelCube_normal,
|
|
0,
|
|
modelCube_color,
|
|
12
|
|
};
|
|
|
|
SVECTOR modelCube1_mesh[] = {
|
|
{ -128,128,128 },
|
|
{ 128,128,128 },
|
|
{ 128,128,-128 },
|
|
{ -128,128,-128 },
|
|
{ -128,-128,128 },
|
|
{ 128,-128,128 },
|
|
{ 128,-128,-128 },
|
|
{ -128,-128,-128 }
|
|
};
|
|
|
|
SVECTOR modelCube1_normal[] = {
|
|
2365,-2365,-2365, 0,
|
|
-2365,-2365,-2365, 0,
|
|
-2365,-2365,2365, 0,
|
|
2365,-2365,2365, 0,
|
|
2365,2365,-2365, 0,
|
|
-2365,2365,-2365, 0,
|
|
-2365,2365,2365, 0,
|
|
2365,2365,2365, 0
|
|
};
|
|
|
|
CVECTOR modelCube1_color[] = {
|
|
255,237,0, 0,
|
|
255,235,0, 0,
|
|
255,236,0, 0,
|
|
255,2,0, 0,
|
|
254,3,0, 0,
|
|
255,8,0, 0,
|
|
229,0,255, 0,
|
|
229,0,255, 0,
|
|
229,0,255, 0,
|
|
5,16,250, 0,
|
|
0,12,255, 0,
|
|
0,12,255, 0,
|
|
4,251,25, 0,
|
|
0,255,26, 0,
|
|
0,255,26, 0,
|
|
0,248,255, 0,
|
|
0,248,255, 0,
|
|
0,248,255, 0,
|
|
255,237,0, 0,
|
|
255,237,0, 0,
|
|
255,235,0, 0,
|
|
255,2,0, 0,
|
|
255,6,2, 0,
|
|
254,3,0, 0,
|
|
229,0,255, 0,
|
|
232,21,232, 0,
|
|
229,0,255, 0,
|
|
5,16,250, 0,
|
|
2,13,253, 0,
|
|
0,12,255, 0,
|
|
4,251,25, 0,
|
|
0,255,26, 0,
|
|
0,255,26, 0,
|
|
0,248,255, 0,
|
|
0,248,255, 0,
|
|
0,248,255, 0
|
|
};
|
|
|
|
int modelCube1_index[] = {
|
|
0,2,3,
|
|
7,5,4,
|
|
4,1,0,
|
|
5,2,1,
|
|
2,7,3,
|
|
0,7,4,
|
|
0,1,2,
|
|
7,6,5,
|
|
4,5,1,
|
|
5,6,2,
|
|
2,6,7,
|
|
0,3,7
|
|
};
|
|
|
|
TMESH modelCube1 = {
|
|
modelCube1_mesh,
|
|
modelCube1_normal,
|
|
0,
|
|
modelCube1_color,
|
|
12
|
|
};
|