-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGame.h
51 lines (38 loc) · 865 Bytes
/
Game.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef GAME_H
#define GAME_H
#include "d3dApp.h"
#include "DirectInput.h"
#include <crtdbg.h>
#include <string>
#include "GfxStats.h"
#include <list>
#include "Level.h"
#include "Graphics.h"
#include "Menu.h"
//#include "GameState.h"
#include "Window.h"
#include "Editor.h"
class Camera;
class GameState;
class Game : public D3DApp
{
public:
Game(HINSTANCE hInstance, std::string winCaption, D3DDEVTYPE devType, DWORD requestedVP);
~Game();
bool checkDeviceCaps();
void onLostDevice();
void onResetDevice();
void updateScene(float dt);
void drawScene();
void changeState(GameState* state);
void loadBkgd(char* filename);
void drawBkgd();
//void buildMainMenu(void);
//std::string mainMenuHandler(void);
LRESULT msgProc(UINT msg, WPARAM wParam, LPARAM lParam);
private:
HWND input;
GfxStats* mGfxStats;
GameState *mGameState;
};
#endif