资源简介
一个简单的游戏引擎,包括模型加载,纹理加载,场景管理,节点管理,天空盒渲染等等,引擎虽小,但五脏俱全。
代码片段和文件信息
/** Example 001 HelloWorld
This Tutorial shows how to set up the IDE for using the Irrlicht Engine and how
to write a simple HelloWorld program with it. The program will show how to use
the basics of the VideoDriver the GUIEnvironment and the SceneManager.
Microsoft Visual Studio is used as an IDE but you will also be able to
understand everything if you are using a different one or even another
operating system than windows.
You have to include the header file in order to use the engine. The
header file can be found in the Irrlicht Engine SDK directory \c include. To let
the compiler find this header file the directory where it is located has to be
specified. This is different for every IDE and compiler you use. Let‘s explain
shortly how to do this in Microsoft Visual Studio:
- If you use Version 6.0 select the Menu Extras -> Options.
Select the directories tab and select the ‘Include‘ Item in the combo box.
Add the \c include directory of the irrlicht engine folder to the list of
directories. Now the compiler will find the Irrlicht.h header file. We also
need the irrlicht.lib to be found so stay in that dialog select ‘Libraries‘
in the combo box and add the \c lib/VisualStudio directory.
\image html “vc6optionsdir.jpg“
\image latex “vc6optionsdir.jpg“
\image html “vc6include.jpg“
\image latex “vc6include.jpg“
- If your IDE is Visual Studio .NET select Tools -> Options.
Select the projects entry and then select VC++ directories. Select ‘show
directories for include files‘ in the combo box and add the \c include
directory of the irrlicht engine folder to the list of directories. Now the
compiler will find the Irrlicht.h header file. We also need the irrlicht.lib
to be found so stay in that dialog select ‘show directories for Library
files‘ and add the \c lib/VisualStudio directory.
\image html “vcnetinclude.jpg“
\image latex “vcnetinclude.jpg“
That‘s it. With your IDE set up like this you will now be able to develop
applications with the Irrlicht Engine.
Lets start!
After we have set up the IDE the compiler will know where to find the Irrlicht
Engine header files so we can include it now in our code.
*/
#include
/*
In the Irrlicht Engine everything can be found in the namespace ‘irr‘. So if
you want to use a class of the engine you have to write irr:: before the name
of the class. For example to use the IrrlichtDevice write: irr::IrrlichtDevice.
To get rid of the irr:: in front of the name of every class we tell the
compiler that we use that namespace from now on and we will not have to write
irr:: anymore.
*/
using namespace irr;
/*
There are 5 sub namespaces in the Irrlicht Engine. Take a look at them you can
read a detailed description of them in the documentation by clicking on the top
menu item ‘Namespace List‘ or by using this link:
http://irrlicht.sourceforge.net/docu/namespaces.html
Like the
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-09-13 16:23 irrlicht-1.8.3\
目录 0 2015-09-13 16:12 irrlicht-1.8.3\bin\
目录 0 2015-09-13 16:12 irrlicht-1.8.3\bin\Linux\
文件 283 2012-11-03 18:08 irrlicht-1.8.3\bin\Linux\readme.txt
目录 0 2015-09-13 16:12 irrlicht-1.8.3\bin\MacOSX\
文件 301 2012-11-03 18:08 irrlicht-1.8.3\bin\MacOSX\readme.txt
目录 0 2015-09-13 16:22 irrlicht-1.8.3\bin\Win32-gcc\
文件 4653568 2015-09-13 16:20 irrlicht-1.8.3\bin\Win32-gcc\Irrlicht.dll
文件 2238 2013-11-11 19:15 irrlicht-1.8.3\bin\Win32-gcc\irrlicht.ico
目录 0 2015-09-13 16:24 irrlicht-1.8.3\bin\Win32-VisualStudio\
文件 122880 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\02.Quake3Map.exe
文件 136704 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\03.CustomSceneNode.exe
文件 124928 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\04.Movement.exe
文件 108544 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\05.UserInterface.exe
文件 108544 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\06.2DGraphics.exe
文件 133632 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\07.Collision.exe
文件 128000 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\08.SpecialFx.exe
文件 155136 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\09.MeshViewer.exe
文件 131072 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\10.Shaders.exe
文件 131072 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\11.PerPixelLighting.exe
文件 148480 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\12.TerrainRendering.exe
文件 124416 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\13.RenderToTexture.exe
文件 123904 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\14.Win32Window.exe
文件 123392 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\15.LoadIrrFile.exe
文件 164864 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\16.Quake3MapShader.exe
文件 30720 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\17.HelloWorld_Mobile.exe
文件 123392 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\18.SplitScreen.exe
文件 147456 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\19.MouseAndJoystick.exe
文件 129024 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\20.ManagedLights.exe
文件 227328 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\21.Quake3Explorer.exe
文件 152576 2015-09-13 13:49 irrlicht-1.8.3\bin\Win32-VisualStudio\22.MaterialViewer.exe
............此处省略3117个文件信息
- 上一篇:PinyinIME(关键代码写了注释).zip
- 下一篇:吉林省长春市地图——矢量图
相关资源
- ControlSystemsEngineering7th(NormanS.Nise)
- SoftwareEngineering.pdf
- The Mythical Man-Month Essays on Software Eng
- TerraVolVoxelTerrainEngine2.1c.7z
- Cheat Engine6.8.3 中文版
- EMF+GEF+VE
- EES Pro V9.478 (内含注册机)
- 软件工程 第八版高清完整英文版 So
- Mathcad_Mechanical_Engineering_Library.part7
- Mathcad_Mechanical_Engineering_Library.part6
- Mathcad_Mechanical_Engineering_Library.part5
- Mathcad_Mechanical_Engineering_Library.part4
- Mathcad_Mechanical_Engineering_Library.part3
- Mathcad_Mechanical_Engineering_Library.part2
- Mathcad_Mechanical_Engineering_Library.part1
- Mathcad_Cival_Engineering_Library.part7
- Mathcad_Cival_Engineering_Library.part6
- Mathcad_Cival_Engineering_Library.part5
- Mathcad_Cival_Engineering_Library.part4
- Mathcad_Cival_Engineering_Library.part3
- Mathcad_Cival_Engineering_Library.part2
- Mathcad_Cival_Engineering_Library.part1
- Unreal Engine 4 中文教程
- Cheat Engine 6.8.1 中文版
- EES官方参考书:热力学讲义
- ZohoManageEngineServiceDeskPlusEnterprisev9.0.
- ManageEngine-EventLog-Analyzer-12.0.5软件
- Contemporary Engineering Economics 4e
- 多功能网络媒体播放器-Qt-demo
- Sliding Mode Control in Engineering
评论
共有 条评论