Subversion Repositories Games.Carmageddon

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 pmbaty 1
#ifndef _PMDSPTCH_H_
2
#define _PMDSPTCH_H_
3
 
4
#include "brender/br_types.h"
5
 
6
br_pixelmap* BrPixelmapAllocateSub(br_pixelmap* src, br_int_32 x, br_int_32 y, br_int_32 w, br_int_32 h);
7
 
8
void BrPixelmapFree(br_pixelmap* src);
9
 
10
br_pixelmap* BrPixelmapResize(br_pixelmap* src, br_int_32 width, br_int_32 height);
11
 
12
br_pixelmap* BrPixelmapMatch(br_pixelmap* src, br_uint_8 match_type);
13
 
14
br_pixelmap* BrPixelmapMatchSized(br_pixelmap* src, br_uint_8 match_type, br_int_32 width, br_int_32 height);
15
 
16
br_pixelmap* BrPixelmapMatchTyped(br_pixelmap* src, br_uint_8 match_type, br_uint_8 pixelmap_type);
17
 
18
br_pixelmap* BrPixelmapMatchTypedSized(br_pixelmap* src, br_uint_8 match_type, br_uint_8 pixelmap_type, br_int_32 width, br_int_32 height);
19
 
20
br_pixelmap* BrPixelmapClone(br_pixelmap* src);
21
 
22
void BrPixelmapFill(br_pixelmap* dst, br_uint_32 colour);
23
 
24
void BrPixelmapRectangle(br_pixelmap* dst, br_int_32 x, br_int_32 y, br_int_32 w, br_int_32 h, br_uint_32 colour);
25
 
26
void BrPixelmapRectangle2(br_pixelmap* dst, br_int_32 x, br_int_32 y, br_int_32 w, br_int_32 h, br_uint_32 colour_tl, br_uint_32 colour_br);
27
 
28
br_error DispatchCopy(br_device_pixelmap* self, br_device_pixelmap* src);
29
 
30
br_error DispatchRectangleCopy(br_device_pixelmap* self, br_point* p, br_device_pixelmap* src, br_rectangle* r);
31
 
32
br_error DispatchRectangleStretchCopy(br_device_pixelmap* self, br_rectangle* r, br_device_pixelmap* src, br_rectangle* s);
33
 
34
void BrPixelmapRectangleCopy(br_pixelmap* dst, br_int_32 dx, br_int_32 dy, br_pixelmap* src, br_int_32 sx, br_int_32 sy, br_int_32 w, br_int_32 h);
35
 
36
void BrPixelmapRectangleStretchCopy(br_pixelmap* dst, br_int_32 dx, br_int_32 dy, br_int_32 dw, br_int_32 dh, br_pixelmap* src, br_int_32 sx, br_int_32 sy, br_int_32 sw, br_int_32 sh);
37
 
38
void BrPixelmapRectangleFill(br_pixelmap* dst, br_int_32 x, br_int_32 y, br_int_32 w, br_int_32 h, br_uint_32 colour);
39
 
40
void BrPixelmapDirtyRectangleCopy(br_pixelmap* dst, br_pixelmap* src, br_int_32 x, br_int_32 y, br_int_32 w, br_int_32 h);
41
 
42
void BrPixelmapDirtyRectangleClear(br_pixelmap* dst, br_int_32 x, br_int_32 y, br_int_32 w, br_int_32 h, br_uint_32 colour);
43
 
44
void BrPixelmapDirtyRectangleDoubleBuffer(br_pixelmap* dst, br_pixelmap* src, br_int_32 x, br_int_32 y, br_int_32 w, br_int_32 h);
45
 
46
void BrPixelmapPixelSet(br_pixelmap* dst, br_int_32 x, br_int_32 y, br_uint_32 colour);
47
 
48
br_uint_32 BrPixelmapPixelGet(br_pixelmap* dst, br_int_32 x, br_int_32 y);
49
 
50
void BrPixelmapCopy(br_pixelmap* dst, br_pixelmap* src);
51
 
52
void BrPixelmapLine(br_pixelmap* dst, br_int_32 x1, br_int_32 y1, br_int_32 x2, br_int_32 y2, br_uint_32 colour);
53
 
54
void BrPixelmapDoubleBuffer(br_pixelmap* dst, br_pixelmap* src);
55
 
56
void BrPixelmapText(br_pixelmap* dst, br_int_32 x, br_int_32 y, br_uint_32 colour, br_font* font, char* text);
57
 
58
void BrPixelmapTextF(br_pixelmap* dst, br_int_32 x, br_int_32 y, br_uint_32 colour, br_font* font, char* fmt, ...);
59
 
60
br_uint_16 BrPixelmapTextWidth(br_pixelmap* dst, br_font* font, char* text);
61
 
62
br_uint_16 BrPixelmapTextHeight(br_pixelmap* dst, br_font* font);
63
 
64
void BrPixelmapCopyBits(br_pixelmap* dst, br_int_32 x, br_int_32 y, br_uint_8* src, br_int_32 s_stride, br_int_32 start_bit, br_int_32 end_bit, br_int_32 nrows, br_uint_32 colour);
65
 
66
br_uint_16 BrPixelmapFileSize(br_pixelmap* pm);
67
 
68
br_uint_16 BrPixelmapPixelSize(br_pixelmap* pm);
69
 
70
br_uint_16 BrPixelmapChannels(br_pixelmap* pm);
71
 
72
void BrPixelmapPaletteSet(br_pixelmap* pm, br_pixelmap* pal);
73
 
74
void BrPixelmapPaletteEntrySet(br_pixelmap* pm, br_int_32 index, br_colour colour);
75
 
76
void BrPixelmapPaletteEntrySetMany(br_pixelmap* pm, br_int_32 index, br_int_32 ncolours, br_colour* colours);
77
 
78
br_pixelmap* BrPixelmapDirectLock(br_pixelmap* src, br_boolean block);
79
 
80
br_pixelmap* BrPixelmapDirectUnlock(br_pixelmap* src);
81
 
82
#endif