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_AUTIL 00025 #define INCLUDE_AUTIL 00026 00027 #include "AEngine.h" 00028 #include "AState.h" 00029 #include "ADevice.h" 00030 #include "AConstants.h" 00031 00032 #define absf(f) (f>=0? (f) : (-f)) 00033 00038 TCHAR* util_stringToTChar( string s ); 00039 00041 DWORD util_loadVertexShader( string filename, DWORD *dwDecl ); 00043 DWORD util_loadPixelShader( string filename ); 00045 CD3DFont* util_loadFont( string fontName, string filename, int size ); 00046 00048 FLOAT clipAngle( FLOAT degree ); 00049 //------------------------------------------------------------------------------------ 00050 00051 #endif
1.3-rc2