source: golgotha/src/i4/image/image32.hh @ 608

Last change on this file since 608 was 80, checked in by Sam Hocevar, 15 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 1.1 KB
Line 
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
14class i4_image32 : public i4_image_class
15{
16public:
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
Note: See TracBrowser for help on using the repository browser.