#include <ImgComponent.hpp>
◆ LayerFacade()
Kisaragi_Lib::ImgComponent::LayerFacade::LayerFacade |
( |
| ) |
|
|
inline |
288 {
290 }
Result AddLayer(string _key)
レイヤーを追加する.
Definition ImgComponent.cpp:36
◆ ~LayerFacade()
Kisaragi_Lib::ImgComponent::LayerFacade::~LayerFacade |
( |
| ) |
|
|
inline |
293 {
295 }
void ClearLayer()
レイヤーを全て消去する.
Definition ImgComponent.cpp:75
◆ AddLayer()
Result Kisaragi_Lib::ImgComponent::LayerFacade::AddLayer |
( |
string | _key | ) |
|
レイヤーを追加する.
- 引数
-
- 戻り値
- 追加に成功したかどうか
37 {
39 {
41 }
42
43 auto tmp =
layers.emplace(_key,
new Layer());
44
45 if (tmp.second)
46 {
48 }
49
51 }
Result
成否を表す.
Definition Const.h:8
@ FAIL
Definition Const.h:9
map< string, Layer * > layers
Definition ImgComponent.hpp:283
vector< string > layerName
Definition ImgComponent.hpp:284
参照元 ImgPush(), LayerFacade().
◆ RemoveLayer()
void Kisaragi_Lib::ImgComponent::LayerFacade::RemoveLayer |
( |
string | _key | ) |
|
レイヤーを削除する
- 引数
-
58 {
60 {
61
62 assert(
layers.count(_key));
63 return;
64 }
65
69
70 }
◆ ClearLayer()
void Kisaragi_Lib::ImgComponent::LayerFacade::ClearLayer |
( |
| ) |
|
レイヤーを全て消去する.
76 {
78 {
79 l.second->Clear();
80 delete l.second;
81 }
82
85 }
参照元 ~LayerFacade().
◆ LayerName()
vector< string > Kisaragi_Lib::ImgComponent::LayerFacade::LayerName |
( |
| ) |
|
◆ Layers()
map< string, Layer * > Kisaragi_Lib::ImgComponent::LayerFacade::Layers |
( |
| ) |
|
|
inline |
◆ SwapLayer()
void Kisaragi_Lib::ImgComponent::LayerFacade::SwapLayer |
( |
string | _key1, |
|
|
string | _key2 ) |
レイヤー順を交換する
- 引数
-
_key1 | 交換したいレイヤー名1 |
_key2 | 交換したいレイヤー名2 |
102 {
104
106 {
107 return;
108 }
109
111
113 {
114 return;
115 }
116
117 std::iter_swap(tmp, tmp2);
118
119 }
参照元 BG::Start().
◆ Draw()
void Kisaragi_Lib::ImgComponent::LayerFacade::Draw |
( |
| ) |
|
123 {
124 ClearDrawScreen();
125
127 {
128 for (
unsigned int i = 0; i <
layers[v]->Cnt(); i++)
129 {
131 }
132
133 }
134 ScreenFlip();
135
136 }
◆ ImgPush()
void Kisaragi_Lib::ImgComponent::LayerFacade::ImgPush |
( |
string | _layerName, |
|
|
ImgBase * | _drawData, |
|
|
bool | ifCreate = false ) |
◆ ImgPop()
void Kisaragi_Lib::ImgComponent::LayerFacade::ImgPop |
( |
string | _layerName, |
|
|
string | _id ) |
◆ ImgClear()
void Kisaragi_Lib::ImgComponent::LayerFacade::ImgClear |
( |
string | _layerName | ) |
|
166 {
167 if (
layers.count(_layerName) == 0)
168 {
169 return;
170 }
171
172 layers[_layerName]->Clear();
173 }
◆ layers
map<string, Layer*> Kisaragi_Lib::ImgComponent::LayerFacade::layers |
|
private |
◆ layerName
vector<string> Kisaragi_Lib::ImgComponent::LayerFacade::layerName |
|
private |
このクラス詳解は次のファイルから抽出されました: