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

📄 system.h

📁 java实现的简单的分形树。简单易学!是学习分形知识的很好的例子。其java语法简单
💻 H
字号:

#ifndef __KERNEL_SYSTEM_H
#define __KERNEL_SYSTEM_H

#include <dingus/dxutils/D3DApplication.h>

namespace dingus {
	class CDeviceResourceManager;
	class IConsoleRenderingContext;
	class CD3DTextBoxConsoleRenderingContext;
	class CD3DFont;
};


class CSystem : public dingus::CD3DApplication {
public:
	CSystem();
	virtual ~CSystem();

	LRESULT msgProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam );

protected:
	virtual HRESULT initialize();
	virtual HRESULT createDeviceObjects();
	virtual HRESULT activateDeviceObjects();
	virtual HRESULT passivateDeviceObjects();
	virtual HRESULT deleteDeviceObjects();
	virtual HRESULT performOneTime();
	virtual HRESULT shutdown();
	virtual HRESULT checkDevice( const D3DCAPS9& caps, DWORD behavior, D3DFORMAT bbFormat );

protected:
	virtual bool appCheckDevice( const D3DCAPS9& caps, DWORD behavior, D3DFORMAT bbFormat ) const = 0;
	virtual void appInitialize() = 0;
	virtual void appPerform() = 0;
	virtual void appShutdown() = 0;

	CD3DFont& getFont() { return *mFont; }

private:
	std::string 						mDataPath;
	CDeviceResourceManager*		mDeviceManager;
	IConsoleRenderingContext*	mStdConsoleCtx;
	CD3DTextBoxConsoleRenderingContext* mD3DConsoleCtx;
	CD3DFont*					mFont;
	bool	mAppInited;
	bool	mShowFrameDeviceStats;
};


#endif

⌨️ 快捷键说明

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