Old fashion design for PC-104
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright � 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: SCREEN.H
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of SCREEN.H
//----------------------------------------------------------------------------
#ifndef __SCREEN__H__INCLUDED__
#define __SCREEN__H__INCLUDED__
#include "StdAfx.h"
#ifdef DEBUG_GRAPH_SCREEN
class CScreen{public: CScreen(); ~CScreen();
public: BOOL Create(); void Destroy(); void Clear();
public: inline BYTE& operator[] (long nIndex) { return s_pVideoMem[ nIndex ]; } inline operator BYTE huge *() { return s_pVideoMem; } inline LONG GetWidth() { return 320L; } inline LONG GetHeight() { return 200L; } void OutInteger( LONG nShift, INT nValue );
private: static BYTE huge* s_pVideoMem;};
extern CScreen g_Screen;
#endif // DEBUG_GRAPH_SCREEN
#ifdef DEBUG_CRT_SCREEN
class CCRT{public: CCRT() { m_lpVideo = (BYTE huge*)0xB8000000UL; }
public: void TextOut( INT x, INT y, LPCTSTR pText, INT nText ); void IntOut( INT x, INT y, INT nValue ); void HexOut( INT x, INT y, INT nValue );
private: BYTE huge* m_lpVideo;};
extern CCRT g_CRT;
#endif //DEBUG_CRT_SCREEN
#endif
|