aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/examples/06.2DGraphics
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-03-28 22:28:34 +1000
committerDavid Walter Seikel2016-03-28 22:28:34 +1000
commit7028cbe09c688437910a25623098762bf0fa592d (patch)
tree10b5af58277d9880380c2251f109325542c4e6eb /src/others/irrlicht-1.8.1/examples/06.2DGraphics
parentMove lemon to the src/others directory. (diff)
downloadSledjHamr-7028cbe09c688437910a25623098762bf0fa592d.zip
SledjHamr-7028cbe09c688437910a25623098762bf0fa592d.tar.gz
SledjHamr-7028cbe09c688437910a25623098762bf0fa592d.tar.bz2
SledjHamr-7028cbe09c688437910a25623098762bf0fa592d.tar.xz
Move Irrlicht to src/others.
Diffstat (limited to 'src/others/irrlicht-1.8.1/examples/06.2DGraphics')
-rw-r--r--src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics.cbp55
-rw-r--r--src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics.dev59
-rw-r--r--src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics.vcproj163
-rw-r--r--src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics_vc10.vcxproj231
-rw-r--r--src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics_vc11.vcxproj235
-rw-r--r--src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics_vc8.vcproj231
-rw-r--r--src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics_vc9.vcproj230
-rw-r--r--src/others/irrlicht-1.8.1/examples/06.2DGraphics/Makefile38
-rw-r--r--src/others/irrlicht-1.8.1/examples/06.2DGraphics/main.cpp166
-rw-r--r--src/others/irrlicht-1.8.1/examples/06.2DGraphics/tutorial.html163
10 files changed, 1571 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics.cbp b/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics.cbp
new file mode 100644
index 0000000..0433c93
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics.cbp
@@ -0,0 +1,55 @@
1<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2<CodeBlocks_project_file>
3 <FileVersion major="1" minor="6" />
4 <Project>
5 <Option title="Irrlicht Example 06 2D Graphics" />
6 <Option pch_mode="0" />
7 <Option compiler="gcc" />
8 <Build>
9 <Target title="Windows">
10 <Option platforms="Windows;" />
11 <Option output="..\..\bin\Win32-gcc\2DGraphics" prefix_auto="0" extension_auto="1" />
12 <Option type="1" />
13 <Option compiler="gcc" />
14 <Option projectResourceIncludeDirsRelation="1" />
15 <Compiler>
16 <Add option="-g" />
17 </Compiler>
18 <Linker>
19 <Add directory="..\..\lib\Win32-gcc" />
20 </Linker>
21 </Target>
22 <Target title="Linux">
23 <Option platforms="Unix;" />
24 <Option output="..\..\bin\Linux\2DGraphics" prefix_auto="0" extension_auto="0" />
25 <Option type="1" />
26 <Option compiler="gcc" />
27 <Compiler>
28 <Add option="-g" />
29 </Compiler>
30 <Linker>
31 <Add library="Xxf86vm" />
32 <Add library="Xcursor" />
33 <Add library="GL" />
34 <Add directory="..\..\lib\Linux" />
35 </Linker>
36 </Target>
37 </Build>
38 <VirtualTargets>
39 <Add alias="All" targets="Windows;Linux;" />
40 </VirtualTargets>
41 <Compiler>
42 <Add option="-g" />
43 <Add directory="..\..\include" />
44 </Compiler>
45 <Linker>
46 <Add library="Irrlicht" />
47 </Linker>
48 <Unit filename="main.cpp" />
49 <Extensions>
50 <code_completion />
51 <debugger />
52 <envvars />
53 </Extensions>
54 </Project>
55</CodeBlocks_project_file>
diff --git a/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics.dev b/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics.dev
new file mode 100644
index 0000000..93694f1
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics.dev
@@ -0,0 +1,59 @@
1[Project]
2FileName=example.dev
3Name=Irrlicht Example 06 2D Graphics
4UnitCount=1
5Type=1
6Ver=1
7ObjFiles=
8Includes=..\..\include
9Libs=
10PrivateResource=
11ResourceIncludes=
12MakeIncludes=
13Compiler=
14CppCompiler=
15Linker=../../lib/Win32-gcc/libIrrlicht.a_@@_
16IsCpp=1
17Icon=
18ExeOutput=../../bin/Win32-gcc
19ObjectOutput=obj
20OverrideOutput=1
21OverrideOutputName=06.2DGraphics.exe
22HostApplication=
23Folders=
24CommandLine=
25IncludeVersionInfo=0
26SupportXPThemes=0
27CompilerSet=0
28CompilerSettings=0000000000000000000000
29UseCustomMakefile=0
30CustomMakefile=
31
32[Unit1]
33FileName=main.cpp
34CompileCpp=1
35Folder=Projekt1
36Compile=1
37Link=1
38Priority=1000
39OverrideBuildCmd=0
40BuildCmd=
41
42[VersionInfo]
43Major=0
44Minor=1
45Release=1
46Build=1
47LanguageID=1033
48CharsetID=1252
49CompanyName=
50FileVersion=
51FileDescription=Irrlicht Engine example compiled using DevCpp and gcc
52InternalName=
53LegalCopyright=
54LegalTrademarks=
55OriginalFilename=
56ProductName=
57ProductVersion=
58AutoIncBuildNr=0
59
diff --git a/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics.vcproj b/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics.vcproj
new file mode 100644
index 0000000..b21c351
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics.vcproj
@@ -0,0 +1,163 @@
1<?xml version="1.0" encoding="Windows-1252"?>
2<VisualStudioProject
3 ProjectType="Visual C++"
4 Version="7.10"
5 Name="06.2DGraphics"
6 ProjectGUID="{E71B6F18-10DC-4101-A541-F6D33F71B2BD}"
7 SccProjectName=""
8 SccLocalPath="">
9 <Platforms>
10 <Platform
11 Name="Win32"/>
12 </Platforms>
13 <Configurations>
14 <Configuration
15 Name="Release|Win32"
16 OutputDirectory=".\Release"
17 IntermediateDirectory=".\Release"
18 ConfigurationType="1"
19 UseOfMFC="0"
20 ATLMinimizesCRunTimeLibraryUsage="FALSE"
21 CharacterSet="2">
22 <Tool
23 Name="VCCLCompilerTool"
24 Optimization="2"
25 InlineFunctionExpansion="1"
26 AdditionalIncludeDirectories="..\..\include"
27 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
28 StringPooling="TRUE"
29 RuntimeLibrary="4"
30 EnableFunctionLevelLinking="TRUE"
31 UsePrecompiledHeader="2"
32 PrecompiledHeaderFile=".\Release/2DGraphics.pch"
33 AssemblerListingLocation=".\Release/"
34 ObjectFile=".\Release/"
35 ProgramDataBaseFileName=".\Release/"
36 WarningLevel="3"
37 SuppressStartupBanner="TRUE"
38 CompileAs="0"/>
39 <Tool
40 Name="VCCustomBuildTool"/>
41 <Tool
42 Name="VCLinkerTool"
43 OutputFile="..\..\bin\Win32-VisualStudio\06.2DGraphics.exe"
44 LinkIncremental="0"
45 SuppressStartupBanner="TRUE"
46 AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio"
47 ProgramDatabaseFile=".\Release/2DGraphics.pdb"
48 SubSystem="1"
49 TargetMachine="1"/>
50 <Tool
51 Name="VCMIDLTool"
52 TypeLibraryName=".\Release/2DGraphics.tlb"
53 HeaderFileName=""/>
54 <Tool
55 Name="VCPostBuildEventTool"/>
56 <Tool
57 Name="VCPreBuildEventTool"/>
58 <Tool
59 Name="VCPreLinkEventTool"/>
60 <Tool
61 Name="VCResourceCompilerTool"
62 PreprocessorDefinitions="NDEBUG"
63 Culture="3079"/>
64 <Tool
65 Name="VCWebServiceProxyGeneratorTool"/>
66 <Tool
67 Name="VCXMLDataGeneratorTool"/>
68 <Tool
69 Name="VCWebDeploymentTool"/>
70 <Tool
71 Name="VCManagedWrapperGeneratorTool"/>
72 <Tool
73 Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
74 </Configuration>
75 <Configuration
76 Name="Debug|Win32"
77 OutputDirectory=".\Debug"
78 IntermediateDirectory=".\Debug"
79 ConfigurationType="1"
80 UseOfMFC="0"
81 ATLMinimizesCRunTimeLibraryUsage="FALSE"
82 CharacterSet="2">
83 <Tool
84 Name="VCCLCompilerTool"
85 Optimization="0"
86 AdditionalIncludeDirectories="..\..\include"
87 PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
88 BasicRuntimeChecks="3"
89 RuntimeLibrary="5"
90 UsePrecompiledHeader="2"
91 PrecompiledHeaderFile=".\Debug/2DGraphics.pch"
92 AssemblerListingLocation=".\Debug/"
93 ObjectFile=".\Debug/"
94 ProgramDataBaseFileName=".\Debug/"
95 WarningLevel="3"
96 SuppressStartupBanner="TRUE"
97 DebugInformationFormat="4"
98 CompileAs="0"/>
99 <Tool
100 Name="VCCustomBuildTool"/>
101 <Tool
102 Name="VCLinkerTool"
103 OutputFile="..\..\bin\Win32-VisualStudio\06.2DGraphics.exe"
104 LinkIncremental="0"
105 SuppressStartupBanner="TRUE"
106 AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio"
107 GenerateDebugInformation="TRUE"
108 ProgramDatabaseFile=".\Debug/2DGraphics.pdb"
109 SubSystem="1"
110 TargetMachine="1"/>
111 <Tool
112 Name="VCMIDLTool"
113 TypeLibraryName=".\Debug/2DGraphics.tlb"
114 HeaderFileName=""/>
115 <Tool
116 Name="VCPostBuildEventTool"/>
117 <Tool
118 Name="VCPreBuildEventTool"/>
119 <Tool
120 Name="VCPreLinkEventTool"/>
121 <Tool
122 Name="VCResourceCompilerTool"
123 PreprocessorDefinitions="_DEBUG"
124 Culture="3079"/>
125 <Tool
126 Name="VCWebServiceProxyGeneratorTool"/>
127 <Tool
128 Name="VCXMLDataGeneratorTool"/>
129 <Tool
130 Name="VCWebDeploymentTool"/>
131 <Tool
132 Name="VCManagedWrapperGeneratorTool"/>
133 <Tool
134 Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
135 </Configuration>
136 </Configurations>
137 <References>
138 </References>
139 <Files>
140 <File
141 RelativePath="main.cpp">
142 <FileConfiguration
143 Name="Release|Win32">
144 <Tool
145 Name="VCCLCompilerTool"
146 Optimization="2"
147 AdditionalIncludeDirectories=""
148 PreprocessorDefinitions=""/>
149 </FileConfiguration>
150 <FileConfiguration
151 Name="Debug|Win32">
152 <Tool
153 Name="VCCLCompilerTool"
154 Optimization="0"
155 AdditionalIncludeDirectories=""
156 PreprocessorDefinitions=""
157 BasicRuntimeChecks="3"/>
158 </FileConfiguration>
159 </File>
160 </Files>
161 <Globals>
162 </Globals>
163</VisualStudioProject>
diff --git a/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics_vc10.vcxproj b/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics_vc10.vcxproj
new file mode 100644
index 0000000..b0f184e
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics_vc10.vcxproj
@@ -0,0 +1,231 @@
1<?xml version="1.0" encoding="utf-8"?>
2<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <ItemGroup Label="ProjectConfigurations">
4 <ProjectConfiguration Include="Debug|Win32">
5 <Configuration>Debug</Configuration>
6 <Platform>Win32</Platform>
7 </ProjectConfiguration>
8 <ProjectConfiguration Include="Debug|x64">
9 <Configuration>Debug</Configuration>
10 <Platform>x64</Platform>
11 </ProjectConfiguration>
12 <ProjectConfiguration Include="Release|Win32">
13 <Configuration>Release</Configuration>
14 <Platform>Win32</Platform>
15 </ProjectConfiguration>
16 <ProjectConfiguration Include="Release|x64">
17 <Configuration>Release</Configuration>
18 <Platform>x64</Platform>
19 </ProjectConfiguration>
20 </ItemGroup>
21 <PropertyGroup Label="Globals">
22 <ProjectName>06.2DGraphics</ProjectName>
23 <ProjectGuid>{E71B6F18-10DC-4101-A541-F6D33F71B2BD}</ProjectGuid>
24 <RootNamespace>2DGraphics</RootNamespace>
25 </PropertyGroup>
26 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
27 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
28 <ConfigurationType>Application</ConfigurationType>
29 <UseOfMfc>false</UseOfMfc>
30 <CharacterSet>MultiByte</CharacterSet>
31 </PropertyGroup>
32 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
33 <ConfigurationType>Application</ConfigurationType>
34 <UseOfMfc>false</UseOfMfc>
35 <CharacterSet>MultiByte</CharacterSet>
36 </PropertyGroup>
37 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
38 <ConfigurationType>Application</ConfigurationType>
39 <UseOfMfc>false</UseOfMfc>
40 <CharacterSet>MultiByte</CharacterSet>
41 </PropertyGroup>
42 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
43 <ConfigurationType>Application</ConfigurationType>
44 <UseOfMfc>false</UseOfMfc>
45 <CharacterSet>MultiByte</CharacterSet>
46 </PropertyGroup>
47 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
48 <ImportGroup Label="ExtensionSettings">
49 </ImportGroup>
50 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
51 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
52 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
53 </ImportGroup>
54 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
55 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
56 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
57 </ImportGroup>
58 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
59 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
60 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
61 </ImportGroup>
62 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
63 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
64 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
65 </ImportGroup>
66 <PropertyGroup Label="UserMacros" />
67 <PropertyGroup>
68 <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
69 <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">..\..\bin\Win32-VisualStudio\</OutDir>
70 <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">..\..\bin\Win64-VisualStudio\</OutDir>
71 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
72 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
73 <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\..\bin\Win32-VisualStudio\</OutDir>
74 <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">..\..\bin\Win64-VisualStudio\</OutDir>
75 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
76 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
77 <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
78 <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
79 <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
80 <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
81 <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
82 <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
83 <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
84 <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
85 <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
86 <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
87 <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
88 <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
89 </PropertyGroup>
90 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
91 <Midl>
92 <TypeLibraryName>.\Release/2DGraphics.tlb</TypeLibraryName>
93 <HeaderFileName>
94 </HeaderFileName>
95 </Midl>
96 <ClCompile>
97 <Optimization>MaxSpeed</Optimization>
98 <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
99 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
100 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
101 <StringPooling>true</StringPooling>
102 <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
103 <FunctionLevelLinking>true</FunctionLevelLinking>
104 <PrecompiledHeader>
105 </PrecompiledHeader>
106 <WarningLevel>Level3</WarningLevel>
107 </ClCompile>
108 <ResourceCompile>
109 <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
110 <Culture>0x0c07</Culture>
111 </ResourceCompile>
112 <Link>
113 <OutputFile>..\..\bin\Win32-VisualStudio\06.2DGraphics.exe</OutputFile>
114 <AdditionalLibraryDirectories>..\..\lib\Win32-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
115 <SubSystem>Console</SubSystem>
116 <DataExecutionPrevention>
117 </DataExecutionPrevention>
118 </Link>
119 </ItemDefinitionGroup>
120 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
121 <Midl>
122 <TypeLibraryName>.\Release/2DGraphics.tlb</TypeLibraryName>
123 <HeaderFileName>
124 </HeaderFileName>
125 </Midl>
126 <ClCompile>
127 <Optimization>MaxSpeed</Optimization>
128 <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
129 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
130 <PreprocessorDefinitions>WIN32;WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
131 <StringPooling>true</StringPooling>
132 <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
133 <FunctionLevelLinking>true</FunctionLevelLinking>
134 <PrecompiledHeader>
135 </PrecompiledHeader>
136 <WarningLevel>Level3</WarningLevel>
137 </ClCompile>
138 <ResourceCompile>
139 <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
140 <Culture>0x0c07</Culture>
141 </ResourceCompile>
142 <Link>
143 <OutputFile>..\..\bin\Win64-VisualStudio\06.2DGraphics.exe</OutputFile>
144 <AdditionalLibraryDirectories>..\..\lib\Win64-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
145 <SubSystem>Console</SubSystem>
146 <DataExecutionPrevention>
147 </DataExecutionPrevention>
148 </Link>
149 </ItemDefinitionGroup>
150 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
151 <Midl>
152 <TypeLibraryName>.\Debug/2DGraphics.tlb</TypeLibraryName>
153 <HeaderFileName>
154 </HeaderFileName>
155 </Midl>
156 <ClCompile>
157 <Optimization>Disabled</Optimization>
158 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
159 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
160 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
161 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
162 <PrecompiledHeader>
163 </PrecompiledHeader>
164 <WarningLevel>Level3</WarningLevel>
165 <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
166 </ClCompile>
167 <ResourceCompile>
168 <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
169 <Culture>0x0c07</Culture>
170 </ResourceCompile>
171 <Link>
172 <OutputFile>..\..\bin\Win32-VisualStudio\06.2DGraphics.exe</OutputFile>
173 <AdditionalLibraryDirectories>..\..\lib\Win32-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
174 <GenerateDebugInformation>true</GenerateDebugInformation>
175 <SubSystem>Console</SubSystem>
176 <DataExecutionPrevention>
177 </DataExecutionPrevention>
178 </Link>
179 </ItemDefinitionGroup>
180 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
181 <Midl>
182 <TypeLibraryName>.\Debug/2DGraphics.tlb</TypeLibraryName>
183 <HeaderFileName>
184 </HeaderFileName>
185 </Midl>
186 <ClCompile>
187 <Optimization>Disabled</Optimization>
188 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
189 <PreprocessorDefinitions>WIN32;WIN64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
190 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
191 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
192 <PrecompiledHeader>
193 </PrecompiledHeader>
194 <WarningLevel>Level3</WarningLevel>
195 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
196 </ClCompile>
197 <ResourceCompile>
198 <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
199 <Culture>0x0c07</Culture>
200 </ResourceCompile>
201 <Link>
202 <OutputFile>..\..\bin\Win64-VisualStudio\06.2DGraphics.exe</OutputFile>
203 <AdditionalLibraryDirectories>..\..\lib\Win64-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
204 <GenerateDebugInformation>true</GenerateDebugInformation>
205 <SubSystem>Console</SubSystem>
206 <DataExecutionPrevention>
207 </DataExecutionPrevention>
208 </Link>
209 </ItemDefinitionGroup>
210 <ItemGroup>
211 <ClCompile Include="main.cpp">
212 <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
213 <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
214 <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
215 <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
216 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
217 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
218 <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
219 <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
220 <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
221 <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
222 <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
223 <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
224 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
225 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
226 </ClCompile>
227 </ItemGroup>
228 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
229 <ImportGroup Label="ExtensionTargets">
230 </ImportGroup>
231</Project> \ No newline at end of file
diff --git a/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics_vc11.vcxproj b/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics_vc11.vcxproj
new file mode 100644
index 0000000..66e7aa0
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics_vc11.vcxproj
@@ -0,0 +1,235 @@
1<?xml version="1.0" encoding="utf-8"?>
2<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <ItemGroup Label="ProjectConfigurations">
4 <ProjectConfiguration Include="Debug|Win32">
5 <Configuration>Debug</Configuration>
6 <Platform>Win32</Platform>
7 </ProjectConfiguration>
8 <ProjectConfiguration Include="Debug|x64">
9 <Configuration>Debug</Configuration>
10 <Platform>x64</Platform>
11 </ProjectConfiguration>
12 <ProjectConfiguration Include="Release|Win32">
13 <Configuration>Release</Configuration>
14 <Platform>Win32</Platform>
15 </ProjectConfiguration>
16 <ProjectConfiguration Include="Release|x64">
17 <Configuration>Release</Configuration>
18 <Platform>x64</Platform>
19 </ProjectConfiguration>
20 </ItemGroup>
21 <PropertyGroup Label="Globals">
22 <ProjectName>06.2DGraphics</ProjectName>
23 <ProjectGuid>{E71B6F18-10DC-4101-A541-F6D33F71B2BD}</ProjectGuid>
24 <RootNamespace>2DGraphics</RootNamespace>
25 </PropertyGroup>
26 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
27 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
28 <ConfigurationType>Application</ConfigurationType>
29 <UseOfMfc>false</UseOfMfc>
30 <CharacterSet>MultiByte</CharacterSet>
31 <PlatformToolset>v110</PlatformToolset>
32 </PropertyGroup>
33 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
34 <ConfigurationType>Application</ConfigurationType>
35 <UseOfMfc>false</UseOfMfc>
36 <CharacterSet>MultiByte</CharacterSet>
37 <PlatformToolset>v110</PlatformToolset>
38 </PropertyGroup>
39 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
40 <ConfigurationType>Application</ConfigurationType>
41 <UseOfMfc>false</UseOfMfc>
42 <CharacterSet>MultiByte</CharacterSet>
43 <PlatformToolset>v110</PlatformToolset>
44 </PropertyGroup>
45 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
46 <ConfigurationType>Application</ConfigurationType>
47 <UseOfMfc>false</UseOfMfc>
48 <CharacterSet>MultiByte</CharacterSet>
49 <PlatformToolset>v110</PlatformToolset>
50 </PropertyGroup>
51 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
52 <ImportGroup Label="ExtensionSettings">
53 </ImportGroup>
54 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
55 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
56 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
57 </ImportGroup>
58 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
59 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
60 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
61 </ImportGroup>
62 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
63 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
64 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
65 </ImportGroup>
66 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
67 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
68 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
69 </ImportGroup>
70 <PropertyGroup Label="UserMacros" />
71 <PropertyGroup>
72 <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
73 <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">..\..\bin\Win32-VisualStudio\</OutDir>
74 <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">..\..\bin\Win64-VisualStudio\</OutDir>
75 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
76 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
77 <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\..\bin\Win32-VisualStudio\</OutDir>
78 <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">..\..\bin\Win64-VisualStudio\</OutDir>
79 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
80 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
81 <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
82 <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
83 <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
84 <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
85 <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
86 <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
87 <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
88 <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
89 <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
90 <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
91 <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
92 <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
93 </PropertyGroup>
94 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
95 <Midl>
96 <TypeLibraryName>.\Release/2DGraphics.tlb</TypeLibraryName>
97 <HeaderFileName>
98 </HeaderFileName>
99 </Midl>
100 <ClCompile>
101 <Optimization>MaxSpeed</Optimization>
102 <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
103 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
104 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
105 <StringPooling>true</StringPooling>
106 <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
107 <FunctionLevelLinking>true</FunctionLevelLinking>
108 <PrecompiledHeader>
109 </PrecompiledHeader>
110 <WarningLevel>Level3</WarningLevel>
111 </ClCompile>
112 <ResourceCompile>
113 <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
114 <Culture>0x0c07</Culture>
115 </ResourceCompile>
116 <Link>
117 <OutputFile>..\..\bin\Win32-VisualStudio\06.2DGraphics.exe</OutputFile>
118 <AdditionalLibraryDirectories>..\..\lib\Win32-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
119 <SubSystem>Console</SubSystem>
120 <DataExecutionPrevention>
121 </DataExecutionPrevention>
122 </Link>
123 </ItemDefinitionGroup>
124 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
125 <Midl>
126 <TypeLibraryName>.\Release/2DGraphics.tlb</TypeLibraryName>
127 <HeaderFileName>
128 </HeaderFileName>
129 </Midl>
130 <ClCompile>
131 <Optimization>MaxSpeed</Optimization>
132 <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
133 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
134 <PreprocessorDefinitions>WIN32;WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
135 <StringPooling>true</StringPooling>
136 <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
137 <FunctionLevelLinking>true</FunctionLevelLinking>
138 <PrecompiledHeader>
139 </PrecompiledHeader>
140 <WarningLevel>Level3</WarningLevel>
141 </ClCompile>
142 <ResourceCompile>
143 <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
144 <Culture>0x0c07</Culture>
145 </ResourceCompile>
146 <Link>
147 <OutputFile>..\..\bin\Win64-VisualStudio\06.2DGraphics.exe</OutputFile>
148 <AdditionalLibraryDirectories>..\..\lib\Win64-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
149 <SubSystem>Console</SubSystem>
150 <DataExecutionPrevention>
151 </DataExecutionPrevention>
152 </Link>
153 </ItemDefinitionGroup>
154 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
155 <Midl>
156 <TypeLibraryName>.\Debug/2DGraphics.tlb</TypeLibraryName>
157 <HeaderFileName>
158 </HeaderFileName>
159 </Midl>
160 <ClCompile>
161 <Optimization>Disabled</Optimization>
162 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
163 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
164 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
165 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
166 <PrecompiledHeader>
167 </PrecompiledHeader>
168 <WarningLevel>Level3</WarningLevel>
169 <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
170 </ClCompile>
171 <ResourceCompile>
172 <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
173 <Culture>0x0c07</Culture>
174 </ResourceCompile>
175 <Link>
176 <OutputFile>..\..\bin\Win32-VisualStudio\06.2DGraphics.exe</OutputFile>
177 <AdditionalLibraryDirectories>..\..\lib\Win32-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
178 <GenerateDebugInformation>true</GenerateDebugInformation>
179 <SubSystem>Console</SubSystem>
180 <DataExecutionPrevention>
181 </DataExecutionPrevention>
182 </Link>
183 </ItemDefinitionGroup>
184 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
185 <Midl>
186 <TypeLibraryName>.\Debug/2DGraphics.tlb</TypeLibraryName>
187 <HeaderFileName>
188 </HeaderFileName>
189 </Midl>
190 <ClCompile>
191 <Optimization>Disabled</Optimization>
192 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
193 <PreprocessorDefinitions>WIN32;WIN64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
194 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
195 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
196 <PrecompiledHeader>
197 </PrecompiledHeader>
198 <WarningLevel>Level3</WarningLevel>
199 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
200 </ClCompile>
201 <ResourceCompile>
202 <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
203 <Culture>0x0c07</Culture>
204 </ResourceCompile>
205 <Link>
206 <OutputFile>..\..\bin\Win64-VisualStudio\06.2DGraphics.exe</OutputFile>
207 <AdditionalLibraryDirectories>..\..\lib\Win64-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
208 <GenerateDebugInformation>true</GenerateDebugInformation>
209 <SubSystem>Console</SubSystem>
210 <DataExecutionPrevention>
211 </DataExecutionPrevention>
212 </Link>
213 </ItemDefinitionGroup>
214 <ItemGroup>
215 <ClCompile Include="main.cpp">
216 <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
217 <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
218 <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
219 <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
220 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
221 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
222 <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
223 <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
224 <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
225 <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
226 <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
227 <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
228 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
229 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
230 </ClCompile>
231 </ItemGroup>
232 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
233 <ImportGroup Label="ExtensionTargets">
234 </ImportGroup>
235</Project> \ No newline at end of file
diff --git a/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics_vc8.vcproj b/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics_vc8.vcproj
new file mode 100644
index 0000000..8a10914
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics_vc8.vcproj
@@ -0,0 +1,231 @@
1<?xml version="1.0" encoding="Windows-1252"?>
2<VisualStudioProject
3 ProjectType="Visual C++"
4 Version="8.00"
5 Name="06.2DGraphics_vc8"
6 ProjectGUID="{E71B6F18-10DC-4101-A541-F6D33F71B2BD}"
7 RootNamespace="2DGraphics_vc8"
8 >
9 <Platforms>
10 <Platform
11 Name="Win32"
12 />
13 </Platforms>
14 <ToolFiles>
15 </ToolFiles>
16 <Configurations>
17 <Configuration
18 Name="Release|Win32"
19 OutputDirectory=".\Release"
20 IntermediateDirectory=".\Release"
21 ConfigurationType="1"
22 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
23 UseOfMFC="0"
24 ATLMinimizesCRunTimeLibraryUsage="false"
25 CharacterSet="2"
26 >
27 <Tool
28 Name="VCPreBuildEventTool"
29 />
30 <Tool
31 Name="VCCustomBuildTool"
32 />
33 <Tool
34 Name="VCXMLDataGeneratorTool"
35 />
36 <Tool
37 Name="VCWebServiceProxyGeneratorTool"
38 />
39 <Tool
40 Name="VCMIDLTool"
41 TypeLibraryName=".\Release/2DGraphics.tlb"
42 HeaderFileName=""
43 />
44 <Tool
45 Name="VCCLCompilerTool"
46 Optimization="2"
47 InlineFunctionExpansion="1"
48 AdditionalIncludeDirectories="..\..\include"
49 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
50 StringPooling="true"
51 RuntimeLibrary="0"
52 EnableFunctionLevelLinking="true"
53 UsePrecompiledHeader="0"
54 PrecompiledHeaderFile=".\Release/2DGraphics.pch"
55 AssemblerListingLocation=".\Release/"
56 ObjectFile=".\Release/"
57 ProgramDataBaseFileName=".\Release/"
58 WarningLevel="3"
59 SuppressStartupBanner="true"
60 CompileAs="0"
61 />
62 <Tool
63 Name="VCManagedResourceCompilerTool"
64 />
65 <Tool
66 Name="VCResourceCompilerTool"
67 PreprocessorDefinitions="NDEBUG"
68 Culture="3079"
69 />
70 <Tool
71 Name="VCPreLinkEventTool"
72 />
73 <Tool
74 Name="VCLinkerTool"
75 OutputFile="..\..\bin\Win32-VisualStudio\06.2DGraphics.exe"
76 LinkIncremental="0"
77 SuppressStartupBanner="true"
78 AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio"
79 ProgramDatabaseFile=".\Release/2DGraphics.pdb"
80 SubSystem="1"
81 TargetMachine="1"
82 />
83 <Tool
84 Name="VCALinkTool"
85 />
86 <Tool
87 Name="VCManifestTool"
88 />
89 <Tool
90 Name="VCXDCMakeTool"
91 />
92 <Tool
93 Name="VCBscMakeTool"
94 />
95 <Tool
96 Name="VCFxCopTool"
97 />
98 <Tool
99 Name="VCAppVerifierTool"
100 />
101 <Tool
102 Name="VCWebDeploymentTool"
103 />
104 <Tool
105 Name="VCPostBuildEventTool"
106 />
107 </Configuration>
108 <Configuration
109 Name="Debug|Win32"
110 OutputDirectory=".\Debug"
111 IntermediateDirectory=".\Debug"
112 ConfigurationType="1"
113 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
114 UseOfMFC="0"
115 ATLMinimizesCRunTimeLibraryUsage="false"
116 CharacterSet="2"
117 >
118 <Tool
119 Name="VCPreBuildEventTool"
120 />
121 <Tool
122 Name="VCCustomBuildTool"
123 />
124 <Tool
125 Name="VCXMLDataGeneratorTool"
126 />
127 <Tool
128 Name="VCWebServiceProxyGeneratorTool"
129 />
130 <Tool
131 Name="VCMIDLTool"
132 TypeLibraryName=".\Debug/2DGraphics.tlb"
133 HeaderFileName=""
134 />
135 <Tool
136 Name="VCCLCompilerTool"
137 Optimization="0"
138 AdditionalIncludeDirectories="..\..\include"
139 PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
140 BasicRuntimeChecks="3"
141 RuntimeLibrary="1"
142 UsePrecompiledHeader="0"
143 PrecompiledHeaderFile=".\Debug/2DGraphics.pch"
144 AssemblerListingLocation=".\Debug/"
145 ObjectFile=".\Debug/"
146 ProgramDataBaseFileName=".\Debug/"
147 WarningLevel="3"
148 SuppressStartupBanner="true"
149 DebugInformationFormat="4"
150 CompileAs="0"
151 />
152 <Tool
153 Name="VCManagedResourceCompilerTool"
154 />
155 <Tool
156 Name="VCResourceCompilerTool"
157 PreprocessorDefinitions="_DEBUG"
158 Culture="3079"
159 />
160 <Tool
161 Name="VCPreLinkEventTool"
162 />
163 <Tool
164 Name="VCLinkerTool"
165 OutputFile="..\..\bin\Win32-VisualStudio\06.2DGraphics.exe"
166 LinkIncremental="0"
167 SuppressStartupBanner="true"
168 AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio"
169 GenerateDebugInformation="true"
170 ProgramDatabaseFile=".\Debug/2DGraphics.pdb"
171 SubSystem="1"
172 TargetMachine="1"
173 />
174 <Tool
175 Name="VCALinkTool"
176 />
177 <Tool
178 Name="VCManifestTool"
179 />
180 <Tool
181 Name="VCXDCMakeTool"
182 />
183 <Tool
184 Name="VCBscMakeTool"
185 />
186 <Tool
187 Name="VCFxCopTool"
188 />
189 <Tool
190 Name="VCAppVerifierTool"
191 />
192 <Tool
193 Name="VCWebDeploymentTool"
194 />
195 <Tool
196 Name="VCPostBuildEventTool"
197 />
198 </Configuration>
199 </Configurations>
200 <References>
201 </References>
202 <Files>
203 <File
204 RelativePath="main.cpp"
205 >
206 <FileConfiguration
207 Name="Release|Win32"
208 >
209 <Tool
210 Name="VCCLCompilerTool"
211 Optimization="2"
212 AdditionalIncludeDirectories=""
213 PreprocessorDefinitions=""
214 />
215 </FileConfiguration>
216 <FileConfiguration
217 Name="Debug|Win32"
218 >
219 <Tool
220 Name="VCCLCompilerTool"
221 Optimization="0"
222 AdditionalIncludeDirectories=""
223 PreprocessorDefinitions=""
224 BasicRuntimeChecks="3"
225 />
226 </FileConfiguration>
227 </File>
228 </Files>
229 <Globals>
230 </Globals>
231</VisualStudioProject>
diff --git a/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics_vc9.vcproj b/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics_vc9.vcproj
new file mode 100644
index 0000000..e78f8a0
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/06.2DGraphics/2DGraphics_vc9.vcproj
@@ -0,0 +1,230 @@
1<?xml version="1.0" encoding="Windows-1252"?>
2<VisualStudioProject
3 ProjectType="Visual C++"
4 Version="9.00"
5 Name="06.2DGraphics_vc9"
6 ProjectGUID="{E71B6F18-10DC-4101-A541-F6D33F71B2BD}"
7 RootNamespace="2DGraphics_vc9"
8 TargetFrameworkVersion="131072"
9 >
10 <Platforms>
11 <Platform
12 Name="Win32"
13 />
14 </Platforms>
15 <ToolFiles>
16 </ToolFiles>
17 <Configurations>
18 <Configuration
19 Name="Release|Win32"
20 OutputDirectory=".\Release"
21 IntermediateDirectory=".\Release"
22 ConfigurationType="1"
23 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
24 UseOfMFC="0"
25 ATLMinimizesCRunTimeLibraryUsage="false"
26 CharacterSet="2"
27 >
28 <Tool
29 Name="VCPreBuildEventTool"
30 />
31 <Tool
32 Name="VCCustomBuildTool"
33 />
34 <Tool
35 Name="VCXMLDataGeneratorTool"
36 />
37 <Tool
38 Name="VCWebServiceProxyGeneratorTool"
39 />
40 <Tool
41 Name="VCMIDLTool"
42 TypeLibraryName=".\Release/2DGraphics.tlb"
43 HeaderFileName=""
44 />
45 <Tool
46 Name="VCCLCompilerTool"
47 Optimization="2"
48 InlineFunctionExpansion="1"
49 AdditionalIncludeDirectories="..\..\include"
50 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
51 StringPooling="true"
52 RuntimeLibrary="0"
53 EnableFunctionLevelLinking="true"
54 UsePrecompiledHeader="0"
55 PrecompiledHeaderFile=".\Release/2DGraphics.pch"
56 AssemblerListingLocation=".\Release/"
57 ObjectFile=".\Release/"
58 ProgramDataBaseFileName=".\Release/"
59 WarningLevel="3"
60 SuppressStartupBanner="true"
61 CompileAs="0"
62 />
63 <Tool
64 Name="VCManagedResourceCompilerTool"
65 />
66 <Tool
67 Name="VCResourceCompilerTool"
68 PreprocessorDefinitions="NDEBUG"
69 Culture="3079"
70 />
71 <Tool
72 Name="VCPreLinkEventTool"
73 />
74 <Tool
75 Name="VCLinkerTool"
76 OutputFile="..\..\bin\Win32-VisualStudio\06.2DGraphics.exe"
77 LinkIncremental="0"
78 SuppressStartupBanner="true"
79 AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio"
80 ProgramDatabaseFile=".\Release/2DGraphics.pdb"
81 SubSystem="1"
82 RandomizedBaseAddress="1"
83 DataExecutionPrevention="0"
84 TargetMachine="1"
85 />
86 <Tool
87 Name="VCALinkTool"
88 />
89 <Tool
90 Name="VCManifestTool"
91 />
92 <Tool
93 Name="VCXDCMakeTool"
94 />
95 <Tool
96 Name="VCBscMakeTool"
97 />
98 <Tool
99 Name="VCFxCopTool"
100 />
101 <Tool
102 Name="VCAppVerifierTool"
103 />
104 <Tool
105 Name="VCPostBuildEventTool"
106 />
107 </Configuration>
108 <Configuration
109 Name="Debug|Win32"
110 OutputDirectory=".\Debug"
111 IntermediateDirectory=".\Debug"
112 ConfigurationType="1"
113 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
114 UseOfMFC="0"
115 ATLMinimizesCRunTimeLibraryUsage="false"
116 CharacterSet="2"
117 >
118 <Tool
119 Name="VCPreBuildEventTool"
120 />
121 <Tool
122 Name="VCCustomBuildTool"
123 />
124 <Tool
125 Name="VCXMLDataGeneratorTool"
126 />
127 <Tool
128 Name="VCWebServiceProxyGeneratorTool"
129 />
130 <Tool
131 Name="VCMIDLTool"
132 TypeLibraryName=".\Debug/2DGraphics.tlb"
133 HeaderFileName=""
134 />
135 <Tool
136 Name="VCCLCompilerTool"
137 Optimization="0"
138 AdditionalIncludeDirectories="..\..\include"
139 PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
140 BasicRuntimeChecks="3"
141 RuntimeLibrary="1"
142 UsePrecompiledHeader="0"
143 PrecompiledHeaderFile=".\Debug/2DGraphics.pch"
144 AssemblerListingLocation=".\Debug/"
145 ObjectFile=".\Debug/"
146 ProgramDataBaseFileName=".\Debug/"
147 WarningLevel="3"
148 SuppressStartupBanner="true"
149 DebugInformationFormat="4"
150 CompileAs="0"
151 />
152 <Tool
153 Name="VCManagedResourceCompilerTool"
154 />
155 <Tool
156 Name="VCResourceCompilerTool"
157 PreprocessorDefinitions="_DEBUG"
158 Culture="3079"
159 />
160 <Tool
161 Name="VCPreLinkEventTool"
162 />
163 <Tool
164 Name="VCLinkerTool"
165 OutputFile="..\..\bin\Win32-VisualStudio\06.2DGraphics.exe"
166 LinkIncremental="0"
167 SuppressStartupBanner="true"
168 AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio"
169 GenerateDebugInformation="true"
170 ProgramDatabaseFile=".\Debug/2DGraphics.pdb"
171 SubSystem="1"
172 RandomizedBaseAddress="1"
173 DataExecutionPrevention="0"
174 TargetMachine="1"
175 />
176 <Tool
177 Name="VCALinkTool"
178 />
179 <Tool
180 Name="VCManifestTool"
181 />
182 <Tool
183 Name="VCXDCMakeTool"
184 />
185 <Tool
186 Name="VCBscMakeTool"
187 />
188 <Tool
189 Name="VCFxCopTool"
190 />
191 <Tool
192 Name="VCAppVerifierTool"
193 />
194 <Tool
195 Name="VCPostBuildEventTool"
196 />
197 </Configuration>
198 </Configurations>
199 <References>
200 </References>
201 <Files>
202 <File
203 RelativePath="main.cpp"
204 >
205 <FileConfiguration
206 Name="Release|Win32"
207 >
208 <Tool
209 Name="VCCLCompilerTool"
210 Optimization="2"
211 AdditionalIncludeDirectories=""
212 PreprocessorDefinitions=""
213 />
214 </FileConfiguration>
215 <FileConfiguration
216 Name="Debug|Win32"
217 >
218 <Tool
219 Name="VCCLCompilerTool"
220 Optimization="0"
221 AdditionalIncludeDirectories=""
222 PreprocessorDefinitions=""
223 BasicRuntimeChecks="3"
224 />
225 </FileConfiguration>
226 </File>
227 </Files>
228 <Globals>
229 </Globals>
230</VisualStudioProject>
diff --git a/src/others/irrlicht-1.8.1/examples/06.2DGraphics/Makefile b/src/others/irrlicht-1.8.1/examples/06.2DGraphics/Makefile
new file mode 100644
index 0000000..6e62b2b
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/06.2DGraphics/Makefile
@@ -0,0 +1,38 @@
1# Makefile for Irrlicht Examples
2# It's usually sufficient to change just the target name and source file list
3# and be sure that CXX is set to a valid compiler
4Target = 06.2DGraphics
5Sources = main.cpp
6
7# general compiler settings
8CPPFLAGS = -I../../include -I/usr/X11R6/include
9CXXFLAGS = -O3 -ffast-math
10#CXXFLAGS = -g -Wall
11
12#default target is Linux
13all: all_linux
14
15ifeq ($(HOSTTYPE), x86_64)
16LIBSELECT=64
17endif
18
19# target specific settings
20all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
21all_linux clean_linux: SYSTEM=Linux
22all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
23all_win32 clean_win32: SYSTEM=Win32-gcc
24all_win32 clean_win32: SUF=.exe
25# name of the binary - only valid for targets which set SYSTEM
26DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
27
28all_linux all_win32:
29 $(warning Building...)
30 $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
31
32clean: clean_linux clean_win32
33 $(warning Cleaning...)
34
35clean_linux clean_win32:
36 @$(RM) $(DESTPATH)
37
38.PHONY: all all_win32 clean clean_linux clean_win32
diff --git a/src/others/irrlicht-1.8.1/examples/06.2DGraphics/main.cpp b/src/others/irrlicht-1.8.1/examples/06.2DGraphics/main.cpp
new file mode 100644
index 0000000..40e311a
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/06.2DGraphics/main.cpp
@@ -0,0 +1,166 @@
1/** Example 006 2D Graphics
2
3This Tutorial shows how to do 2d graphics with the Irrlicht Engine.
4It shows how to draw images, keycolor based sprites,
5transparent rectangles, and different fonts. You may consider
6this useful if you want to make a 2d game with the engine, or if
7you want to draw a cool interface or head up display for your 3d game.
8
9As always, I include the header files, use the irr namespace,
10and tell the linker to link with the .lib file.
11*/
12#include <irrlicht.h>
13#include "driverChoice.h"
14
15using namespace irr;
16
17#ifdef _MSC_VER
18#pragma comment(lib, "Irrlicht.lib")
19#endif
20
21/*
22At first, we let the user select the driver type, then start up the engine, set
23a caption, and get a pointer to the video driver.
24*/
25int main()
26{
27 // ask user for driver
28 video::E_DRIVER_TYPE driverType=driverChoiceConsole();
29 if (driverType==video::EDT_COUNT)
30 return 1;
31
32 // create device
33
34 IrrlichtDevice *device = createDevice(driverType,
35 core::dimension2d<u32>(512, 384));
36
37 if (device == 0)
38 return 1; // could not create selected driver.
39
40 device->setWindowCaption(L"Irrlicht Engine - 2D Graphics Demo");
41
42 video::IVideoDriver* driver = device->getVideoDriver();
43
44 /*
45 All 2d graphics in this example are put together into one texture,
46 2ddemo.png. Because we want to draw colorkey based sprites, we need to
47 load this texture and tell the engine, which part of it should be
48 transparent based on a colorkey.
49
50 In this example, we don't tell it the color directly, we just say "Hey
51 Irrlicht Engine, you'll find the color I want at position (0,0) on the
52 texture.". Instead, it would be also possible to call
53 driver->makeColorKeyTexture(images, video::SColor(0,0,0,0)), to make
54 e.g. all black pixels transparent. Please note that
55 makeColorKeyTexture just creates an alpha channel based on the color.
56 */
57 video::ITexture* images = driver->getTexture("../../media/2ddemo.png");
58 driver->makeColorKeyTexture(images, core::position2d<s32>(0,0));
59
60 /*
61 To be able to draw some text with two different fonts, we first load
62 them. Ok, we load just one. As the first font we just use the default
63 font which is built into the engine. Also, we define two rectangles
64 which specify the position of the images of the red imps (little flying
65 creatures) in the texture.
66 */
67 gui::IGUIFont* font = device->getGUIEnvironment()->getBuiltInFont();
68 gui::IGUIFont* font2 =
69 device->getGUIEnvironment()->getFont("../../media/fonthaettenschweiler.bmp");
70
71 core::rect<s32> imp1(349,15,385,78);
72 core::rect<s32> imp2(387,15,423,78);
73
74 /*
75 Prepare a nicely filtering 2d render mode for special cases.
76 */
77 driver->getMaterial2D().TextureLayer[0].BilinearFilter=true;
78 driver->getMaterial2D().AntiAliasing=video::EAAM_FULL_BASIC;
79
80 /*
81 Everything is prepared, now we can draw everything in the draw loop,
82 between the begin scene and end scene calls. In this example, we are
83 just doing 2d graphics, but it would be no problem to mix them with 3d
84 graphics. Just try it out, and draw some 3d vertices or set up a scene
85 with the scene manager and draw it.
86 */
87 while(device->run() && driver)
88 {
89 if (device->isWindowActive())
90 {
91 u32 time = device->getTimer()->getTime();
92
93 driver->beginScene(true, true, video::SColor(255,120,102,136));
94
95 /*
96 First, we draw 3 sprites, using the alpha channel we
97 created with makeColorKeyTexture. The last parameter
98 specifies that the drawing method should use this alpha
99 channel. The last-but-one parameter specifies a
100 color, with which the sprite should be colored.
101 (255,255,255,255) is full white, so the sprite will
102 look like the original. The third sprite is drawn
103 with the red channel modulated based on the time.
104 */
105
106 // draw fire & dragons background world
107 driver->draw2DImage(images, core::position2d<s32>(50,50),
108 core::rect<s32>(0,0,342,224), 0,
109 video::SColor(255,255,255,255), true);
110
111 // draw flying imp
112 driver->draw2DImage(images, core::position2d<s32>(164,125),
113 (time/500 % 2) ? imp1 : imp2, 0,
114 video::SColor(255,255,255,255), true);
115
116 // draw second flying imp with colorcylce
117 driver->draw2DImage(images, core::position2d<s32>(270,105),
118 (time/500 % 2) ? imp1 : imp2, 0,
119 video::SColor(255,(time) % 255,255,255), true);
120
121 /*
122 Drawing text is really simple. The code should be self
123 explanatory.
124 */
125
126 // draw some text
127 if (font)
128 font->draw(L"This demo shows that Irrlicht is also capable of drawing 2D graphics.",
129 core::rect<s32>(130,10,300,50),
130 video::SColor(255,255,255,255));
131
132 // draw some other text
133 if (font2)
134 font2->draw(L"Also mixing with 3d graphics is possible.",
135 core::rect<s32>(130,20,300,60),
136 video::SColor(255,time % 255,time % 255,255));
137
138 /*
139 Next, we draw the Irrlicht Engine logo (without
140 using a color or an alpha channel). Since we slightly scale
141 the image we use the prepared filter mode.
142 */
143 driver->enableMaterial2D();
144 driver->draw2DImage(images, core::rect<s32>(10,10,108,48),
145 core::rect<s32>(354,87,442,118));
146 driver->enableMaterial2D(false);
147
148 /*
149 Finally draw a half-transparent rect under the mouse cursor.
150 */
151 core::position2d<s32> m = device->getCursorControl()->getPosition();
152 driver->draw2DRectangle(video::SColor(100,255,255,255),
153 core::rect<s32>(m.X-20, m.Y-20, m.X+20, m.Y+20));
154
155 driver->endScene();
156 }
157 }
158
159 device->drop();
160
161 return 0;
162}
163
164/*
165That's all. I hope it was not too difficult.
166**/
diff --git a/src/others/irrlicht-1.8.1/examples/06.2DGraphics/tutorial.html b/src/others/irrlicht-1.8.1/examples/06.2DGraphics/tutorial.html
new file mode 100644
index 0000000..ea6291a
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/06.2DGraphics/tutorial.html
@@ -0,0 +1,163 @@
1<html>
2<head>
3<title>Irrlicht Engine Tutorial</title>
4<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
5</head>
6
7<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
8<br>
9<table width="95%" border="0" cellspacing="0" cellpadding="2" align="center">
10 <tr>
11 <td bgcolor="#666699" width="10"><b><a href="http://irrlicht.sourceforge.net" target="_blank"><img src="../../media/irrlichtlogo.jpg" width="88" height="31" border="0"></a></b></td>
12 <td bgcolor="#666699" width="100%">
13<div align="center">
14<div align="center"></div>
15 <div align="left"><b><font color="#FFFFFF">Tutorial 6. 2D Graphics</font></b></div>
16 </div>
17 </td>
18 </tr>
19 <tr bgcolor="#eeeeff">
20 <td height="90" colspan="2">
21 <div align="left">
22 <p>This Tutorial shows how to do 2d graphics with the Irrlicht Engine.
23 It shows how to draw images, keycolor based sprites, transparent rectangles
24 and different fonts. You will may consider this useful if you want to
25 make a 2d game with the engine, or if you want to draw a cool interface
26 or head up display for your 3d game.</p>
27 <p>The program which is described here will look like this:</p>
28 <p align="center"><img src="../../media/006shot.jpg" width="259" height="204"><br>
29 </p>
30 </div>
31 </td>
32 </tr>
33</table>
34<br>
35<table width="95%" border="0" cellspacing="0" cellpadding="2" align="center">
36 <tr>
37 <td bgcolor="#666699"> <div align="center"><b><font color="#FFFFFF"></font></b></div>
38 <b><font color="#FFFFFF">Lets start!</font></b></td>
39 </tr>
40 <tr>
41 <td height="90" bgcolor="#eeeeff" valign="top"> <div align="left">
42 <p>As always, I include the header files, use the irr namespace, and tell
43 the linker to link with the .lib file. </p>
44 <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center">
45 <tr>
46 <td> <pre>#include &lt;irrlicht.h&gt;<br>#include &lt;iostream&gt;<br><br>using namespace irr;</pre>
47 <pre>#pragma comment(lib, &quot;Irrlicht.lib&quot;)
48 </pre></td>
49 </tr>
50 </table>
51 <p>At first, we let the user select the driver type, then start up the
52 engine, set a caption, and get a pointer to the video driver.</p>
53 <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center">
54 <tr>
55 <td> <pre>int main()<br>{<br> // let user select driver type<br> video::E_DRIVER_TYPE driverType;<br><br> printf(&quot;Please select the driver you want for this example:\n&quot;\<br> &quot; (a) Direct3D 9.0c\n (b) Direct3D 8.1\n (c) OpenGL 1.5\n&quot;\<br> &quot; (d) Software Renderer\n (e) Apfelbaum Software Renderer\n&quot;\<br> &quot; (f) NullDevice\n (otherKey) exit\n\n&quot;);<br><br> char i;<br> std::cin &gt;&gt; i;<br><br> switch(i)<br> {<br> case 'a': driverType = video::EDT_DIRECT3D9;break;<br> case 'b': driverType = video::EDT_DIRECT3D8;break;<br> case 'c': driverType = video::EDT_OPENGL; break;<br> case 'd': driverType = video::EDT_SOFTWARE; break;<br> case 'e': driverType = video::EDT_BURNINGSVIDEO;break;<br> case 'f': driverType = video::EDT_NULL; break;<br> default: return 0;<br> } <br><br> // create device</pre>
56 <pre> IrrlichtDevice *device = createDevice(driverType,
57 core::dimension2d&lt;s32&gt;(512, 384));</pre>
58 <pre> if (device == 0)
59 return 1;
60 <br> device-&gt;setWindowCaption(L&quot;Irrlicht Engine - 2D Graphics Demo&quot;);</pre>
61 <pre> video::IVideoDriver* driver = device-&gt;getVideoDriver();</pre></td>
62 </tr>
63 </table>
64 <p> All 2d graphics in this example are put together into one texture,
65 2ddemo.bmp. Because we want to draw colorkey based sprites, we need
66 to load this texture and tell the engine, which part of it should be
67 transparent based on a colorkey. In this example, we don't tell it the
68 color directly, we just say &quot;Hey Irrlicht Engine, you'll find the
69 color I want at position (0,0) on the texture.&quot;. Instead, it would
70 be also possible to call <font face="Courier New, Courier, mono">driver-&gt;makeColorKeyTexture(images,
71 video::SColor(0,0,0,0))</font>, to make e.g. all black pixels transparent.
72 Please note, that makeColorKeyTexture just creates an alpha channel
73 based on the color. </p>
74 <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center">
75 <tr>
76 <td> <pre>video::ITexture* images = driver-&gt;getTexture(&quot;../../media/2ddemo.bmp&quot;);<br>driver-&gt;makeColorKeyTexture(images, core::position2d&lt;s32&gt;(0,0));</pre></td>
77 </tr>
78 </table>
79 <p>To be able to draw some text with two different fonts, we load them.
80 Ok, we load just one, as first font we just use the default font which
81 is built into the engine.<br>
82 Also, we define two rectangles, which specify the position of the images
83 of the red imps (little flying creatures) in the texture.</p>
84 <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center">
85 <tr>
86 <td> <pre>gui::IGUIFont* font = device-&gt;getGUIEnvironment()-&gt;getBuiltInFont();<br>gui::IGUIFont* font2 = device-&gt;getGUIEnvironment()-&gt;getFont(
87 &quot;../../media/fonthaettenschweiler.bmp&quot;);</pre>
88 <pre>core::rect&lt;s32&gt; imp1(349,15,385,78);
89core::rect&lt;s32&gt; imp2(387,15,423,78);</pre></td>
90 </tr>
91 </table>
92 <p>Everything is prepared, now we can draw everything in the draw loop,
93 between the begin scene and end scene calls. In this example, we are
94 just doing 2d graphics, but it would be no problem to mix them with
95 3d graphics. Just try it out, and draw some 3d vertices or set up a
96 scene with the scene manager and draw it.</p>
97 </div>
98 <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center">
99 <tr>
100 <td> <pre>while(device-&gt;run() &amp;&amp; driver)<br>{<br> if (device-&gt;isWindowActive())<br> {<br> u32 time = device-&gt;getTimer()-&gt;getTime();<br> driver-&gt;beginScene(true, true, video::SColor(0,120,102,136));
101</pre></td>
102 </tr>
103 </table>
104 <p> First, we draw 3 sprites, using the alpha channel we created with makeColorKeyTexture.
105 The last parameter specifiys that the drawing method should use thiw alpha
106 channel. The parameter before the last one specifies a color, with wich
107 the sprite should be colored. (255,255,255,255) is full white, so the
108 sprite will look like the original. The third sprite is drawed colored
109 based on the time. </p>
110 <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center">
111 <tr>
112 <td><pre>// draw fire &amp; dragons background world<br>driver-&gt;draw2DImage(images, core::position2d&lt;s32&gt;(50,50),<br> core::rect&lt;s32&gt;(0,0,342,224), 0, <br> video::SColor(255,255,255,255), true);</pre>
113 <pre>// draw flying imp
114driver-&gt;draw2DImage(images, core::position2d&lt;s32&gt;(164,125),
115 (time/500 % 2) ? imp1 : imp2, 0,
116 video::SColor(255,255,255,255), true);</pre>
117 <pre>// draw second flying imp with colorcylce
118driver-&gt;draw2DImage(images, core::position2d&lt;s32&gt;(270,105),
119 (time/500 % 2) ? imp1 : imp2, 0,
120 video::SColor(255,(time) % 255,255,255), true);</pre></td>
121 </tr>
122 </table>
123 <p> Drawing text is really simple. The code should be self explanatory.</p>
124 <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center">
125 <tr>
126 <td><pre>// draw some text<br>if (font)<br> font-&gt;draw(L&quot;This is some text.&quot;,<br> core::rect&lt;s32&gt;(130,10,300,50),<br> video::SColor(255,255,255,255));</pre>
127 <pre>// draw some other text
128if (font2)
129 font2-&gt;draw(L&quot;This is some other text.&quot;,
130 core::rect&lt;s32&gt;(130,20,300,60),
131 video::SColor(255,time % 255,time % 255,255));</pre></td>
132 </tr>
133 </table>
134 <p>At last, we draw the Irrlicht Engine logo (without using a color or an
135 alpha channel) and a transparent 2d Rectangle at the position of the mouse
136 cursor.</p>
137 <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center">
138 <tr>
139 <td> <pre> // draw logo<br> driver-&gt;draw2DImage(images, core::position2d&lt;s32&gt;(10,10),<br> core::rect&lt;s32&gt;(354,87,442,118));</pre>
140 <pre> // draw transparent rect under cursor
141 core::position2d&lt;s32&gt; m = device-&gt;getCursorControl()-&gt;getPosition();
142 driver-&gt;draw2DRectangle(video::SColor(100,255,255,255),
143 core::rect&lt;s32&gt;(m.X-20, m.Y-20, m.X+20, m.Y+20));</pre>
144 <pre> driver-&gt;endScene();
145 }
146}</pre></td>
147 </tr>
148 </table>
149 <p>That's all, it was not really difficult, I hope.</p>
150 <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center">
151 <tr>
152 <td> <pre> device-&gt;drop();
153 return 0;
154}</pre>
155 </td>
156 </tr>
157 </table>
158 <p>&nbsp;</p></td>
159 </tr>
160</table>
161<p>&nbsp;</p>
162 </body>
163</html>