C++ Game Framework  2013-06-04
CGF is a DirectX 11 game framework, built in C++ and DirectX 11. This is used to contain many to the DirectX functionality and wrap them into a framework to make game development easier.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
GameEngine.h
Go to the documentation of this file.
1 // Filename: GameEngine.h
4 
5 //Preprocessor directive designed to cause the current source file to be included only once in a single compilation
6 #pragma once
7 
8 //Includes
9 #include <windows.h>
10 #include "GraphicsDevice.h"
11 #include "CGFInclude.h"
12 #include "Window.h"
13 #include "GameCode.h"
14 #include "Input.h"
15 #include "GameContainer.h"
16 #include "CGFException.h"
17 #include "GameTime.h"
18 
19 namespace CGF
20 {
22  {
23  public:
24  GameEngine();
25  ~GameEngine();
26 
27  bool Initialize(GameCode* code, const int windowWidth, const int windowHeight, const bool isWindowFullscreen);
28  void Shutdown();
29  void Run();
30 
31  private:
32  bool Frame();
33 
34  private:
35  Window* m_window;
36  GraphicsDevice* m_graphics;
37  Input* m_input;
38  GameTime* m_gameTime;
40  GameCode* m_gameCode;
41  };
42 }