engine.h

来自「墨香最新私服」· C头文件 代码 · 共 38 行

H
38
字号
// Engine.h: interface for the CEngine class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ENGINE_H__27B662DC_9848_4737_A9A4_3BA7CB894C62__INCLUDED_)
#define AFX_ENGINE_H__27B662DC_9848_4737_A9A4_3BA7CB894C62__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "GraphicEngine.h"
#include "SoundEngine.h"

class CEngine
{
	HWND m_hMainWnd;
	CGraphicEngine* m_pGraphic;
	CSoundEngine* m_pSound;

public:	
	CEngine();
	virtual ~CEngine();	

	void Init(HWND hMainWnd,DISPLAY_INFO* pDispInfo,DWORD MaxShadowNum,DWORD ShadowMapDetail,float SightDistance,DWORD FPS);

	void Release();

	BOOL BeginProcess(GX_FUNC pBeforeRenderFunc,GX_FUNC pAfterRenderFunc);
	void EndProcess();

	CGraphicEngine* GetGraphicsEngine()	{	return m_pGraphic;	}

	void PauseRender( BOOL bPause ) { m_pGraphic->PauseRender(bPause); }
};

#endif // !defined(AFX_ENGINE_H__27B662DC_9848_4737_A9A4_3BA7CB894C62__INCLUDED_)

⌨️ 快捷键说明

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