LEFT | RIGHT |
| 1 /* |
| 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
| 3 * |
| 4 * This program is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU General Public License |
| 6 * as published by the Free Software Foundation; either version 2 |
| 7 * of the License, or (at your option) any later version. |
| 8 * |
| 9 * This program is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. |
| 13 * |
| 14 * You should have received a copy of the GNU General Public License |
| 15 * along with this program; if not, write to the Free Software Foundation, |
| 16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17 * |
| 18 * Contributor(s): Tao Ju |
| 19 * |
| 20 * ***** END GPL LICENSE BLOCK ***** |
| 21 */ |
| 22 |
1 #include <math.h> | 23 #include <math.h> |
2 #include "Projections.h" | 24 #include "Projections.h" |
3 | 25 |
4 const int vertmap[8][3] = { | 26 const int vertmap[8][3] = { |
5 {0, 0, 0}, | 27 {0, 0, 0}, |
6 {0, 0, 1}, | 28 {0, 0, 1}, |
7 {0, 1, 0}, | 29 {0, 1, 0}, |
8 {0, 1, 1}, | 30 {0, 1, 1}, |
9 {1, 0, 0}, | 31 {1, 0, 0}, |
10 {1, 0, 1}, | 32 {1, 0, 1}, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 }; | 67 }; |
46 | 68 |
47 const int facemap[6][4] = { | 69 const int facemap[6][4] = { |
48 {0, 1, 2, 3}, | 70 {0, 1, 2, 3}, |
49 {4, 5, 6, 7}, | 71 {4, 5, 6, 7}, |
50 {0, 1, 4, 5}, | 72 {0, 1, 4, 5}, |
51 {2, 3, 6, 7}, | 73 {2, 3, 6, 7}, |
52 {0, 2, 4, 6}, | 74 {0, 2, 4, 6}, |
53 {1, 3, 5, 7} | 75 {1, 3, 5, 7} |
54 }; | 76 }; |
LEFT | RIGHT |