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

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

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

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