Rev 89 | Rev 130 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 89 | Rev 124 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | // PayPal stuff - END |
24 | // PayPal stuff - END |
25 | ///////////////////// |
25 | ///////////////////// |
26 | #define ACCOUNTCREATION_URL L"http://www.freechess.org/cgi-bin/Register/FICS_register.cgi?Language=%s" |
26 | #define ACCOUNTCREATION_URL L"http://www.freechess.org/cgi-bin/Register/FICS_register.cgi?Language=%s" |
27 | #define MAX_STACKABLE_PARTS 7 |
27 | #define MAX_STACKABLE_PARTS 7 |
28 | #define MAX_PITCH_FOR_FLAT_ICONS 75.0f |
28 | #define MAX_PITCH_FOR_FLAT_ICONS 75.0f |
- | 29 | #define CLOSEUP_VIEW_DISTANCE 40.0f |
|
- | 30 | #define CLOSEUP_VIEW_PITCH 6.0f |
|
- | 31 | #define MIN_VIEW_PITCH 10.0f |
|
- | 32 | #define MIN_VIEW_DISTANCE 48.0f |
|
- | 33 | #define MAX_VIEW_PITCH 89.99f |
|
- | 34 | #define MAX_VIEW_DISTANCE 100.0f |
|
29 | #define ANIMATION_DURATION 1.0f |
35 | #define ANIMATION_DURATION 1.0f |
30 | #define WCHAR_SIZEOF(a) (sizeof (a) / sizeof (wchar_t)) |
36 | #define WCHAR_SIZEOF(a) (sizeof (a) / sizeof (wchar_t)) |
31 | #define LOCALIZE(a) LocalizedTexts_GetLocalizedTextFor (a) |
37 | #define LOCALIZE(a) LocalizedTexts_GetLocalizedTextFor (a) |
32 | #define IS_VALID_POSITION(pos) (((pos)[0] >= 0) && ((pos)[0] < 8) && ((pos)[1] >= 0) && ((pos)[1] < 8)) |
38 | #define IS_VALID_POSITION(pos) (((pos)[0] >= 0) && ((pos)[0] < 8) && ((pos)[1] >= 0) && ((pos)[1] < 8)) |
33 | #define FENSTARTUP_STANDARDCHESS L"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1" |
39 | #define FENSTARTUP_STANDARDCHESS L"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1" |
Line 45... | Line 51... | ||
45 | #define RGBACOLOR_SETRED(rgba,red) (((rgba) & 0x00FFFFFF) | (((unsigned long) (red)) << 24)) |
51 | #define RGBACOLOR_SETRED(rgba,red) (((rgba) & 0x00FFFFFF) | (((unsigned long) (red)) << 24)) |
46 | #define RGBACOLOR_SETGREEN(rgba,green) (((rgba) & 0xFF00FFFF) | (((unsigned long) (green)) << 16)) |
52 | #define RGBACOLOR_SETGREEN(rgba,green) (((rgba) & 0xFF00FFFF) | (((unsigned long) (green)) << 16)) |
47 | #define RGBACOLOR_SETBLUE(rgba,blue) (((rgba) & 0xFFFF00FF) | (((unsigned long) (blue)) << 8)) |
53 | #define RGBACOLOR_SETBLUE(rgba,blue) (((rgba) & 0xFFFF00FF) | (((unsigned long) (blue)) << 8)) |
48 | #define RGBACOLOR_SETALPHA(rgba,alpha) (((rgba) & 0xFFFFFF00) | ((unsigned long) (alpha))) |
54 | #define RGBACOLOR_SETALPHA(rgba,alpha) (((rgba) & 0xFFFFFF00) | ((unsigned long) (alpha))) |
49 | #define RGBACOLOR_FULLALPHA(rgba) ((rgba) | 0x000000FF) |
55 | #define RGBACOLOR_FULLALPHA(rgba) ((rgba) | 0x000000FF) |
50 | #define RGBACOLOR_TO_ARGBCOLOR(rgba) ((( |
56 | #define RGBACOLOR_TO_ARGBCOLOR(rgba) ((((rgba) & 0xFFFFFF00) >> 8) | (((rgba) & 0x00FFFFFF) << 24)) |
- | 57 | ||
- | 58 | ||
- | 59 | // handy macros |
|
- | 60 | #define GUIBUTTON_ENABLE(button) { if ((button).state == 0) { (button).state = 1; /*the_board.reevaluate =*/ the_scene.update = true; } } |
|
- | 61 | #define GUIBUTTON_DISABLE(button) { if ((button).state > 0) { (button).state = 0; /*the_board.reevaluate =*/ the_scene.update = true; } } |
|
51 | 62 | ||
52 | 63 | ||
53 | // menu item IDs |
64 | // menu item IDs |
54 | #define MENUID_GAME_NEWGAME 101 |
65 | #define MENUID_GAME_NEWGAME 101 |
55 | #define MENUID_GAME_SETUPPOSITION 102 |
66 | #define MENUID_GAME_SETUPPOSITION 102 |