forked from JanWichelmann/AoETechTree
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectDrawHandler.h
More file actions
76 lines (69 loc) · 2.08 KB
/
DirectDrawHandler.h
File metadata and controls
76 lines (69 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#pragma once
/* INCLUDES */
// Base class header
#include "GameType.h"
// Standard includes
#include <ddraw.h>
// Other includes
#include "DirectDrawBufferData.h"
/* DEFINITIONS */
#pragma pack(push, 1)
// Represents an handler for the main DirectDraw instance.
// Research type name: WindowInformation.
class DirectDrawHandler : public GameType
{
protected: // Member variables
HINSTANCE _applicationInstance;
HWND _mainWindowHWnd;
HPALETTE _mainPalette;
DirectDrawBufferData *_backBufferBufferData;
DirectDrawBufferData *_primarySurfaceBufferData;
DirectDrawBufferDataListElement *_firstBufferDataListElement;
IDirectDraw *_directDrawObject;
IDirectDrawSurface *_primaryDirectDrawSurface;
IDirectDrawClipper *_directDrawClipper;
IDirectDrawPalette *_directDrawMainPalette;
int _systemMemoryCmdParamSet;
int _mainWindowClientWidth;
int _mainWindowClientHeight;
int _bitsPerPixel;
int _initializationStatus;
char _atLeast8BitPerPixelPlus1;
char _fullScreenModePlus1;
char _unknownValue1b;
char _unknownValue1c;
int _unknownFullScreenRelated;
int _displayIsBankSwitched;
int _transparentColorKeyBlittingForSourceEnabled;
char _unknown2a[8];
int _has_8Bit_640x480_Surface;
int _has_8Bit_800x600_Surface;
int _has_8Bit_1024x768_Surface;
int _has_8Bit_1280x1024_Surface;
int _has_8Bit_1600x1200_Surface;
int _has_8Bit_320x200_Surface;
int _has_8Bit_320x240_Surface;
int _has_16Bit_320x200_Surface;
int _has_16Bit_320x240_Surface;
int _has_16Bit_640x480_Surface;
int _has_16Bit_800x600_Surface;
int _has_16Bit_1024x768_Surface;
int _has_16Bit_1600x1200_Surface;
int _has_24Bit_320x200_Surface;
int _has_24Bit_320x240_Surface;
int _has_24Bit_640x480_Surface;
int _has_24Bit_800x600_Surface;
int _has_24Bit_1024x768_Surface;
int _has_24Bit_1600x1200_Surface;
int _has_32Bit_320x200_Surface;
int _has_32Bit_320x240_Surface;
int _has_32Bit_640x480_Surface;
int _has_32Bit_800x600_Surface;
int _has_32Bit_1024x768_Surface;
int _has_32Bit_1600x1200_Surface;
PALETTEENTRY _mainPaletteData[256];
public:
// Returns the main palette handle.
HPALETTE GetMainPalette();
};
#pragma pack(pop)