資源簡介
一個簡單的游戲引擎,包括模型加載,紋理加載,場景管理,節點管理,天空盒渲染等等,引擎雖小,但五臟俱全。
代碼片段和文件信息
/**?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
- 下一篇:吉林省長春市地圖——矢量圖
評論
共有 條評論