DOGS-102 Graphic LCD module Example. Based on Igor Skochinsky's "DOGLCDDemo" program.
Dependencies: DOG-S_GraphicLCD mbed
Fork of DOGLCDDemo by
TieFighter.h
00001 #ifndef MBED_TIEFIGHTER_H 00002 #define MBED_TIEFIGHTER_H 00003 00004 00005 00006 int tie_fighter_vertices[48][3] = { 00007 // Left wing - v0 00008 {0, 0, 17}, 00009 {10, -15, 15}, 00010 {-10, -15, 15}, 00011 {-15, 0, 15}, 00012 {-10, 15, 15}, 00013 {-10, 15, 15}, 00014 {10, 15, 15}, 00015 {15, 0, 15}, 00016 00017 // Left inner wing connector - v8 00018 {0, 0, 17}, 00019 {4, -4, 15}, 00020 {-4, -4, 15}, 00021 {-4, 0, 15}, 00022 {-4, 4, 15}, 00023 {-4, 4, 15}, 00024 {4, 4, 15}, 00025 {4, 0, 15}, 00026 00027 // Right wing - v16 00028 {0, 0, -17}, 00029 {10, -15, -15}, 00030 {-10, -15, -15}, 00031 {-15, 0, -15}, 00032 {-10, 15, -15}, 00033 {-10, 15, -15}, 00034 {10, 15, -15}, 00035 {15, 0, -15}, 00036 00037 // Right inner wing connector - v24 00038 {0, 0, -17}, 00039 {4, -4, -15}, 00040 {-4, -4, -15}, 00041 {-4, 0, -15}, 00042 {-4, 4, -15}, 00043 {-4, 4, -15}, 00044 {4, 4, -15}, 00045 {4, 0, -15}, 00046 00047 // Body - v32 00048 {8, 8, -8}, 00049 {-8, 8, -8}, 00050 {8, 8, 8}, 00051 {-8, 8, 8}, 00052 00053 {8, -8, -8}, 00054 {-8, -8, -8}, 00055 {8, -8, 8}, 00056 {-8, -8, 8}, 00057 00058 // Left wing <-> body connection 00059 {-2, -2, 15}, 00060 {-2, -2, 8}, 00061 {2, 2, 15}, 00062 {2, 2, 8}, 00063 00064 // Right wing <-> body connection 00065 {-2, -2, -15}, 00066 {-2, -2, -8}, 00067 {2, 2, -15}, 00068 {2, 2, -8}, 00069 }; 00070 00071 #define TIE_FIGHTER_NUM_FACES 32 00072 int tie_fighter_faces[TIE_FIGHTER_NUM_FACES][3] = { 00073 // Left wing 00074 {0, 1, 2}, 00075 {0, 2, 3}, 00076 {0, 3, 4}, 00077 {0, 4, 5}, 00078 {0, 5, 6}, 00079 {0, 6, 7}, 00080 {0, 7, 1}, 00081 00082 // Left inner wing connector 00083 /* {8, 9, 10}, 00084 {8, 10, 11}, 00085 {8, 11, 12}, 00086 {8, 12, 13}, 00087 {8, 13, 14}, 00088 {8, 14, 15}, 00089 {8, 15, 9}, */ 00090 00091 // Right wing 00092 {16, 17, 18}, 00093 {16, 18, 19}, 00094 {16, 19, 20}, 00095 {16, 20, 21}, 00096 {16, 21, 22}, 00097 {16, 22, 23}, 00098 {16, 23, 17}, 00099 00100 // Right inner wing connector 00101 /* {24, 25, 26}, 00102 {24, 26, 27}, 00103 {24, 27, 28}, 00104 {24, 28, 29}, 00105 {24, 29, 30}, 00106 {24, 30, 31}, 00107 {24, 31, 25}, */ 00108 00109 // Body 00110 {32, 33, 33}, // Hack to just draw some straight lines so the body doesn't look too cluttered with triangles 00111 {33, 35, 35}, 00112 {35, 34, 34}, 00113 {32, 34, 34}, 00114 00115 {36, 37, 37}, 00116 {37, 39, 39}, 00117 {39, 38, 38}, 00118 {36, 38, 38}, 00119 00120 {36, 32, 32}, 00121 {37, 33, 33}, 00122 {39, 35, 35}, 00123 {38, 34, 34}, 00124 00125 // Left wing <-> body connection 00126 {40, 41, 41}, 00127 {42, 43, 43}, 00128 00129 // Right wing <-> body connection 00130 {44, 45, 45}, 00131 {46, 47, 47}, 00132 }; 00133 00134 #endif
Generated on Sat Jul 16 2022 05:40:56 by 1.7.2