application.h

来自「To review what a metaball is, and how to」· C头文件 代码 · 共 37 行

H
37
字号
//-----------------------------------------------------------------------------
// CApplication
//
// This is a framework class for quickly creating Direct3D applications. Derive
// a new application class from this and implement your code there.
//
// Copyright (c) 2001 Andreas J鰊sson
//-----------------------------------------------------------------------------
#ifndef APPLICATION_H
#define APPLICATION_H

#include "window.h"

class CApplication
{
public:
	CApplication();

	static CApplication *GetInstance();

	virtual HRESULT Initialize(HINSTANCE hInst, char *sCmdLine);
	virtual int     Run();

	void    Activate(bool bActivate);
	void    Resize(int nWidth, int nHeight);
	void    Pause(bool bPause);
	void    Render();

protected:
	static CApplication *m_pApplication;

	CWindow	   *m_pWindow;
	HINSTANCE   m_hInstance;
	bool        m_bActive;
};

#endif

⌨️ 快捷键说明

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