* Make every ITask know about the Kernel in which the run.
[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 <Amaltheia/Graphics.h>\r
13 #include <Amaltheia/Sprite.h>\r
14 \r
15 \r
16 class CVideoUpdate : public ITask  \r
17 {\r
18 public:\r
19         CVideoUpdate(CKernel* kernel);\r
20         virtual ~CVideoUpdate();\r
21         AUTO_SIZE;\r
22 \r
23         static int scrWidth, scrHeight, scrBPP;\r
24         static CMMPointer<Dator<int> > screenWidth, screenHeight, screenBPP;\r
25 \r
26         bool Start();\r
27         void Update();\r
28         void Stop();\r
29 \r
30         Graphics* getGraphics() { return this->g; }\r
31 private:\r
32         Graphics *g;\r
33 \r
34 };\r
35 #endif // !defined(AFX_VIDEOUPDATE_H__FB4B263B_4FA7_4700_BB70_EE5CB1768E83__INCLUDED_)\r