00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "xrb.hpp"
00012
00013 #include "xrb_key.hpp"
00014 #include "xrb_screencoord.hpp"
00015
00016 namespace Xrb
00017 {
00018
00019 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(SIZEOF_CHAR_CHECK, sizeof(char) == 1)
00020 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(SIZEOF_SINT8_CHECK, sizeof(Sint8) == 1)
00021 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(SIZEOF_UINT8_CHECK, sizeof(Uint8) == 1)
00022 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(SIZEOF_SINT16_CHECK, sizeof(Sint16) == 2)
00023 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(SIZEOF_UINT16_CHECK, sizeof(Uint16) == 2)
00024 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(SIZEOF_SINT32_CHECK, sizeof(Sint32) == 4)
00025 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(SIZEOF_UINT32_CHECK, sizeof(Uint32) == 4)
00026 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(SIZEOF_SCREENCOORD_CHECK, sizeof(ScreenCoord) == 4)
00027 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(SIZEOF_FLOAT_CHECK, sizeof(float) == 4)
00028 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(SIZEOF_DOUBLE_CHECK, sizeof(double) == 8)
00029
00030 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_TAB_IS_ASCII, Key::TAB == '\t')
00031 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_RETURN_IS_ASCII, Key::RETURN == '\r')
00032 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_ESCAPE_IS_ASCII, Key::ESCAPE == 0x1B)
00033 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_SPACE_IS_ASCII, Key::SPACE == ' ')
00034 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_QUOTE_IS_ASCII, Key::QUOTE == '\'')
00035 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_COMMA_IS_ASCII, Key::COMMA == ',')
00036 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_MINUS_IS_ASCII, Key::MINUS == '-')
00037 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_PERIOD_IS_ASCII, Key::PERIOD == '.')
00038 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_SLASH_IS_ASCII, Key::SLASH == '/')
00039 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_ZERO_IS_ASCII, Key::ZERO == '0')
00040 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_ONE_IS_ASCII, Key::ONE == '1')
00041 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_TWO_IS_ASCII, Key::TWO == '2')
00042 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_THREE_IS_ASCII, Key::THREE == '3')
00043 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_FOUR_IS_ASCII, Key::FOUR == '4')
00044 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_FIVE_IS_ASCII, Key::FIVE == '5')
00045 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_SIX_IS_ASCII, Key::SIX == '6')
00046 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_SEVEN_IS_ASCII, Key::SEVEN == '7')
00047 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_EIGHT_IS_ASCII, Key::EIGHT == '8')
00048 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_NINE_IS_ASCII, Key::NINE == '9')
00049 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_SEMICOLON_IS_ASCII, Key::SEMICOLON == ';')
00050 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_EQUALS_IS_ASCII, Key::EQUALS == '=')
00051 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_LEFTBRACKET_IS_ASCII, Key::LEFTBRACKET == '[')
00052 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_BACKSLASH_IS_ASCII, Key::BACKSLASH == '\\')
00053 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_RIGHTBRACKET_IS_ASCII, Key::RIGHTBRACKET == ']')
00054 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_BACKQUOTE_IS_ASCII, Key::BACKQUOTE == '`')
00055 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_A_IS_ASCII, Key::A == 'a')
00056 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_B_IS_ASCII, Key::B == 'b')
00057 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_C_IS_ASCII, Key::C == 'c')
00058 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_D_IS_ASCII, Key::D == 'd')
00059 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_E_IS_ASCII, Key::E == 'e')
00060 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_F_IS_ASCII, Key::F == 'f')
00061 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_G_IS_ASCII, Key::G == 'g')
00062 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_H_IS_ASCII, Key::H == 'h')
00063 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_I_IS_ASCII, Key::I == 'i')
00064 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_J_IS_ASCII, Key::J == 'j')
00065 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_K_IS_ASCII, Key::K == 'k')
00066 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_L_IS_ASCII, Key::L == 'l')
00067 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_M_IS_ASCII, Key::M == 'm')
00068 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_N_IS_ASCII, Key::N == 'n')
00069 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_O_IS_ASCII, Key::O == 'o')
00070 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_P_IS_ASCII, Key::P == 'p')
00071 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_Q_IS_ASCII, Key::Q == 'q')
00072 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_R_IS_ASCII, Key::R == 'r')
00073 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_S_IS_ASCII, Key::S == 's')
00074 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_T_IS_ASCII, Key::T == 't')
00075 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_U_IS_ASCII, Key::U == 'u')
00076 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_V_IS_ASCII, Key::V == 'v')
00077 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_W_IS_ASCII, Key::W == 'w')
00078 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_X_IS_ASCII, Key::X == 'x')
00079 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_Y_IS_ASCII, Key::Y == 'y')
00080 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_Z_IS_ASCII, Key::Z == 'z')
00081 GLOBAL_SCOPE_COMPILE_TIME_ASSERT(KEY_DELETE_IS_ASCII, Key::DELETE == 0x7F)
00082
00083 }