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
GameContainer.h
Go to the documentation of this file.
1 // Filename: GameContainer.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 "CGFInclude.h"
10 #include "Window.h"
11 #include "GraphicsDevice.h"
12 #include "Input.h"
13 
14 namespace CGF
15 {
17  {
18  friend class GameEngine;
19  friend class GameCode;
20 
21  public:
22  Window* GetWindow();
23  GraphicsDevice* GetGraphicsDevice();
24  Input* GetInput();
25 
26  private:
27  GameContainer();
28  ~GameContainer();
29 
30  void Initialize(Window* window, GraphicsDevice* graphics, Input* input);
31 
32  private:
33  Window* m_window;
34  GraphicsDevice* m_graphics;
35  Input* m_input;
36  };
37 }