00001 #ifndef LOW_LEVEL_WINDOW_H 00002 #define LOW_LEVEL_WINDOW_H 00003 00004 /* This handles low-level operations that OGL 1.x doesn't give us. Normally, 00005 * we use SDL. Note that not all SDL operations go here; however, nothing 00006 * outside of this can assume that SDL has VIDEO initialized. */ 00007 00008 #include "RageDisplay.h" // for RageDisplay::VideoModeParams 00009 00010 class LowLevelWindow 00011 { 00012 public: 00013 virtual ~LowLevelWindow() { } 00014 00015 virtual void *GetProcAddress(CString s) = 0; 00016 00017 // Return "" if mode change was successful, otherwise an error message. 00018 // bNewDeviceOut is set true if a new device was created and textures 00019 // need to be reloaded. 00020 virtual CString TryVideoMode( RageDisplay::VideoModeParams p, bool &bNewDeviceOut ) = 0; 00021 00022 virtual void SwapBuffers() = 0; 00023 virtual void Update(float fDeltaTime) { } 00024 00025 virtual RageDisplay::VideoModeParams GetVideoModeParams() const = 0; 00026 }; 00027 00028 #endif 00029 00030 /* 00031 * (c) 2003-2004 Glenn Maynard 00032 * All rights reserved. 00033 * 00034 * Permission is hereby granted, free of charge, to any person obtaining a 00035 * copy of this software and associated documentation files (the 00036 * "Software"), to deal in the Software without restriction, including 00037 * without limitation the rights to use, copy, modify, merge, publish, 00038 * distribute, and/or sell copies of the Software, and to permit persons to 00039 * whom the Software is furnished to do so, provided that the above 00040 * copyright notice(s) and this permission notice appear in all copies of 00041 * the Software and that both the above copyright notice(s) and this 00042 * permission notice appear in supporting documentation. 00043 * 00044 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00045 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00046 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00047 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00048 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00049 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00050 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00051 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00052 * PERFORMANCE OF THIS SOFTWARE. 00053 */