1
0
Fork 0
mirror of https://git.coom.tech/drummyfish/small3dlib.git synced 2024-11-21 20:39:57 +01:00
small3dlib/programs/plantModel.h

57 lines
1.4 KiB
C
Raw Normal View History

2019-06-08 14:26:13 +02:00
#ifndef PLANT_MODEL_H
#define PLANT_MODEL_H
#define PLANT_VERTEX_COUNT 8
const S3L_Unit plantVertices[PLANT_VERTEX_COUNT * 3] = {
-1604, -1546, 0, // 0
1604, -1546, 0, // 3
-1604, 2293, 0, // 6
1604, 2293, 0, // 9
0, -1546, -1604, // 12
0, -1546, 1604, // 15
0, 2293, -1604, // 18
0, 2293, 1604 // 21
}; // plantVertices
#define PLANT_TRIANGLE_COUNT 4
const S3L_Index plantTriangleIndices[PLANT_TRIANGLE_COUNT * 3] = {
1, 2, 0, // 0
5, 6, 4, // 3
1, 3, 2, // 6
5, 7, 6 // 9
}; // plantTriangleIndices
#define PLANT_UV_COUNT 8
const S3L_Unit plantUVs[PLANT_UV_COUNT * 2] = {
512, 512, // 0
0, 0, // 2
0, 512, // 4
512, 512, // 6
0, 0, // 8
0, 512, // 10
512, 0, // 12
512, 0 // 14
}; // plantUVs
#define PLANT_UV_INDEX_COUNT 4
const S3L_Index plantUVIndices[PLANT_UV_INDEX_COUNT * 3] = {
0, 1, 2, // 0
3, 4, 5, // 3
0, 6, 1, // 6
3, 7, 4 // 9
}; // plantUVIndices
2019-06-17 21:51:23 +02:00
S3L_Model3D plantModel;
2022-05-26 19:54:30 +02:00
void plantModelInit(void)
2019-06-08 14:26:13 +02:00
{
2021-12-28 23:25:22 +01:00
S3L_model3DInit(
2019-06-17 21:51:23 +02:00
plantVertices,
PLANT_VERTEX_COUNT,
plantTriangleIndices,
PLANT_TRIANGLE_COUNT,
&plantModel);
}
2019-06-08 14:26:13 +02:00
#endif // guard