For DOS Protected Mode version of sensor core software
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.
 
 
 
 

66 lines
1.4 KiB

//----------------------------------------------------------------------------
// 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 uint8_t& operator[] (long nIndex) { return s_pVideoMem[ nIndex ]; }
inline operator uint8_t huge *() { return s_pVideoMem; }
inline int32_t GetWidth() { return 320L; }
inline int32_t GetHeight() { return 200L; }
void OutInteger( int32_t nShift, int16_t nValue );
private:
static uint8_t huge* s_pVideoMem;
};
extern CScreen g_Screen;
#endif // DEBUG_GRAPH_SCREEN
#ifdef DEBUG_CRT_SCREEN
class CCRT
{
public:
CCRT() { m_lpVideo = (uint8_t huge*)0xB8000000UL; }
public:
void TextOut( int16_t x, int16_t y, LPCTSTR pText, int16_t nText );
void IntOut( int16_t x, int16_t y, int16_t nValue );
void HexOut( int16_t x, int16_t y, int16_t nValue );
private:
uint8_t huge* m_lpVideo;
};
extern CCRT g_CRT;
#endif //DEBUG_CRT_SCREEN
#endif