OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::MiniScene< State > Class Template Reference

簡易的なシーン管理 More...

#include <MiniScene.hpp>

Public Types

using SceneFunction = std::function< void()>
 シーンの関数オブジェクトの型 More...
 

Public Member Functions

 ~MiniScene ()
 デストラクタ More...
 
SceneFunctionoperator[] (const State &state)
 シーンを登録します。 More...
 
void changeState (const State &state)
 シーンを変更します。 More...
 

Detailed Description

template<class State>
class s3d::MiniScene< State >

簡易的なシーン管理

Template Parameters
Stateシーンを区別するキーの型

Member Typedef Documentation

◆ SceneFunction

template<class State >
using s3d::MiniScene< State >::SceneFunction = std::function<void()>

シーンの関数オブジェクトの型

Constructor & Destructor Documentation

◆ ~MiniScene()

template<class State >
s3d::MiniScene< State >::~MiniScene ( )

デストラクタ

Member Function Documentation

◆ changeState()

template<class State >
void s3d::MiniScene< State >::changeState ( const State &  state)

シーンを変更します。

Template Parameters
State次のシーンのキー

◆ operator[]()

template<class State >
SceneFunction& s3d::MiniScene< State >::operator[] ( const State &  state)

シーンを登録します。

Template Parameters
State登録するシーンの型
Remarks
この関数の戻り値にシーンの関数オブジェクトを登録します。
Returns
シーンの関数オブジェクトへの参照

The documentation for this class was generated from the following file: