Crazy Eddie's GUI System  ${CEGUI_VERSION}
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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  void destroyRenderer();
52 
53 protected:
54  /*************************************************************************
55  Implementation Methods
56  *************************************************************************/
58  bool initialiseDirect3D(unsigned int width, unsigned int height,
59  bool windowed);
60 
62  void cleanupDirect3D();
63 
64  // Implementation of base class abstract methods.
65  void run();
66  void destroyWindow();
67  void beginRendering(const float elapsed);
68  void endRendering();
69 
70  /*************************************************************************
71  Data fields
72  *************************************************************************/
74  CEGuiBaseApplication10Impl* pimpl;
75 
76  // counter used to track elapsed time
77  DWORD d_lastFrameTime;
78 };
79 
80 #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:69
void run()
The abstract function for running the application.
~CEGuiD3D10BaseApplication()
Destructor.
CEGuiBaseApplication10Impl * pimpl
Pointer to the struct holding D3D specific fields.
Definition: CEGuiD3D10BaseApplication.h:74
bool initialiseDirect3D(unsigned int width, unsigned int height, bool windowed)
Initialises Direct3D system.
void endRendering()
Implementation function to perform required post-render operations.