My Documents/dxframework/dxf/dxf-engine/dxframework.h

Go to the documentation of this file.
00001 /*      DXFramework Copyright (c) 2006, Jonathan Voigt, University of Michigan.
00002         See http://dxframework.sourceforge.net/ for a list of contributors.
00003         All rights reserved.
00004 
00005         Redistribution and use in source and binary forms, with or without modification, 
00006         are permitted provided that the following conditions are met:
00007 
00008                 * Redistributions of source code must retain the above copyright notice, 
00009                 this list of conditions and the following disclaimer.
00010 
00011                 * Redistributions in binary form must reproduce the above copyright notice, 
00012                 this list of conditions and the following disclaimer in the documentation 
00013                 and/or other materials provided with the distribution.
00014 
00015                 * Neither the name of the DXFramework project nor the names of its 
00016                 contributors may be used to endorse or promote products derived from this 
00017                 software without specific prior written permission.
00018 
00019         THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
00020         ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
00021         WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
00022         DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 
00023         ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
00024         (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 
00025         LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 
00026         ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
00027         (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
00028         SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00029 */
00030 
00031 #pragma once
00032 #pragma warning(disable:4530)
00033 
00035 #define DXF_VERSION_MAJOR 0
00036 #define DXF_VERSION_MINOR 9
00037 #define DXF_VERSION_MICRO 7
00038 #define DXF_VERSION_STRING L"0.9.7"
00039 
00040 // Handy macro used to quell warnings about unused parameters
00041 #ifndef unused
00042 #define unused(x) (void)(x)
00043 #endif //unused
00044 
00045 // Headers
00046 #include <vector>
00047 #include <string>
00048 #include <map>
00049 #include <list>
00050 #include <algorithm>
00051 #include <vector>
00052 #include <stack>
00053 #include <queue>
00054 #include <sstream>
00055 #include <bitset>
00056 
00057 #include "dxstdafx.h"
00058 
00059 #define DIRECTINPUT_VERSION 0x0800
00060 #include <dinput.h>
00061 #include <dshow.h>
00062 
00063 /* some common colors */
00064 const D3DCOLOR  BLACK   = D3DCOLOR_ARGB(255,0,0,0);                     
00065 const D3DCOLOR  RED             = D3DCOLOR_ARGB(255,255,0,0);           
00066 const D3DCOLOR  GREEN   = D3DCOLOR_ARGB(255,0,255,0);           
00067 const D3DCOLOR  BLUE    = D3DCOLOR_ARGB(255,0,0,255);           
00068 const D3DCOLOR  MAGENTA = D3DCOLOR_ARGB(255,255,0,255);         
00069 const D3DCOLOR  CYAN    = D3DCOLOR_ARGB(255,0,255,255);         
00070 const D3DCOLOR  YELLOW  = D3DCOLOR_ARGB(255,255,255,0);         
00071 const D3DCOLOR  WHITE   = D3DCOLOR_ARGB(255,255,255,255);       
00072 
00073 /* useful for directions */
00074 #define DIR_NONE                0
00075 #define DIR_UP                  1
00076 #define DIR_DOWN                2
00077 #define DIR_LEFT                3
00078 #define DIR_UPLEFT              4 // DIR_UP   + DIR_LEFT
00079 #define DIR_DOWNLEFT    5 // DIR_DOWN + DIR_LEFT
00080 #define DIR_RIGHT               6
00081 #define DIR_UPRIGHT             7 // DIR_UP   + DIR_RIGHT
00082 #define DIR_DOWNRIGHT   8 // DIR_DOWN + DIR_RIGHT
00083 
00084 /* Engine includes */
00085 #include "dxf_font.h"
00086 #include "dxf_texture.h"
00087 #include "dxf_sprite.h"
00088 #include "dxf_console.h"
00089 #include "dxf_controller.h"
00090 #include "dxf_statemanager.h"
00091 #include "dxf_model.h"
00092 #include "dxf_view.h"
00093 #include "dxf_game.h"
00094 #include "dxf_sound.h"
00095 #include "dxf_tools.h"
00096 #include "dxf_music.h"

Generated on Fri Aug 18 12:01:28 2006 for DXFramework by  doxygen 1.4.7