2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
14 #include "kbsrenderer.h"
16 Sprite::Sprite(KGameCanvasAbstract
* parent
, KBSRenderer
* renderer
,
17 const Coord
& scale
, const QString
& name
, bool rotated
)
18 : KGameCanvasPixmap(parent
)
30 void Sprite::update(KBSRenderer
* renderer
)
32 setPixmap(renderer
->render(m_name
, m_rotated
, m_scale
.x
, m_scale
.y
));
35 void Sprite::setName(const QString
& name
)
40 QString
Sprite::name() const