This repository has been archived by the owner on Oct 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsprites.h
73 lines (68 loc) · 1.95 KB
/
sprites.h
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
int DIBDisplaySpriteEx(
uint8_t * dstDIB, // destination DIB
LPBITMAPINFOHEADER lpBMI, // destination BITMAPINFOHEADER
int xpos, // x-position
int ypos, // y-position
int mirr_x, // x-mirror flag
int mirr_y, // y-mirror flag
int clip_left, // clipping rectangle
int clip_top,
int clip_right,
int clip_bottom,
uint8_t * sprbuf, // sprite data
int index); // sprite number
int DIBTranslateSprite(
uint8_t * dstDIB, // destination DIB
LPBITMAPINFOHEADER lpBMI, // destination BITMAPINFOHEADER
int xpos, // x-position
int ypos, // y-position
int mirr_x, // x-mirror flag
int mirr_y, // y-mirror flag
uint8_t * sprbuf, // sprite data
int index, // sprite number
const uint8_t * xtable); // translation table
int DIBTranslateSpriteEx(
uint8_t * dstDIB, // destination DIB
LPBITMAPINFOHEADER lpBMI, // destination BITMAPINFOHEADER
int xpos, // x-position
int ypos, // y-position
int mirr_x, // x-mirror flag
int mirr_y, // y-mirror flag
int clip_left, // clipping rectangle
int clip_top,
int clip_right,
int clip_bottom,
uint8_t * sprbuf, // sprite data
int index, // sprite number
const uint8_t * xtable);
int DIBMaskSprite(
uint8_t * dstDIB, // destination DIB
LPBITMAPINFOHEADER lpBMI, // destination BITMAPINFOHEADER
int xpos, // x-position
int ypos, // y-position
int mirr_x, // x-mirror flag
int mirr_y, // y-mirror flag
uint8_t * sprbuf, // sprite data
int index, // sprite number
int maskval);
int DIBCopyBlock(
uint8_t * dstDIB,
LPBITMAPINFOHEADER lpbmiDST,
int dxpos,
int dypos,
int xsize,
int ysize,
uint8_t * srcDIB,
LPBITMAPINFOHEADER lpbmiSRC,
int sxpos,
int sypos
);
int DIBSetBlock(
uint8_t * dstDIB,
LPBITMAPINFOHEADER lpbmiDST,
int dxpos,
int dypos,
int xsize,
int ysize,
int fillval
);