aboutsummaryrefslogtreecommitdiffstats
path: root/vmdahal.h
diff options
context:
space:
mode:
authorJaroslav Hensl <jara@hensl.cz>2023-05-26 00:11:19 +0200
committerJaroslav Hensl <jara@hensl.cz>2023-05-26 00:11:19 +0200
commit14395d1ce8759ce490beb87c80ddb1f7ed35904f (patch)
tree0d3e72e924dcb248b1eb88cfb8782d34b551d6a9 /vmdahal.h
parentf94e063607454180284f32d88e01e0bc998e460b (diff)
downloadvmdisp9x-14395d1ce8759ce490beb87c80ddb1f7ed35904f.tar.gz
directdraw support (skeleton)
Diffstat (limited to 'vmdahal.h')
-rw-r--r--vmdahal.h47
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