forked from Matway/mpl-sl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gdi32.mpl
61 lines (54 loc) · 1.62 KB
/
gdi32.mpl
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
# Copyright (C) Matway Burkow
#
# This repository and all its contents belong to Matway Burkow (referred here and below as "the owner").
# The content is for demonstration purposes only.
# It is forbidden to use the content or any part of it for any purpose without explicit permission from the owner.
# By contributing to the repository, contributors acknowledge that ownership of their work transfers to the owner.
"control.Cref" use
"control.Int32" use
"control.Nat16" use
"control.Nat32" use
"control.Nat8" use
"conventions.stdcall" use
"user32.HDC" use
PIXELFORMATDESCRIPTOR: [{
nSize: Nat16;
nVersion: Nat16;
dwFlags: Nat32;
iPixelType: Nat8;
cColorBits: Nat8;
cRedBits: Nat8;
cRedShift: Nat8;
cGreenBits: Nat8;
cGreenShift: Nat8;
cBlueBits: Nat8;
cBlueShift: Nat8;
cAlphaBits: Nat8;
cAlphaShift: Nat8;
cAccumBits: Nat8;
cAccumRedBits: Nat8;
cAccumGreenBits: Nat8;
cAccumBlueBits: Nat8;
cAccumAlphaBits: Nat8;
cDepthBits: Nat8;
cStencilBits: Nat8;
cAuxBuffers: Nat8;
iLayerType: Nat8;
bReserved: Nat8;
dwLayerMask: Nat32;
dwVisibleMask: Nat32;
dwDamageMask: Nat32;
}];
# Gdi32.Lib should be included for these functions
{
hdc: HDC;
ppfd: PIXELFORMATDESCRIPTOR Cref;
} Int32 {convention: stdcall;} "ChoosePixelFormat" importFunction
{
hdc: HDC;
format: Int32;
ppfd: PIXELFORMATDESCRIPTOR Cref;
} Int32 {convention: stdcall;} "SetPixelFormat" importFunction
{
Arg1: HDC;
} Int32 {convention: stdcall;} "SwapBuffers" importFunction