Crazy Eddie's GUI System  ${CEGUI_VERSION}
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
CEGuiD3D11BaseApplication.h
1 /***********************************************************************
2  created: Tue May 29 2012
3  author: Paul D Turner
4 *************************************************************************/
5 /***************************************************************************
6  * Copyright (C) 2004 - 2012 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 _CEGuiD3D11BaseApplication_h_
28 #define _CEGuiD3D11BaseApplication_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 D3D11 specifics
39 struct CEGuiBaseApplication11Impl;
40 
43 {
44 public:
47  void destroyRenderer();
48 
49 protected:
50  bool initialiseDirect3D(unsigned int width, unsigned int height,
51  bool windowed);
52  void cleanupDirect3D();
53 
54  // Implementation of base class.
55  void run();
56  void destroyWindow();
57  void beginRendering(const float elapsed);
58  void endRendering();
59 
61  CEGuiBaseApplication11Impl* pimpl;
64 };
65 
66 #endif
67 
DWORD d_lastFrameTime
counter used to track elapsed time
Definition: CEGuiD3D11BaseApplication.h:63
void destroyWindow()
The abstract function for destroying the renderer and the window.
void run()
The abstract function for running the application.
Base application abstract base class.
Definition: CEGuiBaseApplication.h:69
CEGuiBaseApplication implementation for Microsoft Direct3D 11.
Definition: CEGuiD3D11BaseApplication.h:42
void beginRendering(const float elapsed)
Implementation function to perform required pre-render operations.
CEGuiBaseApplication11Impl * pimpl
Pointer to the struct holding D3D specific fields.
Definition: CEGuiD3D11BaseApplication.h:61
void endRendering()
Implementation function to perform required post-render operations.