⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 game_state.h

📁 开放源码分布式开发包
💻 H
字号:
// Class automatically generated by Dev-C++ New Class wizard

#ifndef GAME_STATERENDERER_H
#define GAME_STATERENDERER_H

#include <irrlicht.h>
//using namespace irr;

#include "game_statehandler.h"

// No description
class game_State
{
    protected:
    irr::IrrlichtDevice       *m_device; //irrlicht device pointer
    irr::video::IVideoDriver  *m_driver; //irrlicht video driver pointer
    irr::gui::IGUIEnvironment *m_env;    //irrlicht GUI environment ptr
    irr::scene::ISceneManager *m_smgr;      //irrlicht scene manager ptr
    
    game_StateHandler    *m_handler;
	public:
		// class constructor
		//game_State(IrrlichtDevice* dv, video::IVideoDriver *dr) :
        //    m_device(dv), m_driver(dr) {};
        game_State(game_StateHandler* handler);
		// class destructor
		virtual ~game_State() {};
		// render state
		virtual void Render() = 0;
		virtual bool onEvent(irr::SEvent event) = 0;
		virtual void Update() = 0;
		
	protected:
		// draws a colored rectangle
		void DrawRect(irr::video::SColor color, irr::core::rect<irr::s32> pos);
};


#endif // GAME_STATERENDERER_H

⌨️ 快捷键说明

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