-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbishop_black.h
60 lines (53 loc) · 1.73 KB
/
bishop_black.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
3D model generated by Jo Map Editor v6.1
*/
#ifndef __3D_MODELBishopBlack_H__
# define __3D_MODELBishopBlack_H__
static POINT PointBishopBlack[] =
{
{-327680, -1191563, -327680},
{-327680, -1191563, 327680},
{-327680, 0, -327680},
{-327680, 0, 327680},
{327680, -1191563, -327680},
{327680, -1191563, 327680},
{327680, 0, -327680},
{327680, 0, 327680},
};
static POLYGON PolygonBishopBlack[] =
{
{{-65536, 0, 0}, {1, 3, 2, 0}},
{{0, 0, 0}, {3, 7, 6, 2}},
{{0, 0, 65536}, {7, 5, 4, 6}},
{{0, 65536, 0}, {5, 1, 0, 4}},
{{65536, 0, 65536}, {0, 2, 6, 4}},
{{0, 65536, 0}, {5, 7, 3, 1}},
};
static ATTR AttributeBishopBlack[] =
{
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
};
jo_3d_mesh MeshBishopBlack =
{
.data =
{
PointBishopBlack,
8,
PolygonBishopBlack,
6,
AttributeBishopBlack
}
};
/* Call this function in you code to display all objects */
static __jo_force_inline void display_bishop_black_mesh(void)
{
jo_3d_rotate_matrix_y(45);
jo_3d_set_scale(5, 10, 5);
jo_3d_mesh_draw(&MeshBishopBlack);
}
#endif /* !__3D_MODELBishopBlack_H__ */