- 安装DirectX,并设置环境变量DXSDK_DIR。
- 设置环境变量MYGUI_HOME,依次编译Debug及Release模式下的Common,MyGUI.DirectXPlatform工程,并将bin及lib目录拷贝到MyGUI目录下。
依次设置新工程的
- 工作目录 $(MYGUI_HOME)\bin\$(Configuration)
- 附加包含目录 $(MYGUI_HOME)\MyGUIEngine\include;$(MYGUI_HOME)\Platforms\DirectX\DirectXPlatform\include;$(MYGUI_HOME)\Common;$(MYGUI_HOME)\Common\Base\DirectX;$(MYGUI_HOME)\Common\Input\Win32;%(AdditionalIncludeDirectories)
- 附加库目录 $(MYGUI_HOME)\lib\$(Configuration);$(DXSDK_DIR)\lib\x86
- 附加依赖项 Common_d.lib;MyGUIEngine_d.lib;MyGUI.DirectXPlatform_d.lib;d3d9.lib;d3dx9.lib;%(AdditionalDependencies)
添加Main.h
// ================================================== // ©2014 Pengfei Du. All rights reserved. // ================================================== #pragma once #include "BaseManager.h" class Demo : public base::BaseManager { };
Main.cpp
// ================================================== // ©2014 Pengfei Du. All rights reserved. // ================================================== #include "Main.h" #include "Base\Main.h" MYGUI_APP(Demo);
MyGUI Quick Start
时间: 2024-10-08 06:10:28