Crazy Eddie's GUI System  ${CEGUI_VERSION}
CEGuiD3D10BaseApplication.h
1 /***********************************************************************
2  created: Sun May 25 2008
3  author: Paul D Turner
4 *************************************************************************/
5 /***************************************************************************
6  * Copyright (C) 2004 - 2009 Paul D Turner & The CEGUI Development Team
7  *
8  * Permission is hereby granted, free of charge, to any person obtaining
9  * a copy of this software and associated documentation files (the
10  * "Software"), to deal in the Software without restriction, including
11  * without limitation the rights to use, copy, modify, merge, publish,
12  * distribute, sublicense, and/or sell copies of the Software, and to
13  * permit persons to whom the Software is furnished to do so, subject to
14  * the following conditions:
15  *
16  * The above copyright notice and this permission notice shall be
17  * included in all copies or substantial portions of the Software.
18  *
19  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22  * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
23  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
24  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
25  * OTHER DEALINGS IN THE SOFTWARE.
26  ***************************************************************************/
27 #ifndef _CEGuiD3D10BaseApplication_h_
28 #define _CEGuiD3D10BaseApplication_h_
29 
30 #include "CEGuiBaseApplication.h"
31 #include "CEGUI/GeometryBuffer.h"
32 
33 #if defined( __WIN32__ ) || defined( _WIN32 )
34 # define WIN32_LEAN_AND_MEAN
35 # include <windows.h>
36 #endif
37 
38 // forward declare struct that will hold D3D10 specifics
39 struct CEGuiBaseApplication10Impl;
40 
43 {
44 public:
47 
50 
51 protected:
52  /*************************************************************************
53  Implementation Methods
54  *************************************************************************/
56  bool initialiseDirect3D(unsigned int width, unsigned int height,
57  bool windowed);
58 
60  void cleanupDirect3D();
61 
62  // Implementation of base class abstract methods.
63  void run();
64  void destroyWindow();
65  void beginRendering(const float elapsed);
66  void endRendering();
67 
68  /*************************************************************************
69  Data fields
70  *************************************************************************/
72  CEGuiBaseApplication10Impl* pimpl;
73 
74  // counter used to track elapsed time
75  DWORD d_lastFrameTime;
76 };
77 
78 #endif // end of guard _CEGuiD3D10BaseApplication_h_
CEGuiD3D10BaseApplication()
Constructor.
void destroyWindow()
The abstract function for destroying the renderer and the window.
void beginRendering(const float elapsed)
Implementation function to perform required pre-render operations.
void cleanupDirect3D()
cleanup D3D objects / interfaces
CEGuiBaseApplication implementation for Microsoft Direct3D 10.
Definition: CEGuiD3D10BaseApplication.h:42
Base application abstract base class.
Definition: CEGuiBaseApplication.h:67
void run()
The abstract function for initialising and running the application.
~CEGuiD3D10BaseApplication()
Destructor.
CEGuiBaseApplication10Impl * pimpl
Pointer to the struct holding D3D specific fields.
Definition: CEGuiD3D10BaseApplication.h:72
bool initialiseDirect3D(unsigned int width, unsigned int height, bool windowed)
Initialises Direct3D system.
void endRendering()
Implementation function to perform required post-render operations.