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
GameCode.h
Go to the documentation of this file.
1 // Filename: GameCode.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 "GameContainer.h"
11 #include "GraphicsDevice.h"
12 #include "GameTime.h"
13 
14 namespace CGF
15 {
17  {
18  friend class GameEngine;
19 
20  public:
21  GameCode();
22  virtual ~GameCode();
23 
24  virtual bool Initialize() = 0;
25  virtual bool LoadContent() = 0;
26  virtual bool UnloadContent() = 0;
27  virtual bool Update(GameTime* gameTime) = 0;
28  virtual bool Draw(GraphicsDevice* graphics) = 0;
29 
30  GameContainer* GetGame();
31 
32  protected:
34 
35  private:
36  void PreInitialize(GameContainer* game);
37  };
38 }