1 #ifndef CLIB_PICASSO96API_PROTOS_H
2 #define CLIB_PICASSO96API_PROTOS_H
6 ** $VER: Picasso96API_protos.h 1.0 (09.04.2010)
8 ** C prototypes. For use with 32 bit integers only.
11 ** All Rights Reserved
14 #ifndef LIBRARIES_PICASSO96_H
15 #include <libraries/Picasso96.h>
18 struct BitMap
* p96AllocBitMap(ULONG SizeX
, ULONG SizeY
, ULONG Depth
, ULONG Flags
,
19 struct BitMap
* FriendBitMap
, RGBFTYPE RGBFormat
);
20 void p96FreeBitMap(struct BitMap
* BitMap
);
21 ULONG
p96GetBitMapAttr(struct BitMap
* BitMap
, ULONG Attribute
);
22 LONG
p96LockBitMap(struct BitMap
* BitMap
, UBYTE
* Buffer
, ULONG Size
);
23 void p96UnlockBitMap(struct BitMap
* BitMap
, LONG Lock
);
24 ULONG
p96BestModeIDTagList(struct TagItem
* Tags
);
25 ULONG
p96BestModeIDTags(ULONG Tags
, ...);
26 ULONG
p96RequestModeIDTagList(struct TagItem
* Tags
);
27 ULONG
p96RequestModeIDTags(ULONG Tags
, ...);
28 struct List
* p96AllocModeListTagList(struct TagItem
* Tags
);
29 struct List
* p96AllocModeListTags(ULONG Tags
, ...);
30 void p96FreeModeList(struct List
* List
);
31 ULONG
p96GetModeIDAttr(ULONG Mode
, ULONG Attribute
);
32 struct Screen
* p96OpenScreenTagList(struct TagItem
* Tags
);
33 struct Screen
* p96OpenScreenTags(ULONG Tags
, ...);
34 BOOL
p96CloseScreen(struct Screen
* Screen
);
35 void p96WritePixelArray(struct RenderInfo
* ri
, UWORD SrcX
, UWORD SrcY
, struct RastPort
* rp
,
36 UWORD DestX
, UWORD DestY
, UWORD SizeX
, UWORD SizeY
);
37 void p96ReadPixelArray(struct RenderInfo
* ri
, UWORD DestX
, UWORD DestY
, struct RastPort
* rp
,
38 UWORD SrcX
, UWORD SrcY
, UWORD SizeX
, UWORD SizeY
);
39 ULONG
p96WritePixel(struct RastPort
* rp
, UWORD x
, UWORD y
, ULONG color
);
40 ULONG
p96ReadPixel(struct RastPort
* rp
, UWORD x
, UWORD y
);
41 void p96RectFill(struct RastPort
* rp
, UWORD MinX
, UWORD MinY
, UWORD MaxX
, UWORD MaxY
,
43 void p96WriteTrueColorData(struct TrueColorInfo
* tci
, UWORD SrcX
, UWORD SrcY
,
44 struct RastPort
* rp
, UWORD DestX
, UWORD DestY
, UWORD SizeX
,
46 void p96ReadTrueColorData(struct TrueColorInfo
* tci
, UWORD DestX
, UWORD DestY
,
47 struct RastPort
* rp
, UWORD SrcX
, UWORD SrcY
, UWORD SizeX
,
49 struct Window
* p96PIP_OpenTagList(struct TagItem
* Tags
);
50 struct Window
* p96PIP_OpenTags(ULONG Tags
, ...);
51 BOOL
p96PIP_Close(struct Window
* Window
);
52 LONG
p96PIP_SetTagList(struct Window
* Window
, struct TagItem
* Tags
);
53 LONG
p96PIP_SetTags(struct Window
* Window
, ULONG Tags
, ...);
54 LONG
p96PIP_GetTagList(struct Window
* Window
, struct TagItem
* Tags
);
55 LONG
p96PIP_GetTags(struct Window
* Window
, ULONG Tags
, ...);
56 struct IntuiMessage
* p96PIP_GetIMsg(struct MsgPort
* Port
);
57 void p96PIP_ReplyIMsg(struct IntuiMessage
* IntuiMessage
);
58 LONG
p96GetRTGDataTagList(struct TagItem
* Tags
);
59 LONG
p96GetRTGDataTags(ULONG Tags
, ...);
60 LONG
p96GetBoardDataTagList(ULONG Board
, struct TagItem
* Tags
);
61 LONG
p96GetBoardDataTags(ULONG Board
, ULONG Tags
, ...);
62 ULONG
p96EncodeColor(RGBFTYPE RGBFormat
, ULONG Color
);
64 #endif /* CLIB_PICASSO96API_PROTOS_H */