| 
 | Generated by UTF-8 version of diff2html.pl © Yves Bailly, MandrakeSoft S.A. 2001, Ryohei Morita 2007 diff2html.pl is licensed under the GNU GPL. | 
| ../07-02/07-02-MainFunction.c | 07-03-MainFunction.c | |||
|---|---|---|---|---|
| 31 lines 929 bytes Last modified : Mon Nov 5 13:44:16 2012 | 34 lines 977 bytes Last modified : Mon Nov 5 13:44:16 2012 | |||
| 1 | // Keisanki Joron 2 (Introduction to Computing II) | 1 | // Keisanki Joron 2 (Introduction to Computing II) | |
| 2 | // Dept. of Engineering Systems, University of Tsukuba | 2 | // Dept. of Engineering Systems, University of Tsukuba | |
| 3 | // [UTF-8 / Unix] | 3 | // [UTF-8 / Unix] | |
| 4 | // 計算機序論2・実習 (筑波大学工学システム学類) | 4 | // 計算機序論2・実習 (筑波大学工学システム学類) | |
| 5 | 5 | |||
| 6 | // 2012/11/05a kameda[at]iit.tsukuba.ac.jp | 6 | // 2012/11/05a kameda[at]iit.tsukuba.ac.jp | |
| 7 | // 07.02. ファイル分割 | 7 | // 07.03. ファイル分割に伴う修正 | |
| 8 | ||||
| 9 | #include "ic2-CommonHeaders.h" | |||
| 10 | ||||
| 8 | 11 | |||
| 9 | // *********************************************************************** | 12 | // *********************************************************************** | |
| 10 | // MainFunction ********************************************************** | 13 | // MainFunction ********************************************************** | |
| 11 | 14 | |||
| 12 | // +---------------------------------------------------- | 15 | // +---------------------------------------------------- | |
| 13 | // メイン関数など | 16 | // メイン関数など | |
| 14 | // +---------------------------------------------------- | 17 | // +---------------------------------------------------- | |
| 15 | 18 | |||
| 16 | // +---------------------------------------------------- | 19 | // +---------------------------------------------------- | |
| 17 | // Main Function | 20 | // Main Function | |
| 18 | // +---------------------------------------------------- | 21 | // +---------------------------------------------------- | |
| 19 | int main (int argc, char *argv[]) { | 22 | int main (int argc, char *argv[]) { | |
| 20 | 23 | |||
| 21 | // glutライブラリによる引数の解釈 | 24 | // glutライブラリによる引数の解釈 | |
| 22 | glutInit(&argc, argv); | 25 | glutInit(&argc, argv); | |
| 23 | 26 | |||
| 24 | // OpenGL Window の初期化 | 27 | // OpenGL Window の初期化 | |
| 25 | ic2_BootWindow(argv[0]); | 28 | ic2_BootWindow(argv[0]); | |
| 26 | 29 | |||
| 27 | // 無限ループの開始 | 30 | // 無限ループの開始 | |
| 28 | glutMainLoop(); | 31 | glutMainLoop(); | |
| 29 | 32 | |||
| 30 | return 0; | 33 | return 0; | |
| 31 | } | 34 | } |