~ubuntu-branches/ubuntu/raring/powermanga/raring

« back to all changes in this revision

Viewing changes to src/gfxroutines.h

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese, Gonéri Le Bouder, Cyril Brulebois, Barry deFreese
  • Date: 2008-03-19 21:32:41 UTC
  • mfrom: (1.2.4 upstream) (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080319213241-sn6w3z75uppm22eq
Tags: 0.90-dfsg-1
[ Gonéri Le Bouder ]
* add desktop file, thanks Adrien Cunin (Closes: #402168)
 - powermanga.xpm moved in /usr/share/pixmaps
* call dh_desktop to run update-desktop-database

[ Cyril Brulebois ]
* Added XS-Vcs-Svn and XS-Vcs-Browser fields in the control file.

[ Barry deFreese ]
* Bump debhelper build-dep version to match compat
* Fix substvar source:Version
* Make distclean not ignore errors
* Add watch file
* Add Homepage field in control
* Remove XS- from VCS fields in control
* New Upstream Release (Closes: #447415)
  + Should now be dfsg free
  + Adds joystick support (Closes: #442322)
  + STILL NOT SURE ABOUT tlk.fnt
* Revert patches except fixing scoredir path and copyright for manpage
* Remove deprecated Encoding tag from desktop file
* Remove file extension from icon tag in desktop file
* Replace evil 'pwd' with $(CURDIR)
* Removing config.log config.status in clean target
* Convert copyright to UTF-8.
* Remove order/ dir from upstream tarball.
* Remove empty dirs from powermanga package.
* Bump Standards Version to 3.7.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * @file gfxroutines.h
 
3
 * @brief handle memory allocation and file access
 
4
 * @created 2003-04-15 
 
5
 * @date 2007-09-02
 
6
 */
 
7
/*
 
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 $
 
10
 *
 
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.
 
15
 *
 
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.
 
20
 *
 
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,
 
24
 * MA  02110-1301, USA.
 
25
 */
 
26
#ifndef __PLAIN_C_H__
 
27
#define __PLAIN_C_H__
 
28
 
 
29
#ifdef __cplusplus
 
30
extern "C"
 
31
{
 
32
#endif
 
33
 
 
34
 
 
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);
 
39
 
 
40
  void copie4octets (char *, char *, Uint32, Uint32, Uint32, Uint32);
 
41
  void clear_offscreen (char *offscreen, Uint32 widht, Uint32 height,
 
42
                        Uint32 offset);
 
43
 
 
44
  void convert_palette_24_to_16 (unsigned char *, unsigned short *);
 
45
  void convert_palette_24_to_15 (unsigned char *, unsigned short *);
 
46
 
 
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);
 
51
 
 
52
  void draw_bitmap_char_8 (unsigned char *source, unsigned char *dest,
 
53
                           Uint32 width, Uint32 height, Uint32 offset_s,
 
54
                           Uint32 offset_d);
 
55
  void draw_bitmap_char_16 (unsigned char *source, unsigned char *dest,
 
56
                            Uint32 width, Uint32 height, Uint32 offset_s,
 
57
                            Uint32 offset_d);
 
58
  void draw_bitmap_char_24 (unsigned char *source, unsigned char *dest,
 
59
                            Uint32 width, Uint32 height, Uint32 offset_s,
 
60
                            Uint32 offset_d);
 
61
  void draw_bitmap_char_32 (unsigned char *source, unsigned char *dest,
 
62
                            Uint32 width, Uint32 height, Uint32 offset_s,
 
63
                            Uint32 offset_d);
 
64
 
 
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);
 
69
 
 
70
  void put_sprite_mask_8bits (Uint32 color, char *oscreen, char *repeats,
 
71
                              Uint32 size);
 
72
  void put_sprite_mask_16bits (Uint32 color, char *oscreen, char *repeats,
 
73
                               Uint32 size);
 
74
  void put_sprite_mask_24bits (Uint32 color, char *oscreen, char *repeats,
 
75
                               Uint32 size);
 
76
  void put_sprite_mask_32bits (Uint32 color, char *oscreen, char *repeats,
 
77
                               Uint32 size);
 
78
 
 
79
  void poly8bits (char *, Sint32, Sint32);
 
80
  void poly16bits (char *, Sint32, Sint32);
 
81
  void poly24bits (char *, Sint32, Sint32);
 
82
  void poly32bits (char *, Sint32, Sint32);
 
83
 
 
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);
 
88
 
 
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);
 
93
 
 
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);
 
102
 
 
103
#ifdef __cplusplus
 
104
}
 
105
#endif
 
106
#endif