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

# KeosRenderWindow.h

Go to the documentation of this file.

    00001 /*
    00002  * This source file is part of KEOS (Free 3D Engine)
    00003  * For the latest info, see http://www.keosengine.org/
    00004  * E-mails : thierry.vouriot@keosengine.org, yeri@keosengine.org
    00005  *
    00006  * This program is free software; you can redistribute it and/or modify it under
    00007  * the terms of the GNU Lesser General Public License as published by the Free Software
    00008  * Foundation; either version 2 of the License, or (at your option) any later
    00009  * version.
    00010  *
    00011  * This program is distributed in the hope that it will be useful, but WITHOUT
    00012  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    00013  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
    00014  *
    00015  * You should have received a copy of the GNU Lesser General Public License along with
    00016  * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
    00017  * Place - Suite 330, Boston, MA 02111-1307, USA, or go to
    00018  * http://www.gnu.org/copyleft/lesser.txt.
    00019  *
    00020  */
    00021
    00022 #ifndef KEOS_RENDERWINDOW_H
    00023 #define KEOS_RENDERWINDOW_H
    00024
    00025 #include "KeosPrerequisites.h"
    00026 #include "KeosRenderTarget.h"
    00027
    00028 namespace Keos
    00029 {
    00030     //-----------------------------------------------------------------------
    00037     class KEOS_EXPORT IRenderWindow : public IRenderTarget
    00038     {
    00039     public:
    00042         IRenderWindow();
    00043
    00052                 virtual void Create(const String& strName, uint nWidth, uint nHeight, uint nColourDepth, bool bFullScreen) = 0;
    00053
    00056         virtual void Destroy(void) = 0;
    00057
    00062         virtual void Resize(uint nWidth, uint nHeight) = 0;
    00063
    00068         virtual void Reposition(int nLeft, int nTop) = 0;
    00069
    00072         virtual bool IsClosed(void) const = 0;
    00073
    00087         virtual void SwapBuffers(bool bWaitForVSync = true) = 0;
    00088
    00091         virtual bool IsFullScreen(void) const;
    00092
    00101         virtual void GetMetrics(uint& nWidth, uint& nHeight, uint& nColourDepth,
    00102                                                 int& nLeft, int& nTop);
    00103
    00104     protected:
    00106         bool m_bIsFullScreen;
    00107
    00109         int m_nLeft;
    00111         int m_nTop;
    00112     };
    00113
    00114     //=======================================================================
    00115     // IRenderWindow inline functions
    00116     //=======================================================================
    00117
    00118     //-----------------------------------------------------------------------
    00119     inline bool IRenderWindow::IsFullScreen(void) const
    00120     {
    00121         return m_bIsFullScreen;
    00122     }
    00123
    00124 } // Namespace Keos
    00125
    00126 #endif // KEOS_RENDERWINDOW_H