#include <Sprite.h>
Inheritance diagram for Lamp::Sprite:
Public Types | |
enum | Align { alignNone = 0, alignTopLeft, alignTop, alignTopRight, alignLeft, alignCenter, alignRight, alignBottomLeft, alignBottom, alignBottomRight, alignMax } |
アライン | |
enum | Fit { fitNone = 0, fitScreen, fitScreenWidth, fitScreenHeight, fitMax } |
フィット | |
Public Member Functions | |
Sprite () | |
コンストラクタ | |
Sprite (const Sprite ©) | |
コピーコンストラクタ | |
Sprite & | operator= (const Sprite ©) |
代入コピー | |
virtual | ~Sprite () |
デストラクタ | |
virtual void | render (SpriteRenderState *renderState) |
レンダリング | |
virtual bool | loadPicture (const String &fileName) |
ピクチャのロード | |
virtual void | setPicture (SpritePicture *picture) |
ピクチャの設定 | |
virtual SpritePicture * | getPicture () |
ピクチャの取得 | |
virtual void | setRectangle (const RectangleF &rectangle) |
矩形の設定 | |
virtual void | setRectangle (const Point2f &position, const DimensionF &size) |
矩形の設定 | |
virtual void | setRectangle (float x, float y, float width, float height) |
矩形の設定 | |
virtual const RectangleF & | getRectangle () const |
矩形の取得 | |
virtual void | setPosition (const Point2f &position) |
位置の設定 | |
virtual void | setPosition (float x, float y) |
位置の設定 | |
virtual Point2f | getPosition () const |
位置の取得 | |
virtual void | setSize (const DimensionF &size) |
サイズの設定 | |
virtual void | setSize (float width, float height) |
サイズの設定 | |
virtual DimensionF | getSize () const |
サイズの取得 | |
virtual void | setImageRectangle (const RectangleF &imageRectangle) |
イメージ矩形の設定 | |
virtual void | setImageRectangle (const Point2f &position, const DimensionF &size) |
イメージ矩形の設定 | |
virtual void | setImageRectangle (float x, float y, float width, float height) |
イメージ矩形の設定 | |
virtual const RectangleF & | getImageRectangle () const |
イメージ矩形の取得 | |
virtual void | setImagePosition (const Point2f &position) |
イメージ位置の設定 | |
virtual void | setImagePosition (float x, float y) |
イメージ位置の設定 | |
virtual Point2f | getImagePosition () const |
イメージ位置の取得 | |
virtual void | setImageSize (const DimensionF &size) |
イメージサイズの設定 | |
virtual void | setImageSize (float width, float height) |
イメージサイズの設定 | |
virtual DimensionF | getImageSize () const |
イメージサイズの取得 | |
virtual void | setAnimation (const DimensionI &animationDivision, int animation, const RectangleF &imageRectangle=RectangleF::unit) |
アニメーションの設定 | |
virtual void | setAlign (Align align) |
アラインの設定 | |
virtual Align | getAlign () const |
アラインの取得 | |
virtual void | setFit (Fit fit) |
フィットの設定 | |
virtual Fit | getFit () const |
フィットの取得 | |
virtual void | setEnabled (bool enabled) |
有効、無効の設定 | |
virtual bool | isEnabled () const |
有効、無効の取得 | |
virtual bool | isSprite () const |
スプライトかどうか | |
Protected Member Functions | |
virtual RectangleF | applyFit (const RectangleF &rectangle, const DimensionF &renderTargetSize) |
フィットの適用 | |
virtual RectangleF | applyAlign (const RectangleF &rectangle, const DimensionF &renderTargetSize) |
アラインの適用 |
Definition at line 38 of file Sprite.h.
|
コピーコンストラクタ
Definition at line 45 of file Sprite.cpp. References NULL, and setPicture(). |
|
アラインの適用
Definition at line 132 of file Sprite.cpp. References Lamp::RectangleF::height, Lamp::DimensionF::height, Lamp::RectangleF::width, Lamp::DimensionF::width, Lamp::RectangleF::x, and Lamp::RectangleF::y. Referenced by render(). |
|
フィットの適用
Definition at line 118 of file Sprite.cpp. References Lamp::DimensionF::height, Lamp::RectangleF::height, Lamp::DimensionF::width, and Lamp::RectangleF::width. Referenced by render(). |
|
アラインの取得
Definition at line 327 of file Sprite.h. References Align. |
|
フィットの取得
Definition at line 354 of file Sprite.h. References Fit. |
|
イメージ位置の取得
Definition at line 254 of file Sprite.h. References Lamp::RectangleF::x, and Lamp::RectangleF::y. |
|
イメージ矩形の取得
|
|
イメージサイズの取得
Definition at line 282 of file Sprite.h. References Lamp::RectangleF::height, and Lamp::RectangleF::width. |
|
ピクチャの取得
|
|
位置の取得
Definition at line 157 of file Sprite.h. References Lamp::RectangleF::x, and Lamp::RectangleF::y. |
|
矩形の取得
|
|
サイズの取得
Definition at line 185 of file Sprite.h. References Lamp::RectangleF::height, and Lamp::RectangleF::width. |
|
有効、無効の取得
|
|
スプライトかどうか
Reimplemented from Lamp::SpriteRequest. |
|
ピクチャのロード
Definition at line 158 of file Sprite.cpp. References Lamp::FilePath::existFile(), Lamp::FilePath::getExtension(), Lamp::SpritePictureRGB8::getImageBuffer(), Lamp::SpritePictureRGBA8::getImageBuffer(), Lamp::FilePath::getPath(), Lamp::TargaLoader::getSize(), Lamp::TargaLoader::hasAlpha(), Lamp::TargaLoader::loadHeader(), Lamp::TargaLoader::loadImage(), setPicture(), Lamp::SpritePictureRGB8::setSize(), and Lamp::SpritePictureRGBA8::setSize(). |
|
代入コピー
Definition at line 53 of file Sprite.cpp. References align_, enabled_, fit_, imageRectangle_, picture_, rectangle_, and setPicture(). |
|
レンダリング
Implements Lamp::SpriteRequest. Definition at line 78 of file Sprite.cpp. References applyAlign(), applyFit(), Lamp::SpriteRenderState::getRenderTargetSize(), Lamp::RectangleF::height, Lamp::SpriteRenderState::request(), Lamp::RectangleF::width, Lamp::RectangleF::x, and Lamp::RectangleF::y. |
|
アラインの設定
Definition at line 318 of file Sprite.h. References Assert. |
|
アニメーションの設定
Definition at line 202 of file Sprite.cpp. References Assert, Lamp::RectangleF::height, Lamp::DimensionI::height, setImageRectangle(), Lamp::RectangleF::width, Lamp::DimensionI::width, Lamp::RectangleF::x, and Lamp::RectangleF::y. |
|
有効、無効の設定
|
|
フィットの設定
Definition at line 345 of file Sprite.h. References Assert. |
|
イメージ位置の設定
Definition at line 245 of file Sprite.h. References Lamp::RectangleF::x, and Lamp::RectangleF::y. |
|
イメージ位置の設定
Definition at line 235 of file Sprite.h. References Lamp::Point2f::x, Lamp::RectangleF::x, Lamp::Point2f::y, and Lamp::RectangleF::y. |
|
イメージ矩形の設定
Definition at line 217 of file Sprite.h. References Lamp::RectangleF::set(). |
|
イメージ矩形の設定
Definition at line 205 of file Sprite.h. References Lamp::DimensionF::height, Lamp::RectangleF::set(), Lamp::DimensionF::width, Lamp::Point2f::x, and Lamp::Point2f::y. |
|
イメージ矩形の設定
Definition at line 196 of file Sprite.h. Referenced by setAnimation(). |
|
イメージサイズの設定
Definition at line 273 of file Sprite.h. References Lamp::RectangleF::height, and Lamp::RectangleF::width. |
|
イメージサイズの設定
Definition at line 263 of file Sprite.h. References Lamp::DimensionF::height, Lamp::RectangleF::height, Lamp::DimensionF::width, and Lamp::RectangleF::width. |
|
ピクチャの設定
Definition at line 189 of file Sprite.cpp. References Lamp::SpritePicture::addReference(), NULL, Lamp::SpritePicture::removeReference(), and SafeDelete. Referenced by loadPicture(), operator=(), Sprite(), and ~Sprite(). |
|
位置の設定
Definition at line 148 of file Sprite.h. References Lamp::RectangleF::x, and Lamp::RectangleF::y. |
|
位置の設定
Definition at line 138 of file Sprite.h. References Lamp::Point2f::x, Lamp::RectangleF::x, Lamp::Point2f::y, and Lamp::RectangleF::y. |
|
矩形の設定
Definition at line 123 of file Sprite.h. References Lamp::RectangleF::set(). |
|
矩形の設定
Definition at line 112 of file Sprite.h. References Lamp::DimensionF::height, Lamp::RectangleF::set(), Lamp::DimensionF::width, Lamp::Point2f::x, and Lamp::Point2f::y. |
|
矩形の設定
|
|
サイズの設定
Definition at line 176 of file Sprite.h. References Lamp::RectangleF::height, and Lamp::RectangleF::width. |
|
サイズの設定
Definition at line 166 of file Sprite.h. References Lamp::DimensionF::height, Lamp::RectangleF::height, Lamp::DimensionF::width, and Lamp::RectangleF::width. |