3
* @brief handle memory allocation and file access
8
* copyright (c) 1998-2007 TLK Games all rights reserved
9
* $Id: gfxroutines.h,v 1.7 2007/09/02 16:13:56 gurumeditation Exp $
11
* Powermanga is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 3 of the License, or
14
* (at your option) any later version.
16
* Powermanga is distributed in the hope that it will be useful, but
17
* WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
21
* You should have received a copy of the GNU General Public License
22
* along with this program; if not, write to the Free Software
23
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
35
void _type_routine_gfx (Sint32 * adresse);
36
void conv8_16 (char *, char *, unsigned short *, Uint32);
37
void conv8_24 (char *, char *, Uint32 *, Uint32);
38
void conv8_32 (char *, char *, Uint32 *, Uint32);
40
void copie4octets (char *, char *, Uint32, Uint32, Uint32, Uint32);
41
void clear_offscreen (char *offscreen, Uint32 widht, Uint32 height,
44
void convert_palette_24_to_16 (unsigned char *, unsigned short *);
45
void convert_palette_24_to_15 (unsigned char *, unsigned short *);
47
void _COPY2X8BITS (char *, char *, Uint32, Uint32, Uint32, Uint32);
48
void _COPY2X16BITS (char *, char *, Uint32, Uint32, Uint32, Uint32);
49
void _COPY2X24BITS (char *, char *, Uint32, Uint32, Uint32, Uint32);
50
void _COPY2X32BITS (char *, char *, Uint32, Uint32, Uint32, Uint32);
52
void draw_bitmap_char_8 (unsigned char *source, unsigned char *dest,
53
Uint32 width, Uint32 height, Uint32 offset_s,
55
void draw_bitmap_char_16 (unsigned char *source, unsigned char *dest,
56
Uint32 width, Uint32 height, Uint32 offset_s,
58
void draw_bitmap_char_24 (unsigned char *source, unsigned char *dest,
59
Uint32 width, Uint32 height, Uint32 offset_s,
61
void draw_bitmap_char_32 (unsigned char *source, unsigned char *dest,
62
Uint32 width, Uint32 height, Uint32 offset_s,
65
void put_sprite_8 (char *oscreen, char *dest, char *repeats, Uint32 size);
66
void put_sprite_16 (char *oscreen, char *dest, char *repeats, Uint32 size);
67
void put_sprite_24 (char *oscreen, char *dest, char *repeats, Uint32 size);
68
void put_sprite_32 (char *oscreen, char *dest, char *repeats, Uint32 size);
70
void put_sprite_mask_8bits (Uint32 color, char *oscreen, char *repeats,
72
void put_sprite_mask_16bits (Uint32 color, char *oscreen, char *repeats,
74
void put_sprite_mask_24bits (Uint32 color, char *oscreen, char *repeats,
76
void put_sprite_mask_32bits (Uint32 color, char *oscreen, char *repeats,
79
void poly8bits (char *, Sint32, Sint32);
80
void poly16bits (char *, Sint32, Sint32);
81
void poly24bits (char *, Sint32, Sint32);
82
void poly32bits (char *, Sint32, Sint32);
84
void draw_electrical_shock_8 (char *, Eclair *, Sint32);
85
void draw_electrical_shock_16 (char *, Eclair *, Sint32);
86
void draw_electrical_shock_24 (char *, Eclair *, Sint32);
87
void draw_electrical_shock_32 (char *, Eclair *, Sint32);
89
void _COPY2X8BITS_512x440 (char *, char *, Uint32);
90
void _COPY2X16BITS_512x440 (char *, char *, Uint32);
91
void _COPY2X24BITS_512x440 (char *, char *, Uint32);
92
void _COPY2X32BITS_512x440 (char *, char *, Uint32);
94
void draw_rectangle_8 (char *oscreen, Sint32 xcoord, Sint32 ycoord,
95
Sint32 color, Sint32 width, Sint32 height);
96
void draw_rectangle_16 (char *oscreen, Sint32 xcoord, Sint32 ycoord,
97
Sint32 color, Sint32 width, Sint32 height);
98
void draw_rectangle_24 (char *oscreen, Sint32 xcoord, Sint32 ycoord,
99
Sint32 color, Sint32 width, Sint32 height);
100
void draw_rectangle_32 (char *oscreen, Sint32 xcoord, Sint32 ycoord,
101
Sint32 color, Sint32 width, Sint32 height);