画像描画クラス
[詳解]
#include <ImgComponent.hpp>
◆ ImgGraph()
Kisaragi_Lib::ImgComponent::ImgGraph::ImgGraph |
( |
| ) |
|
178 {
179
180 }
int img
Definition ImgComponent.hpp:75
◆ SetImg() [1/2]
void Kisaragi_Lib::ImgComponent::ImgGraph::SetImg |
( |
string | _imgKey | ) |
|
183 {
184 img = Resource::GetImgResource().GetImg(_imgKey);
187 }
Vector2D< float > size
Definition ImgComponent.hpp:76
Vector2D< float > imgCentor
Definition ImgComponent.hpp:77
◆ SetImg() [2/2]
void Kisaragi_Lib::ImgComponent::ImgGraph::SetImg |
( |
string | _imgKey, |
|
|
string | _imgPass ) |
190 {
191 Resource::GetImgResource().Add(_imgKey, _imgPass);
193 }
void SetImg(string _imgKey)
Definition ImgComponent.cpp:182
◆ GetImg()
int Kisaragi_Lib::ImgComponent::ImgGraph::GetImg |
( |
| ) |
|
◆ Draw() [1/2]
void Kisaragi_Lib::ImgComponent::ImgGraph::Draw |
( |
Matrix2D | _drawMat | ) |
|
|
overridevirtual |
Kisaragi_Lib::ImgComponent::ImgBaseを再実装しています。
214 {
215 DrawRotaGraph3
216 (
217 _drawMat.Position().x, _drawMat.Position().y,
219 _drawMat.Scale().x, _drawMat.Scale().y,
220 _drawMat.Rotation(),
224 );
225 }
Vector2D< bool > isTurn
要素に応じて画像の反転を行います
Definition ImgComponent.hpp:84
bool trans
Definition ImgComponent.hpp:78
◆ Draw() [2/2]
void Kisaragi_Lib::ImgComponent::ImgGraph::Draw |
( |
| ) |
|
|
overridevirtual |
◆ GetThisComponent()
ImgGraph * Kisaragi_Lib::ImgComponent::ImgGraph::GetThisComponent |
( |
| ) |
|
|
inlineoverridevirtual |
◆ img
int Kisaragi_Lib::ImgComponent::ImgGraph::img |
|
protected |
◆ size
Vector2D<float> Kisaragi_Lib::ImgComponent::ImgGraph::size |
|
protected |
◆ imgCentor
Vector2D<float> Kisaragi_Lib::ImgComponent::ImgGraph::imgCentor |
|
protected |
◆ trans
bool Kisaragi_Lib::ImgComponent::ImgGraph::trans = true |
|
protected |
◆ isTurn
Vector2D<bool> Kisaragi_Lib::ImgComponent::ImgGraph::isTurn {0,0} |
◆ Size
◆ Trans
Accessor<bool> Kisaragi_Lib::ImgComponent::ImgGraph::Trans { &trans } |
このクラス詳解は次のファイルから抽出されました: