124 lines
2.5 KiB
C

const vertex_position cube_position[] = {
{-1.000000f, -1.000000f, 1.000000f},
{-1.000000f, 1.000000f, 1.000000f},
{-1.000000f, -1.000000f, -1.000000f},
{-1.000000f, 1.000000f, -1.000000f},
{1.000000f, -1.000000f, 1.000000f},
{1.000000f, 1.000000f, 1.000000f},
{1.000000f, -1.000000f, -1.000000f},
{1.000000f, 1.000000f, -1.000000f},
};
const vertex_texture cube_texture[] = {
{0.625000f, 0.000000f},
{0.375000f, 0.250000f},
{0.375000f, 0.000000f},
{0.625000f, 0.250000f},
{0.375000f, 0.500000f},
{0.625000f, 0.500000f},
{0.375000f, 0.750000f},
{0.625000f, 0.750000f},
{0.375000f, 1.000000f},
{0.125000f, 0.750000f},
{0.125000f, 0.500000f},
{0.875000f, 0.500000f},
{0.625000f, 1.000000f},
{0.875000f, 0.750000f},
};
const vertex_normal cube_normal[] = {
{-1.000000f, -0.000000f, -0.000000f},
{-0.000000f, -0.000000f, -1.000000f},
{1.000000f, -0.000000f, -0.000000f},
{-0.000000f, -0.000000f, 1.000000f},
{-0.000000f, -1.000000f, -0.000000f},
{-0.000000f, 1.000000f, -0.000000f},
};
const union triangle cube_Cube_triangle[] = {
{ .v = {
{1, 0, 0},
{2, 1, 0},
{0, 2, 0},
}},
{ .v = {
{3, 3, 1},
{6, 4, 1},
{2, 1, 1},
}},
{ .v = {
{7, 5, 2},
{4, 6, 2},
{6, 4, 2},
}},
{ .v = {
{5, 7, 3},
{0, 8, 3},
{4, 6, 3},
}},
{ .v = {
{6, 4, 4},
{0, 9, 4},
{2, 10, 4},
}},
{ .v = {
{3, 11, 5},
{5, 7, 5},
{7, 5, 5},
}},
{ .v = {
{1, 0, 0},
{3, 3, 0},
{2, 1, 0},
}},
{ .v = {
{3, 3, 1},
{7, 5, 1},
{6, 4, 1},
}},
{ .v = {
{7, 5, 2},
{5, 7, 2},
{4, 6, 2},
}},
{ .v = {
{5, 7, 3},
{1, 12, 3},
{0, 8, 3},
}},
{ .v = {
{6, 4, 4},
{4, 6, 4},
{0, 9, 4},
}},
{ .v = {
{3, 11, 5},
{1, 13, 5},
{5, 7, 5},
}},
};
const union quadrilateral cube_Cube_quadrilateral[] = {
};
const struct object cube_Cube = {
.triangle = &cube_Cube_triangle[0],
.quadrilateral = &cube_Cube_quadrilateral[0],
.triangle_count = 12,
.quadrilateral_count = 0,
.material = 0,
};
const struct object * cube_object[] = {
&cube_Cube,
};
const struct model cube_model = {
.position = cube_position,
.texture = cube_texture,
.normal = cube_normal,
.object = cube_object,
.object_count = 1
};