Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/Const.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download) (as text)
Sun Aug 15 01:53:13 2010 UTC (13 years, 9 months ago) by okadu
File MIME type: text/x-chdr
File size: 863 byte(s)


1 #ifndef CONST_H_INCLUDED
2 #define CONST_H_INCLUDED
3
4 extern const float RAILSIM_VERSION;
5 extern const char* VERSION_STRING;
6
7 const int FONT_WIDTH = 6; // 標準フォント幅
8 const int FONT_HEIGHT = 12; // 標準フォント高
9 const int MODE_NUM = 6; // モード数
10 const int REPEAT_FRAME = MAXFPS/4; // 長押フレーム数
11 const int DBLCLK_FRAME = MAXFPS/2; // ダブルクリックフレーム数
12 const int DETECT_2D_MIN = 5; // 2D 検出最小距離
13 const int DETECT_2D_MAX = 50; // 2D 検出最大距離
14
15 extern char *YESNO[];
16
17 // エイリアスを渡せないので const VEC3 ではなくマクロにする
18 #define V2ZERO VEC2(0.0f, 0.0f) // ゼロベクトル
19 #define V3ZERO VEC3(0.0f, 0.0f, 0.0f) // ゼロベクトル
20 #define V3RIGHT VEC3(1.0f, 0.0f, 0.0f) // x 単位ベクトル
21 #define V3UP VEC3(0.0f, 1.0f, 0.0f) // y 単位ベクトル
22 #define V3DIR VEC3(0.0f, 0.0f, 1.0f) // z 単位ベクトル
23
24 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26