KisaragiLibrary
 
読み取り中…
検索中…
一致する文字列を見つけられません
Kisaragi_Lib::ImgComponent::Layer クラス

#include <ImgComponent.hpp>

公開メンバ関数

void Push (string _id, ImgBase *_drawComponent)
 
 ~Layer ()
 
void Pop (string _id)
 データをポップする.
 
void Clear ()
 キューをクリアする.
 
bool Empty ()
 キューが空か調べる.
 
void Draw ()
 描画処理を行う.
 
unsigned int Cnt ()
 
map< string, ImgBase * > Queue ()
 

非公開変数類

map< string, ImgBase * > queue
 

構築子と解体子

◆ ~Layer()

Kisaragi_Lib::ImgComponent::Layer::~Layer ( )
inline
220 {
221 Clear();
222 }
void Clear()
キューをクリアする.
Definition ImgComponent.hpp:240

関数詳解

◆ Push()

void Kisaragi_Lib::ImgComponent::Layer::Push ( string _id,
ImgBase * _drawComponent )
inline
215 {
216 queue.emplace(_id, _drawComponent);
217 }
map< string, ImgBase * > queue
Definition ImgComponent.hpp:210

◆ Pop()

void Kisaragi_Lib::ImgComponent::Layer::Pop ( string _id)
inline

データをポップする.

228 {
229 if (Empty())
230 {
231 return;
232 }
233
234 queue.erase(_id);
235 }
bool Empty()
キューが空か調べる.
Definition ImgComponent.hpp:249

◆ Clear()

void Kisaragi_Lib::ImgComponent::Layer::Clear ( )
inline

キューをクリアする.

241 {
242 queue.clear();
243 }

参照元 ~Layer().

◆ Empty()

bool Kisaragi_Lib::ImgComponent::Layer::Empty ( )
inline

キューが空か調べる.

戻り値
空ならtrue
250 {
251 return queue.empty();
252 }

参照元 Pop().

◆ Draw()

void Kisaragi_Lib::ImgComponent::Layer::Draw ( )
inline

描画処理を行う.

259 {
260 for (auto& q : queue)
261 {
262 //ここでカメラを取得
263 //if ( camera.DrawLayer != q ) { continue; }
264
265 q.second->Draw();
266 }
267 }

◆ Cnt()

unsigned int Kisaragi_Lib::ImgComponent::Layer::Cnt ( )
inline
270 {
271 return (unsigned int)queue.size();
272 }

◆ Queue()

map< string, ImgBase * > Kisaragi_Lib::ImgComponent::Layer::Queue ( )
inline
275 {
276 return queue;
277 }

メンバ詳解

◆ queue

map<string,ImgBase*> Kisaragi_Lib::ImgComponent::Layer::queue
private

このクラス詳解は次のファイルから抽出されました: