source: golgotha/src/i4/image/image8.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: 951 bytes
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_IMAGE8_HPP_
10#define __I4_IMAGE8_HPP_
11
12#include "image/image.hh"
13
14class i4_image8 : public i4_image_class
15{
16public:
17  w8 *typed_data() { return (w8 *)data; }
18  i4_image8(w16 w, w16 h, const i4_pal *pal);
19  i4_image8(w16 w, w16 h, const i4_pal *pal, void *data, int bpl);
20  i4_color get_pixel(i4_coord x, i4_coord y); 
21  void put_pixel(i4_coord x, i4_coord y, w32 color);
22
23  i4_image_class *copy();
24 
25  ~i4_image8();
26};
27
28
29#endif
30
31
Note: See TracBrowser for help on using the repository browser.