Files
Cyd 2b8ca921cb Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS
Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
2026-06-24 21:28:16 -05:00

56 lines
1.3 KiB
C++

// DrawInfo.h: interface for the DrawInfo class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_DRAWINFO_H__6BA54536_57E6_4CD5_84C3_F1AE4F38038E__INCLUDED_)
#define AFX_DRAWINFO_H__6BA54536_57E6_4CD5_84C3_F1AE4F38038E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ViewWindowInfo.h"
class DrawInfo
{
protected:
CPen *PenArray;
CBrush HelperBrush;
int CurrentPen;
CDC *pDC;
const static char *PenName[];
public:
bool UseBrushes;
enum PenTypes { SelectPen=0,
HelperPen,
VehiclePen,
BuildingPen,
CulturalPen,
MechPen,
ExtraHelperPen,
WarningPen,
NonComPen,
PenCount};
ViewWindowInfo vinf;
CDC *GetDC() {return pDC;}
void SetDC(CDC *dc) {pDC=dc; CurrentPen=-1;}
void SetPen(int pen);
CPen *GetPen(int pen) {Verify(pen<PenCount); return PenArray+pen;}
CString GetPenName(int pen) { Verify(pen<PenCount); return CString(PenName[pen]);}
void SetPenColor(int idx,COLORREF ref);
COLORREF GetPenColor(int idx);
void SaveToReg();
void LoadFromReg();
DrawInfo();
virtual ~DrawInfo();
};
#endif // !defined(AFX_DRAWINFO_H__6BA54536_57E6_4CD5_84C3_F1AE4F38038E__INCLUDED_)