| 
 | Generated by diff2html.pl © Yves Bailly, MandrakeSoft S.A. 2001, Ryohei Morita 2007 diff2html.pl is licensed under the GNU GPL. | 
| ../07-03/ic2-CommonHeaders.h | ic2-CommonHeaders.h | |||
|---|---|---|---|---|
| 37 lines 1203 bytes Last modified : Mon Nov 5 08:22:23 2012 | 39 lines 1300 bytes Last modified : Mon Nov 5 12:43:04 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.03. ファイル分割に伴う修正 | 7 | // 07.04. イベントの追加(キーボード) | |
| 8 | 8 | |||
| 9 | // *********************************************************************** | 9 | // *********************************************************************** | |
| 10 | // CommonHeaders.h : common header files ********************************* | 10 | // CommonHeaders.h : common header files ********************************* | |
| 11 | 11 | |||
| 12 | // +++-------------------------------------------------- | 12 | // +++-------------------------------------------------- | |
| 13 | // どの部分ソースでも利用する可能性が高いライブラリ(関数)に | 13 | // どの部分ソースでも利用する可能性が高いライブラリ(関数)に | |
| 14 | // 相当するヘッダファイル | 14 | // 相当するヘッダファイル | |
| 15 | // +++-------------------------------------------------- | 15 | // +++-------------------------------------------------- | |
| 16 | 16 | |||
| 17 | #include <stdio.h> // printf() | 17 | #include <stdio.h> // printf() | |
| 18 | #include <stdlib.h> // exit() | |||
| 18 | #include <GL/glut.h> // gl*(), glut*() | 19 | #include <GL/glut.h> // gl*(), glut*() | |
| 19 | 20 | |||
| 20 | // +++-------------------------------------------------- | 21 | // +++-------------------------------------------------- | |
| 21 | // この授業で作った関数のプロトタイプ | 22 | // この授業で作った関数のプロトタイプ | |
| 22 | // +++-------------------------------------------------- | 23 | // +++-------------------------------------------------- | |
| 23 | 24 | |||
| 24 | // 07-03-Callback.c | 25 | // 07-03-Callback.c | |
| 25 | void ic2_timerhandler(int keynumber); | 26 | void ic2_timerhandler(int keynumber); | |
| 27 | void ic2_NormalKeyInput(unsigned char key, int x, int y); | |||
| 26 | 28 | |||
| 27 | // 07-03-EmbededObjects.c | 29 | // 07-03-EmbededObjects.c | |
| 28 | void ic2_OpenGLLogo (float s); | 30 | void ic2_OpenGLLogo (float s); | |
| 29 | 31 | |||
| 30 | // 07-03-Initialization.c | 32 | // 07-03-Initialization.c | |
| 31 | void ic2_BootWindow (char winname[]); | 33 | void ic2_BootWindow (char winname[]); | |
| 32 | 34 | |||
| 33 | // 07-03-Projection.c | 35 | // 07-03-Projection.c | |
| 34 | void ic2_SetUpCamera_Ortho (void); | 36 | void ic2_SetUpCamera_Ortho (void); | |
| 35 | 37 | |||
| 36 | // 07-03-Rendering.c | 38 | // 07-03-Rendering.c | |
| 37 | void ic2_DrawFrame (void); | 39 | void ic2_DrawFrame (void); |