source: abuse/tags/pd/imlib/include/sprite.hpp @ 49

Last change on this file since 49 was 49, checked in by Sam Hocevar, 11 years ago
  • Imported original public domain release, for future reference.
File size: 628 bytes
Line 
1#ifndef __SPRITE_HPP
2#define __SPRITE_HPP
3#include "macs.hpp"
4#include "image.hpp"
5#include "linked.hpp"
6
7class sprite : public linked_node
8{
9public:
10  image *visual,*screen,*save;
11  int x,y;
12  sprite(image *Screen, image *Visual, int X, int Y);
13  void get_background();
14  void restore_background();
15  void draw();
16  void change_visual(image *Visual, int delete_old=0);
17  ~sprite();
18} ;
19
20class sprite_controller
21{
22public :
23  linked_list sprites;
24  void add_sprite(sprite *sp);
25  void remove_sprites();
26  void get_backgrounds();
27  void put_sprites();
28  void bring_front(sprite *sp);
29  void delete_sprite(sprite *sp);
30} ;
31#endif
32
Note: See TracBrowser for help on using the repository browser.