1
0
Fork 0
mirror of https://git.coom.tech/drummyfish/small3dlib.git synced 2024-12-22 01:26:17 +01:00
small3dlib/programs/carModel.h

105 lines
3 KiB
C
Raw Normal View History

2019-06-18 01:41:02 +02:00
#ifndef CAR_MODEL_H
#define CAR_MODEL_H
#define CAR_VERTEX_COUNT 12
const S3L_Unit carVertices[CAR_VERTEX_COUNT * 3] = {
2019-06-19 18:48:08 +02:00
-51, 14, -108, // 0
-31, 103, -92, // 3
-31, 103, -3, // 6
51, 14, -108, // 9
31, 103, -92, // 12
31, 103, -3, // 15
-48, 59, 31, // 18
48, 59, 31, // 21
2019-06-25 19:03:09 +02:00
-40, 52, 86, // 24
2019-06-19 18:48:08 +02:00
-44, 14, 86, // 27
44, 14, 86, // 30
2019-06-25 19:03:09 +02:00
40, 52, 86 // 33
2019-06-18 01:41:02 +02:00
}; // carVertices
#define CAR_TRIANGLE_COUNT 18
const S3L_Index carTriangleIndices[CAR_TRIANGLE_COUNT * 3] = {
4, 3, 5, // 0
2, 7, 6, // 3
1, 0, 4, // 6
7, 5, 3, // 9
2, 4, 5, // 12
2, 0, 1, // 15
9, 6, 8, // 18
7, 8, 6, // 21
3, 4, 0, // 24
2019-06-25 19:03:09 +02:00
9, 11, 10, // 27
2019-06-18 01:41:02 +02:00
7, 3, 10, // 30
0, 6, 9, // 33
6, 0, 2, // 36
10, 11, 7, // 39
2, 5, 7, // 42
2, 1, 4, // 45
7, 11, 8, // 48
2019-06-25 19:03:09 +02:00
9, 8, 11 // 51
2019-06-18 01:41:02 +02:00
}; // carTriangleIndices
#define CAR_UV_COUNT 24
const S3L_Unit carUVs[CAR_UV_COUNT * 2] = {
451, 476, // 0
459, 509, // 2
422, 477, // 4
422, 476, // 6
409, 451, // 8
409, 476, // 10
451, 476, // 12
484, 476, // 14
451, 451, // 16
409, 492, // 18
422, 451, // 20
422, 477, // 22
459, 509, // 24
451, 476, // 26
398, 509, // 28
409, 492, // 30
398, 493, // 32
397, 476, // 34
484, 451, // 36
2019-06-25 19:03:09 +02:00
386, 476, // 38
397, 451, // 40
386, 451, // 42
398, 509, // 44
398, 493 // 46
2019-06-18 01:41:02 +02:00
}; // carUVs
#define CAR_UV_INDEX_COUNT 18
const S3L_Index carUVIndices[CAR_UV_INDEX_COUNT * 3] = {
0, 1, 2, // 0
3, 4, 5, // 3
6, 7, 8, // 6
9, 2, 1, // 9
3, 8, 10, // 12
11, 12, 13, // 15
14, 15, 16, // 18
4, 17, 5, // 21
18, 8, 7, // 24
2019-06-25 19:03:09 +02:00
19, 20, 21, // 27
9, 1, 22, // 30
2019-06-18 01:41:02 +02:00
12, 15, 14, // 33
15, 12, 11, // 36
2019-06-25 19:03:09 +02:00
22, 23, 9, // 39
2019-06-18 01:41:02 +02:00
3, 10, 4, // 42
3, 6, 8, // 45
2019-06-25 19:03:09 +02:00
4, 20, 17, // 48
19, 17, 20 // 51
2019-06-18 01:41:02 +02:00
}; // carUVIndices
S3L_Model3D carModel;
void carModelInit()
{
S3L_initModel3D(
carVertices,
CAR_VERTEX_COUNT,
carTriangleIndices,
CAR_TRIANGLE_COUNT,
&carModel);
}
#endif // guard