00001 #ifndef MERCURYWINDOWSDL_H 00002 #define MERCURYWINDOWSDL_H 00003 00004 #include "MercuryWindow.h" 00005 00007 class MercuryWindowEE : public MercuryWindow 00008 { 00009 public: 00010 MercuryWindowEE(); 00011 ~MercuryWindowEE(); 00012 virtual bool MakeWindow(const char* title, int width, int height, int bits, bool fullscreenflag); 00013 virtual bool MakeRender(const char* title, int width, int height, int bits, bool fullscreenflag,RendererType RT); 00014 virtual void DestroyWindow(); 00015 virtual void SwapBuffers() { SwapBuffersInternal(); } 00016 virtual void *GetProcAddress(MString s); 00017 virtual bool Update(const float dTime); 00018 virtual bool HasFocus(); 00019 virtual void DestroyWindowAndRender(); 00020 virtual bool RestoreDevice(); 00021 virtual bool MakeRenderCurrent(); 00022 protected: 00023 virtual void SwapBuffersInternal(); 00024 private: 00025 }; 00026 00027 #endif 00028 00029 /* 00030 * Copyright (c) 2005-2006, Joshua Allen 00031 * All rights reserved. 00032 * 00033 * Redistribution and use in source and binary forms, with or 00034 * without modification, are permitted provided that the following 00035 * conditions are met: 00036 * - Redistributions of source code must retain the above 00037 * copyright notice, this list of conditions and the following disclaimer. 00038 * - Redistributions in binary form must reproduce the above copyright 00039 * notice, this list of conditions and the following disclaimer in 00040 * the documentation and/or other materials provided with the distribution. 00041 * - Neither the name of the Mercury Engine nor the names of its 00042 * contributors may be used to endorse or promote products derived from 00043 * this software without specific prior written permission. 00044 * 00045 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00046 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00047 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00048 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 00049 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00050 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00051 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00052 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00053 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 00054 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00055 */