|
|
|
|
Posted 2008-08-11, 02:50 AM
in reply to Draco2003's post starting "It is part of a Game Engine, as you can..."
|
|
|
|
Here is 3.1 maybe that will help...
Code:
class GameEngine
{
protected:
// Member Variables
static GameEngine* m_pGameEngine;
HINSTANCE m_hInstance;
HWND m_hWindow;
TCHAR m_szWindowClass[32];
TCHAR m_szTitle[32];
WORD m_wIcon, m_wSmallIcon;
int m_iWidth, m_iHeight;
int m_iFrameDelay;
BOOL m_bSleep;
public:
// Constructors and Destructor
GameEngine(HINSTANCE hInstance, LPTSTR szWindowClass, LPTSTR szTitle, WORD wIcon, WORD wSmallIcon, int iWidth = 640, int iHeight = 480);
virtual ~GameEngine();
// General Methods
static GameEngine* GetEngine() { return m_pGameEngine; };
BOOL Initialize(int iCmdShow);
LRESULT HandleEvent(HWND hWindow, UINT msg, WPARAM wParam, LPARAM lParam);
// Accessor Methods
HINSTANCE GetInstance() {return m_hInstance; };
HWND GetWindow() { return m_hWindow; };
void SetWindow(HWND hWindow) {m_hWindow = hWindow; };
LPTSTR GetTitle() { return m_szTitle; };
WORD GetIcon() { return m_wIcon; };
WORD GetSmallIcon() { return m_wSmallIcon; };
int GetWidth() { return m_iWidth; };
int GetHeight() { return m_iHeight; };
int GetFrameDelay() { return m_iFramDelay; };
void SetFrameDelay(int iFrameRate) { m_iFrameDelay = 1000 / iFrameRate; };
BOOL GetSleep() { return m_bSleep; };
void SetSleep(BOOL bSleep) { m_bSleep = bSleep; };
}; |
R.I.P
Pontiac
Jan. 1926 - Dec. 2010 est.
Check the Gallery and Scrapbook often!
[deviantArt Account!]
Spy Hard
Agent WD-40:
Quote:
Well, you carry a UB-21 Schnauzer with an OPS Silencer, that's KGB, You prefer an 18-K over an AK, Your surveillance technique is NSA, Your ID is CIA, you recieved your PHD at NYU, traded in your GTO for a BMW, you listen to CD's by REM and STP, and you'd like to see JFK in his BVDs getting down with OPP and you probably put the toilet paper back on the roll with the paper on the inside...
|
|
|
|
|
|
|
|
|
|
|
|