|
// CMAIN LIB - APPLICATION AND DIRECT WRAPPER
//
// Written by Mauricio Teichmann Ritter
//
// Copyright (C) 2002, Brazil. All rights reserved.
//
//
#include "stdafx.h"
#include "cWindow.h"
#ifndef _APPLIB_APPCLASS_
#define _APPLIB_APPCLASS_
class cApplication
{
protected:
LPSTR m_lpszAppName;
LPSTR m_lpszwndClassName;
DWORD m_ColorDepth;
DWORD m_ScreenHeight;
DWORD m_ScreenWidth;
public:
BOOL m_bActive;
void PreventFlip();
bool m_bDontFlip;
HWND GetMainWnd();
virtual void ExitApp();
LPDIRECTDRAW7 GetDirectDraw();
LPDIRECTDRAW7 m_pDD;
LPDIRECTDRAWSURFACE7 m_pFrontBuffer;
LPDIRECTDRAWSURFACE7 m_pBackBuffer;
cApplication();
~cApplication();
static HINSTANCE m_hInst;
static HINSTANCE GetInstHandle() { return m_hInst; };
BOOL InitApplication();
BOOL RunApplication();
BOOL InitDirectX();
virtual void DoIdle();
virtual void AppInitialized();
private:
cWindow m_pWindow;
};
cApplication* GetMainApp();
#ifdef _DEBUG
void Log(char* sFormat, ...);
#endif
#endif
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
Mauricio Ritter lives in Brazil, in the city of Porto Alegre. He is working with software development for about 8 years, and most of his work was done at a bank, within a home and office banking system.
Mauricio also holds MCSD, MCSE, MCDBA, MCAD and MCT Microsoft certifications and work as a trainer/consultant in some MS CTEC in his city.
Mauricio also works in his own programming site, aimed to Brazilian Developers: http://www.dotnetmaniacs.com.br
In his spare time he studys korean language...