1 | /********************************************************************** <BR>
|
---|
2 | This file is part of Crack dot Com's free source code release of
|
---|
3 | Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
|
---|
4 | information about compiling & licensing issues visit this URL</a>
|
---|
5 | <PRE> If that doesn't help, contact Jonathan Clark at
|
---|
6 | golgotha_source@usa.net (Subject should have "GOLG" in it)
|
---|
7 | ***********************************************************************/
|
---|
8 |
|
---|
9 | #ifndef __I4_IMAGE32_HPP_
|
---|
10 | #define __I4_IMAGE32_HPP_
|
---|
11 |
|
---|
12 | #include "image/image.hh"
|
---|
13 |
|
---|
14 | class i4_image32 : public i4_image_class
|
---|
15 | {
|
---|
16 | public:
|
---|
17 | w32 *paddr(int x, int y) { return (w32 *)(((w8 *)data)+x*4+y*bpl); }
|
---|
18 |
|
---|
19 |
|
---|
20 | i4_image32(w16 w, w16 h, const i4_pal *pal);
|
---|
21 | i4_image32(w16 w, w16 h, const i4_pal *pal, void *data, int bpl);
|
---|
22 | i4_color get_pixel(i4_coord x, i4_coord y);
|
---|
23 | void put_pixel(i4_coord x, i4_coord y, w32 color);
|
---|
24 |
|
---|
25 | i4_image_class *quantize(const i4_pal *pal,
|
---|
26 | w32 skip_colors,
|
---|
27 | i4_coord x1, i4_coord y1,
|
---|
28 | i4_coord x2, i4_coord y2);
|
---|
29 |
|
---|
30 | ~i4_image32();
|
---|
31 | };
|
---|
32 |
|
---|
33 |
|
---|
34 | #endif
|
---|