source: trunk/src/ddraw/divewrap.h@ 10367

Last change on this file since 10367 was 9698, checked in by sandervl, 23 years ago

Removed dependency on dive.dll. Load it on demand.

File size: 3.4 KB
Line 
1/* $Id: divewrap.h,v 1.5 2003-01-21 11:20:35 sandervl Exp $ */
2
3/*
4 * Wrapper for DIVE functions calls
5 *
6 * Copyright 1999 Markus Montkowski
7 *
8 * Project Odin Software License can be found in LICENSE.TXT
9 *
10 */
11
12
13#ifndef __DIVEWRAP_H__
14 #define __DIVEWRAP_H__
15
16 #define INCL_MM_OS2
17 #include <os2sel.h>
18 #include <dive.h>
19
20void DiveUnload();
21BOOL DiveLoad();
22
23ULONG APIENTRY _DiveOpen ( HDIVE *a, BOOL b, PVOID c );
24ULONG APIENTRY _DiveQueryCaps ( PDIVE_CAPS a, ULONG b );
25ULONG APIENTRY _DiveSetupBlitter ( HDIVE a, PSETUP_BLITTER b );
26ULONG APIENTRY _DiveBlitImage ( HDIVE a, ULONG b, ULONG c );
27ULONG APIENTRY _DiveBlitImageLines ( HDIVE a, ULONG b,
28 ULONG c, PBYTE d );
29ULONG APIENTRY _DiveClose ( HDIVE a );
30ULONG APIENTRY _DiveAcquireFrameBuffer ( HDIVE a, PRECTL b );
31ULONG APIENTRY _DiveSwitchBank ( HDIVE a, ULONG b );
32ULONG APIENTRY _DiveDeacquireFrameBuffer ( HDIVE a );
33ULONG APIENTRY _DiveCalcFrameBufferAddress ( HDIVE a, PRECTL b,
34 PBYTE *c, PULONG d,
35 PULONG e );
36ULONG APIENTRY _DiveAllocImageBuffer ( HDIVE a, PULONG b,
37 FOURCC c, ULONG d,
38 ULONG e, ULONG f,
39 PBYTE g );
40ULONG APIENTRY _DiveFreeImageBuffer ( HDIVE a, ULONG b );
41ULONG APIENTRY _DiveBeginImageBufferAccess ( HDIVE a, ULONG b,
42 PBYTE *c, PULONG d,
43 PULONG e );
44ULONG APIENTRY _DiveEndImageBufferAccess ( HDIVE a, ULONG b );
45ULONG APIENTRY _DiveSetDestinationPalette ( HDIVE a, ULONG b,
46 ULONG c, PBYTE d );
47ULONG APIENTRY _DiveSetSourcePalette ( HDIVE a, ULONG b,
48 ULONG c, PBYTE d );
49ULONG APIENTRY _DiveSetTransparentBlitMode ( HDIVE a, ULONG b,
50 ULONG c, ULONG d );
51
52 #undef DiveQueryCaps
53 #define DiveQueryCaps _DiveQueryCaps
54
55 #undef DiveOpen
56 #define DiveOpen _DiveOpen
57
58 #undef DiveSetupBlitter
59 #define DiveSetupBlitter _DiveSetupBlitter
60
61 #undef DiveBlitImage
62 #define DiveBlitImage _DiveBlitImage
63
64 #undef DiveBlitImageLines
65 #define DiveBlitImageLines _DiveBlitImageLines
66
67 #undef DiveClose
68 #define DiveClose _DiveClose
69
70 #undef DiveAcquireFrameBuffer
71 #define DiveAcquireFrameBuffer _DiveAcquireFrameBuffer
72
73 #undef DiveSwitchBank
74 #define DiveSwitchBank _DiveSwitchBank
75
76 #undef DiveDeacquireFrameBuffer
77 #define DiveDeacquireFrameBuffer _DiveDeacquireFrameBuffer
78
79 #undef DiveCalcFrameBufferAddress
80 #define DiveCalcFrameBufferAddress _DiveCalcFrameBufferAddress
81
82 #undef DiveAllocImageBuffer
83 #define DiveAllocImageBuffer _DiveAllocImageBuffer
84
85 #undef DiveFreeImageBuffer
86 #define DiveFreeImageBuffer _DiveFreeImageBuffer
87
88 #undef DiveBeginImageBufferAccess
89 #define DiveBeginImageBufferAccess _DiveBeginImageBufferAccess
90
91 #undef DiveEndImageBufferAccess
92 #define DiveEndImageBufferAccess _DiveEndImageBufferAccess
93
94 #undef DiveSetDestinationPalette
95 #define DiveSetDestinationPalette _DiveSetDestinationPalette
96
97 #undef DiveSetSourcePalette
98 #define DiveSetSourcePalette _DiveSetSourcePalette
99
100 #undef DiveSetTransparentBlitMode
101 #define DiveSetTransparentBlitMode _DiveSetTransparentBlitMode
102
103
104#endif
Note: See TracBrowser for help on using the repository browser.