source: abuse/trunk/src/imlib/sprite.h @ 682

Last change on this file since 682 was 682, checked in by Sam Hocevar, 9 years ago

core: rename vec2i to ivec2 and update matrix.h from Lol Engine.

  • Property svn:keywords set to Id
File size: 674 bytes
Line 
1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 1995 Crack dot Com
4 *  Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
5 *
6 *  This software was released into the Public Domain. As with most public
7 *  domain software, no warranty is made or implied by Crack dot Com, by
8 *  Jonathan Clark, or by Sam Hocevar.
9 */
10
11#ifndef __SPRITE_HPP
12#define __SPRITE_HPP
13
14#include "image.h"
15#include "linked.h"
16
17class Sprite : public linked_node
18{
19public:
20    Sprite(image *screen, image *visual, ivec2 pos);
21    ~Sprite();
22
23    void SetVisual(image *visual, int delete_old = 0);
24
25    image *m_visual, *m_screen, *m_save;
26
27private:
28    ivec2 m_pos;
29};
30
31#endif
32
Note: See TracBrowser for help on using the repository browser.