-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStageState.h
More file actions
38 lines (31 loc) · 726 Bytes
/
StageState.h
File metadata and controls
38 lines (31 loc) · 726 Bytes
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
#pragma once
#include "GameState.h"
#include "RenderTarget.h"
class Game2D;
class C3DSModel;
class CStageState: public CGameState
{
private:
C3DSModel* m_model;
CRenderTarget m_normalMap;
CRenderTarget m_diffuseMap;
CRenderTarget m_shadowMap;
LPDIRECT3DTEXTURE9 m_stepTexture;
LPD3DXEFFECT m_effect;
D3DXMATRIXA16 m_lightMat;
D3DXMATRIXA16 m_texMat;
float m_counter;
void RenderNormalMap();
void RenderShadowMap();
public:
CStageState(void);
~CStageState(void);
void Start(CGameState * prior);
void Draw2D(CGame2D * g2d);
void PreRender();
void Draw3D();
void Animate(float elapsedTime);
void Update(float elapsedTime);
void DeviceLost();
void DeviceReset();
};