effectparamsnotifier.h

来自「java实现的简单的分形树。简单易学!是学习分形知识的很好的例子。其java语法」· C头文件 代码 · 共 34 行

H
34
字号
// --------------------------------------------------------------------------
// Dingus project - a collection of subsystems for game/graphics applications
// --------------------------------------------------------------------------

#ifndef __FX_PARAMS_NOTIFIER_H
#define __FX_PARAMS_NOTIFIER_H

#include "EffectParams.h"
#include "../utils/Notifier.h"

namespace dingus {

/**
 *  Notifies effect params on effect object change.
 *
 *  Effect params objects register to the notifier, and unregister when
 *  destroyed. You need to notify them when the effect objects change (eg. on
 *  effects reload, on device change etc.).
 */
class CEffectParamsNotifier : public CNotifier<CEffectParams> {
public:
	static CEffectParamsNotifier& getInstance() { return mSingleInstance; }

	void notify();

private:
	CEffectParamsNotifier() { }
	static CEffectParamsNotifier mSingleInstance;
};

}; // namespace

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?