Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

AConstants.h

Go to the documentation of this file.
00001 /*
00002 CS Senior Project 2003
00003 Team : Leftfield
00004 Project : ModernWarfare
00005 Members :
00006 - Russ Christensen              <rchriste@cs.utah.edu>
00007 - Todd Smith                    <tcsmith@cs.utah.edu>
00008 - Usit Duongsaa                 <duongsaa@cs.utah.edu>
00009 
00010 Copyright 2003 Russ Christensen, Usit Duongsaa, and Todd Smith. All rights reserved.
00011 
00012 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
00013 
00014 Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 
00015 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 
00016 THIS SOFTWARE IS PROVIDED BY RUSS CHRISTENSEN, USIT DUONGSAA, AND TODD SMITH ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RUSS, USIT, TODD OR OTHER CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00017 */
00018 
00019 
00024 #ifndef INCLUDE_ACONSTANTS
00025 #define INCLUDE_ACONSTANTS
00026 
00027 #include "ATypes.h"
00028 
00029 //------------------------------------------------------------------------------------
00040 namespace BlendModes
00041 {
00042         const int NONE          =       0;
00043         const int KEY           =       1;
00044         const int ADD           =       2;
00045         const int MIX           =       3;
00046         const int COUNT         =       4;
00047 }
00048 //------------------------------------------------------------------------------------
00050 namespace Colors
00051 {
00052         const Vec3D black(  0.0f, 0.0f, 0.0f );
00053         const Vec3D red(    1.0f, 0.0f, 0.0f );
00054         const Vec3D green(  0.0f, 1.0f, 0.0f );
00055         const Vec3D blue(   0.0f, 0.0f, 1.0f );
00056         const Vec3D cyan(   0.0f, 1.0f, 1.0f );
00057         const Vec3D magenta(1.0f, 0.0f, 1.0f );
00058         const Vec3D yellow( 1.0f, 1.0f, 0.0f );
00059         const Vec3D white(  1.0f, 1.0f, 1.0f );
00060         const Vec3D gray(   0.2f, 0.2f, 0.2f );
00061 }
00062 //------------------------------------------------------------------------------------
00064 namespace KeyCodes
00065 {       
00066         const int key_ESCAPE          = 0x01;
00067         const int key_1               = 0x02;
00068         const int key_2               = 0x03;
00069         const int key_3               = 0x04;
00070         const int key_4               = 0x05;
00071         const int key_5               = 0x06;
00072         const int key_6               = 0x07;
00073         const int key_7               = 0x08;
00074         const int key_8               = 0x09;
00075         const int key_9               = 0x0A;
00076         const int key_0               = 0x0B;
00077         const int key_MINUS           = 0x0C;   /* - on main keyboard */
00078         const int key_EQUALS          = 0x0D;
00079         const int key_BACK            = 0x0E;   /* backspace */
00080         const int key_TAB             = 0x0F;
00081         const int key_Q               = 0x10;
00082         const int key_W               = 0x11;
00083         const int key_E               = 0x12;
00084         const int key_R               = 0x13;
00085         const int key_T               = 0x14;
00086         const int key_Y               = 0x15;
00087         const int key_U               = 0x16;
00088         const int key_I               = 0x17;
00089         const int key_O               = 0x18;
00090         const int key_P               = 0x19;
00091         const int key_LBRACKET        = 0x1A;
00092         const int key_RBRACKET        = 0x1B;
00093         const int key_RETURN          = 0x1C;   /* Enter on main keyboard */
00094         const int key_LCONTROL        = 0x1D;
00095         const int key_A               = 0x1E;
00096         const int key_S               = 0x1F;
00097         const int key_D               = 0x20;
00098         const int key_F               = 0x21;
00099         const int key_G               = 0x22;
00100         const int key_H               = 0x23;
00101         const int key_J               = 0x24;
00102         const int key_K               = 0x25;
00103         const int key_L               = 0x26;
00104         const int key_SEMICOLON       = 0x27;
00105         const int key_APOSTROPHE      = 0x28;
00106         const int key_GRAVE           = 0x29;   /* accent grave */
00107         const int key_LSHIFT          = 0x2A;
00108         const int key_BACKSLASH       = 0x2B;
00109         const int key_Z               = 0x2C;
00110         const int key_X               = 0x2D;
00111         const int key_C               = 0x2E;
00112         const int key_V               = 0x2F;
00113         const int key_B               = 0x30;
00114         const int key_N               = 0x31;
00115         const int key_M               = 0x32;
00116         const int key_COMMA           = 0x33;
00117         const int key_PERIOD          = 0x34;   /* . on main keyboard */
00118         const int key_SLASH           = 0x35;   /* / on main keyboard */
00119         const int key_RSHIFT          = 0x36;
00120         const int key_MULTIPLY        = 0x37;   /* * on numeric keypad */
00121         const int key_LMENU           = 0x38;   /* left Alt */
00122         const int key_SPACE           = 0x39;
00123         const int key_CAPITAL         = 0x3A;
00124         const int key_F1              = 0x3B;
00125         const int key_F2              = 0x3C;
00126         const int key_F3              = 0x3D; 
00127         const int key_F4              = 0x3E;
00128         const int key_F5              = 0x3F;
00129         const int key_F6              = 0x40;
00130         const int key_F7              = 0x41;
00131         const int key_F8              = 0x42;
00132         const int key_F9              = 0x43;
00133         const int key_F10             = 0x44;
00134         const int key_NUMLOCK         = 0x45;
00135         const int key_SCROLL          = 0x46;   /* Scroll Lock */
00136         const int key_NUMPAD7         = 0x47;
00137         const int key_NUMPAD8         = 0x48;
00138         const int key_NUMPAD9         = 0x49;
00139         const int key_SUBTRACT        = 0x4A;   /* - on numeric keypad */
00140         const int key_NUMPAD4         = 0x4B;
00141         const int key_NUMPAD5         = 0x4C;
00142         const int key_NUMPAD6         = 0x4D;
00143         const int key_ADD             = 0x4E;   /* + on numeric keypad */
00144         const int key_NUMPAD1         = 0x4F;
00145         const int key_NUMPAD2         = 0x50;
00146         const int key_NUMPAD3         = 0x51;
00147         const int key_NUMPAD0         = 0x52;
00148         const int key_DECIMAL         = 0x53;   /* . on numeric keypad */
00149         const int key_OEM_102         = 0x56;   /* <> or \| on RT 102-key keyboard (Non-U.S.) */
00150         const int key_F11             = 0x57;
00151         const int key_F12             = 0x58;
00152         const int key_F13             = 0x64;   /*                     (NEC PC98) */
00153         const int key_F14             = 0x65;   /*                     (NEC PC98) */
00154         const int key_F15             = 0x66;   /*                     (NEC PC98) */
00155         const int key_KANA            = 0x70;   /* (Japanese keyboard)            */
00156         const int key_ABNT_C1         = 0x73;   /* /? on Brazilian keyboard */
00157         const int key_CONVERT         = 0x79;   /* (Japanese keyboard)            */
00158         const int key_NOCONVERT       = 0x7B;   /* (Japanese keyboard)            */
00159         const int key_YEN             = 0x7D;   /* (Japanese keyboard)            */
00160         const int key_ABNT_C2         = 0x7E;   /* Numpad . on Brazilian keyboard */
00161         const int key_NUMPADEQUALS    = 0x8D;   /* = on numeric keypad (NEC PC98) */
00162         const int key_PREVTRACK       = 0x90;   /* Previous Track (DIK_CIRCUMFLEX on Japanese keyboard) */
00163         const int key_AT              = 0x91;   /*                     (NEC PC98) */
00164         const int key_COLON           = 0x92;   /*                     (NEC PC98) */
00165         const int key_UNDERLINE       = 0x93;   /*                     (NEC PC98) */
00166         const int key_KANJI           = 0x94;   /* (Japanese keyboard)            */
00167         const int key_STOP            = 0x95;   /*                     (NEC PC98) */
00168         const int key_AX              = 0x96;   /*                     (Japan AX) */
00169         const int key_UNLABELED       = 0x97;   /*                        (J3100) */
00170         const int key_NEXTTRACK       = 0x99;   /* Next Track */
00171         const int key_NUMPADENTER     = 0x9C;   /* Enter on numeric keypad */
00172         const int key_RCONTROL        = 0x9D;
00173         const int key_MUTE            = 0xA0;   /* Mute */
00174         const int key_CALCULATOR      = 0xA1;   /* Calculator */
00175         const int key_PLAYPAUSE       = 0xA2;   /* Play / Pause */
00176         const int key_MEDIASTOP       = 0xA4;   /* Media Stop */
00177         const int key_VOLUMEDOWN      = 0xAE;   /* Volume - */
00178         const int key_VOLUMEUP        = 0xB0;   /* Volume + */
00179         const int key_WEBHOME         = 0xB2;   /* Web home */
00180         const int key_NUMPADCOMMA     = 0xB3;   /* , on numeric keypad (NEC PC98) */
00181         const int key_DIVIDE          = 0xB5;   /* / on numeric keypad */
00182         const int key_SYSRQ           = 0xB7;
00183         const int key_RMENU           = 0xB8;   /* right Alt */
00184         const int key_PAUSE           = 0xC5;   /* Pause */
00185         const int key_HOME            = 0xC7;   /* Home on arrow keypad */
00186         const int key_UP              = 0xC8;   /* UpArrow on arrow keypad */
00187         const int key_PRIOR           = 0xC9;   /* PgUp on arrow keypad */
00188         const int key_LEFT            = 0xCB;   /* LeftArrow on arrow keypad */
00189         const int key_RIGHT           = 0xCD;   /* RightArrow on arrow keypad */
00190         const int key_END             = 0xCF;   /* End on arrow keypad */
00191         const int key_DOWN            = 0xD0;   /* DownArrow on arrow keypad */
00192         const int key_NEXT            = 0xD1;   /* PgDn on arrow keypad */
00193         const int key_INSERT          = 0xD2;   /* Insert on arrow keypad */
00194         const int key_DELETE          = 0xD3;   /* Delete on arrow keypad */
00195         const int key_LWIN            = 0xDB;   /* Left Windows key */
00196         const int key_RWIN            = 0xDC;   /* Right Windows key */
00197         const int key_APPS            = 0xDD;   /* AppMenu key */
00198         const int key_POWER           = 0xDE;   /* System Power */
00199         const int key_SLEEP           = 0xDF;   /* System Sleep */
00200         const int key_WAKE            = 0xE3;   /* System Wake */
00201         const int key_WEBSEARCH       = 0xE5;   /* Web Search */
00202         const int key_WEBFAVORITES    = 0xE6;   /* Web Favorites */
00203         const int key_WEBREFRESH      = 0xE7;   /* Web Refresh */
00204         const int key_WEBSTOP         = 0xE8;   /* Web Stop */
00205         const int key_WEBFORWARD      = 0xE9;   /* Web Forward */
00206         const int key_WEBBACK         = 0xEA;   /* Web Back */
00207         const int key_MYCOMPUTER      = 0xEB;   /* My Computer */
00208         const int key_MAIL            = 0xEC;   /* Mail */
00209         const int key_MEDIASELECT     = 0xED;   /* Media Select */
00210 }
00211 
00212 //------------------------------------------------------------------------------------
00213 
00214 #endif

Generated on Wed Apr 23 05:50:13 2003 for Modern Warfare by doxygen1.3-rc2