diff options
author | Jaroslav Hensl <jara@hensl.cz> | 2023-05-26 00:11:19 +0200 |
---|---|---|
committer | Jaroslav Hensl <jara@hensl.cz> | 2023-05-26 00:11:19 +0200 |
commit | 14395d1ce8759ce490beb87c80ddb1f7ed35904f (patch) | |
tree | 0d3e72e924dcb248b1eb88cfb8782d34b551d6a9 /vmdahal.h | |
parent | f94e063607454180284f32d88e01e0bc998e460b (diff) | |
download | vmdisp9x-14395d1ce8759ce490beb87c80ddb1f7ed35904f.tar.gz |
directdraw support (skeleton)
Diffstat (limited to 'vmdahal.h')
-rw-r--r-- | vmdahal.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/vmdahal.h b/vmdahal.h new file mode 100644 index 0000000..519f1fe --- /dev/null +++ b/vmdahal.h @@ -0,0 +1,47 @@ +#ifndef __VMDAHAL_H__INCLUDED__
+#define __VMDAHAL_H__INCLUDED__
+
+#pragma pack(push)
+#pragma pack(1)
+
+typedef struct VMDAHALCB32
+{
+ LPDDHAL_CREATESURFACE CreateSurface;
+ LPDDHAL_CANCREATESURFACE CanCreateSurface;
+ LPDDHALSURFCB_DESTROYSURFACE DestroySurface;
+ LPDDHALSURFCB_FLIP Flip;
+ LPDDHALSURFCB_SETCLIPLIST SetClipList;
+ LPDDHALSURFCB_LOCK Lock;
+ LPDDHALSURFCB_UNLOCK Unlock;
+ LPDDHALSURFCB_BLT Blt;
+ LPDDHALSURFCB_SETCOLORKEY SetColorKey;
+ LPDDHALSURFCB_ADDATTACHEDSURFACE AddAttachedSurface;
+ LPDDHALSURFCB_GETBLTSTATUS GetBltStatus;
+ LPDDHALSURFCB_GETFLIPSTATUS GetFlipStatus;
+ LPDDHALSURFCB_UPDATEOVERLAY UpdateOverlay;
+ LPDDHALSURFCB_SETOVERLAYPOSITION SetOverlayPosition;
+ LPDDHAL_GETDRIVERINFO GetDriverInfo;
+} VMDAHALCB32_t;
+
+typedef struct VMDAHAL
+{
+ DWORD dwSize;
+ DWORD vramLinear;
+ DWORD vramSize;
+
+ DWORD dwWidth;
+ DWORD dwHeight;
+ DWORD dwBpp;
+ DWORD dwPitch;
+
+ DDPIXELFORMAT_t ddpf;
+ DDHALINFO_t ddHALInfo;
+
+ VMDAHALCB32_t cb32;
+
+ DWORD hInstance;
+
+} VMDAHAL_t;
+#pragma pack(pop)
+
+#endif
|