Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

SDL_utils.h

Go to the documentation of this file.
00001 /* Various small SDL tools. */ 00002 00003 #ifndef SM_SDL_UTILS 00004 #define SM_SDL_UTILS 00005 00006 /* Hack to prevent X includes from messing with our namespace: */ 00007 #define Font X11___Font 00008 #define Screen X11___Screen 00009 #include "SDL.h" 00010 #include "SDL_syswm.h" // for SDL_SysWMinfo 00011 #undef Font 00012 #undef Screen 00013 struct RageSurface; 00014 00015 /* Check for an event; return true if one was waiting. */ 00016 bool SDL_GetEvent(SDL_Event &event, int mask); 00017 00018 /* Change the event state without dropping extra events. */ 00019 uint8_t mySDL_EventState(uint8_t type, int state); 00020 00021 void mySDL_GetAllEvents(vector<SDL_Event> &events); 00022 void mySDL_PushEvents(vector<SDL_Event> &events); 00023 00024 CString mySDL_GetError(); 00025 00026 void mySDL_WM_SetIcon( CString sIconFile ); 00027 SDL_Surface *SDLSurfaceFromRageSurface( RageSurface *surf ); 00028 RageSurface *RageSurfaceFromSDLSurface( SDL_Surface *surf ); 00029 00030 void SetupSDL(); 00031 00032 #endif 00033 00034 /* 00035 * (c) 2002-2004 Glenn Maynard 00036 * All rights reserved. 00037 * 00038 * Permission is hereby granted, free of charge, to any person obtaining a 00039 * copy of this software and associated documentation files (the 00040 * "Software"), to deal in the Software without restriction, including 00041 * without limitation the rights to use, copy, modify, merge, publish, 00042 * distribute, and/or sell copies of the Software, and to permit persons to 00043 * whom the Software is furnished to do so, provided that the above 00044 * copyright notice(s) and this permission notice appear in all copies of 00045 * the Software and that both the above copyright notice(s) and this 00046 * permission notice appear in supporting documentation. 00047 * 00048 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00049 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00050 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00051 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00052 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00053 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00054 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00055 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00056 * PERFORMANCE OF THIS SOFTWARE. 00057 */

Generated on Thu Jan 27 20:57:33 2005 for StepMania by doxygen 1.3.7