b8273c5eeff43d88ef163f6b147ed49da803da57
[matthijs/ABM2.git] / ABM2 / Engine / VideoUpdate.h
1 // VideoUpdate.h: interface for the CVideoUpdate class.\r
2 //\r
3 //////////////////////////////////////////////////////////////////////\r
4 \r
5 #if !defined(AFX_VIDEOUPDATE_H__FB4B263B_4FA7_4700_BB70_EE5CB1768E83__INCLUDED_)\r
6 #define AFX_VIDEOUPDATE_H__FB4B263B_4FA7_4700_BB70_EE5CB1768E83__INCLUDED_\r
7 \r
8 #if _MSC_VER > 1000\r
9 #pragma once\r
10 #endif // _MSC_VER > 1000\r
11 \r
12 #include <d3d9.h>\r
13 #include <d3dx9.h>\r
14 \r
15 #include "engine.h"\r
16 extern  LPDIRECT3DDEVICE9 d3ddev;    // the pointer to the device class\r
17 \r
18 class CVideoUpdate : public ITask  \r
19 {\r
20 public:\r
21         CVideoUpdate();\r
22         virtual ~CVideoUpdate();\r
23         AUTO_SIZE;\r
24 \r
25         static int scrWidth, scrHeight, scrBPP;\r
26         static CMMPointer<Dator<int> > screenWidth, screenHeight, screenBPP;\r
27 \r
28         bool Start();\r
29         void Update();\r
30         void Stop();\r
31 \r
32 private:\r
33         LPDIRECT3D9 d3d;    // the pointer to our Direct3D interface\r
34 \r
35 };\r
36 \r
37 #endif // !defined(AFX_VIDEOUPDATE_H__FB4B263B_4FA7_4700_BB70_EE5CB1768E83__INCLUDED_)\r