aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/examples/14.Win32Window
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/examples/14.Win32Window')
-rw-r--r--src/others/irrlicht-1.8.1/examples/14.Win32Window/Makefile38
-rw-r--r--src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window.cbp43
-rw-r--r--src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window.dev59
-rw-r--r--src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window.vcproj165
-rw-r--r--src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window_vc10.vcxproj235
-rw-r--r--src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window_vc11.vcxproj239
-rw-r--r--src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window_vc8.vcproj232
-rw-r--r--src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window_vc9.vcproj232
-rw-r--r--src/others/irrlicht-1.8.1/examples/14.Win32Window/main.cpp251
-rw-r--r--src/others/irrlicht-1.8.1/examples/14.Win32Window/tutorial.html247
10 files changed, 1741 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/examples/14.Win32Window/Makefile b/src/others/irrlicht-1.8.1/examples/14.Win32Window/Makefile
new file mode 100644
index 0000000..e76f2ff
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/14.Win32Window/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 = 14.Win32Window
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/14.Win32Window/Win32Window.cbp b/src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window.cbp
new file mode 100644
index 0000000..06f310b
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window.cbp
@@ -0,0 +1,43 @@
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 14 Win32 Window" />
6 <Option platforms="Windows;" />
7 <Option pch_mode="0" />
8 <Option compiler="gcc" />
9 <Build>
10 <Target title="Windows">
11 <Option platforms="Windows;" />
12 <Option output="..\..\bin\Win32-gcc\Win32Window" prefix_auto="0" extension_auto="1" />
13 <Option type="1" />
14 <Option compiler="gcc" />
15 <Option projectCompilerOptionsRelation="0" />
16 <Compiler>
17 <Add option="-g" />
18 </Compiler>
19 <Linker>
20 <Add library="opengl32" />
21 <Add library="gdi32" />
22 <Add directory="..\..\lib\Win32-gcc" />
23 </Linker>
24 </Target>
25 </Build>
26 <VirtualTargets>
27 <Add alias="All" targets="Windows;" />
28 </VirtualTargets>
29 <Compiler>
30 <Add option="-g" />
31 <Add directory="..\..\include" />
32 </Compiler>
33 <Linker>
34 <Add library="Irrlicht" />
35 </Linker>
36 <Unit filename="main.cpp" />
37 <Extensions>
38 <code_completion />
39 <debugger />
40 <envvars />
41 </Extensions>
42 </Project>
43</CodeBlocks_project_file>
diff --git a/src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window.dev b/src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window.dev
new file mode 100644
index 0000000..6192563
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window.dev
@@ -0,0 +1,59 @@
1[Project]
2FileName=example.dev
3Name=Irrlicht Example 14 Win32 Window
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=14.Win32Window.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/14.Win32Window/Win32Window.vcproj b/src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window.vcproj
new file mode 100644
index 0000000..c8576c7
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window.vcproj
@@ -0,0 +1,165 @@
1<?xml version="1.0" encoding="Windows-1252"?>
2<VisualStudioProject
3 ProjectType="Visual C++"
4 Version="7.10"
5 Name="14.Win32Window"
6 ProjectGUID="{3A73BAFE-60DE-4E40-9E37-710760BC25C6}"
7 SccProjectName=""
8 SccLocalPath="">
9 <Platforms>
10 <Platform
11 Name="Win32"/>
12 </Platforms>
13 <Configurations>
14 <Configuration
15 Name="Debug|Win32"
16 OutputDirectory=".\Debug"
17 IntermediateDirectory=".\Debug"
18 ConfigurationType="1"
19 UseOfMFC="0"
20 ATLMinimizesCRunTimeLibraryUsage="FALSE"
21 CharacterSet="2">
22 <Tool
23 Name="VCCLCompilerTool"
24 Optimization="0"
25 AdditionalIncludeDirectories="..\..\include"
26 PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
27 BasicRuntimeChecks="3"
28 RuntimeLibrary="5"
29 UsePrecompiledHeader="2"
30 PrecompiledHeaderFile=".\Debug/Win32Window.pch"
31 AssemblerListingLocation=".\Debug/"
32 ObjectFile=".\Debug/"
33 ProgramDataBaseFileName=".\Debug/"
34 WarningLevel="3"
35 SuppressStartupBanner="TRUE"
36 DebugInformationFormat="4"
37 CompileAs="0"/>
38 <Tool
39 Name="VCCustomBuildTool"/>
40 <Tool
41 Name="VCLinkerTool"
42 AdditionalDependencies="opengl32.lib"
43 OutputFile="..\..\bin\Win32-VisualStudio\14.Win32Window.exe"
44 LinkIncremental="0"
45 SuppressStartupBanner="TRUE"
46 AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio"
47 GenerateDebugInformation="TRUE"
48 ProgramDatabaseFile=".\Debug/Win32Window.pdb"
49 SubSystem="1"
50 TargetMachine="1"/>
51 <Tool
52 Name="VCMIDLTool"
53 TypeLibraryName=".\Debug/Win32Window.tlb"
54 HeaderFileName=""/>
55 <Tool
56 Name="VCPostBuildEventTool"/>
57 <Tool
58 Name="VCPreBuildEventTool"/>
59 <Tool
60 Name="VCPreLinkEventTool"/>
61 <Tool
62 Name="VCResourceCompilerTool"
63 PreprocessorDefinitions="_DEBUG"
64 Culture="3079"/>
65 <Tool
66 Name="VCWebServiceProxyGeneratorTool"/>
67 <Tool
68 Name="VCXMLDataGeneratorTool"/>
69 <Tool
70 Name="VCWebDeploymentTool"/>
71 <Tool
72 Name="VCManagedWrapperGeneratorTool"/>
73 <Tool
74 Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
75 </Configuration>
76 <Configuration
77 Name="Release|Win32"
78 OutputDirectory=".\Release"
79 IntermediateDirectory=".\Release"
80 ConfigurationType="1"
81 UseOfMFC="0"
82 ATLMinimizesCRunTimeLibraryUsage="FALSE"
83 CharacterSet="2">
84 <Tool
85 Name="VCCLCompilerTool"
86 Optimization="2"
87 InlineFunctionExpansion="1"
88 AdditionalIncludeDirectories="..\..\include"
89 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
90 StringPooling="TRUE"
91 RuntimeLibrary="4"
92 EnableFunctionLevelLinking="TRUE"
93 UsePrecompiledHeader="2"
94 PrecompiledHeaderFile=".\Release/Win32Window.pch"
95 AssemblerListingLocation=".\Release/"
96 ObjectFile=".\Release/"
97 ProgramDataBaseFileName=".\Release/"
98 WarningLevel="3"
99 SuppressStartupBanner="TRUE"
100 CompileAs="0"/>
101 <Tool
102 Name="VCCustomBuildTool"/>
103 <Tool
104 Name="VCLinkerTool"
105 AdditionalDependencies="opengl32.lib"
106 OutputFile="..\..\bin\Win32-VisualStudio\14.Win32Window.exe"
107 LinkIncremental="0"
108 SuppressStartupBanner="TRUE"
109 AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio"
110 ProgramDatabaseFile=".\Release/Win32Window.pdb"
111 SubSystem="1"
112 TargetMachine="1"/>
113 <Tool
114 Name="VCMIDLTool"
115 TypeLibraryName=".\Release/Win32Window.tlb"
116 HeaderFileName=""/>
117 <Tool
118 Name="VCPostBuildEventTool"/>
119 <Tool
120 Name="VCPreBuildEventTool"/>
121 <Tool
122 Name="VCPreLinkEventTool"/>
123 <Tool
124 Name="VCResourceCompilerTool"
125 PreprocessorDefinitions="NDEBUG"
126 Culture="3079"/>
127 <Tool
128 Name="VCWebServiceProxyGeneratorTool"/>
129 <Tool
130 Name="VCXMLDataGeneratorTool"/>
131 <Tool
132 Name="VCWebDeploymentTool"/>
133 <Tool
134 Name="VCManagedWrapperGeneratorTool"/>
135 <Tool
136 Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
137 </Configuration>
138 </Configurations>
139 <References>
140 </References>
141 <Files>
142 <File
143 RelativePath="main.cpp">
144 <FileConfiguration
145 Name="Debug|Win32">
146 <Tool
147 Name="VCCLCompilerTool"
148 Optimization="0"
149 AdditionalIncludeDirectories=""
150 PreprocessorDefinitions=""
151 BasicRuntimeChecks="3"/>
152 </FileConfiguration>
153 <FileConfiguration
154 Name="Release|Win32">
155 <Tool
156 Name="VCCLCompilerTool"
157 Optimization="2"
158 AdditionalIncludeDirectories=""
159 PreprocessorDefinitions=""/>
160 </FileConfiguration>
161 </File>
162 </Files>
163 <Globals>
164 </Globals>
165</VisualStudioProject>
diff --git a/src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window_vc10.vcxproj b/src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window_vc10.vcxproj
new file mode 100644
index 0000000..f18c583
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window_vc10.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>14.Win32Window</ProjectName>
23 <ProjectGuid>{772FBE05-D05A-467B-9842-BEC409EEA8D0}</ProjectGuid>
24 <RootNamespace>Win32Window</RootNamespace>
25 </PropertyGroup>
26 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
27 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
28 <ConfigurationType>Application</ConfigurationType>
29 <UseOfMfc>false</UseOfMfc>
30 <CharacterSet>MultiByte</CharacterSet>
31 </PropertyGroup>
32 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
33 <ConfigurationType>Application</ConfigurationType>
34 <UseOfMfc>false</UseOfMfc>
35 <CharacterSet>MultiByte</CharacterSet>
36 </PropertyGroup>
37 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
38 <ConfigurationType>Application</ConfigurationType>
39 <UseOfMfc>false</UseOfMfc>
40 <CharacterSet>MultiByte</CharacterSet>
41 </PropertyGroup>
42 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|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)'=='Release|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)'=='Release|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)'=='Debug|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)'=='Debug|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)'=='Debug|Win32'">..\..\bin\Win32-VisualStudio\</OutDir>
70 <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">..\..\bin\Win64-VisualStudio\</OutDir>
71 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
72 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
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 <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)'=='Debug|Win32'">
91 <Midl>
92 <TypeLibraryName>.\Debug/Win32Window.tlb</TypeLibraryName>
93 <HeaderFileName>
94 </HeaderFileName>
95 </Midl>
96 <ClCompile>
97 <Optimization>Disabled</Optimization>
98 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
99 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
100 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
101 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
102 <PrecompiledHeader>
103 </PrecompiledHeader>
104 <WarningLevel>Level3</WarningLevel>
105 <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
106 </ClCompile>
107 <ResourceCompile>
108 <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
109 <Culture>0x0c07</Culture>
110 </ResourceCompile>
111 <Link>
112 <AdditionalDependencies>opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
113 <OutputFile>..\..\bin\Win32-VisualStudio\14.Win32Window.exe</OutputFile>
114 <AdditionalLibraryDirectories>..\..\lib\Win32-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
115 <GenerateDebugInformation>true</GenerateDebugInformation>
116 <SubSystem>Console</SubSystem>
117 <DataExecutionPrevention>
118 </DataExecutionPrevention>
119 </Link>
120 </ItemDefinitionGroup>
121 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
122 <Midl>
123 <TypeLibraryName>.\Debug/Win32Window.tlb</TypeLibraryName>
124 <HeaderFileName>
125 </HeaderFileName>
126 </Midl>
127 <ClCompile>
128 <Optimization>Disabled</Optimization>
129 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
130 <PreprocessorDefinitions>WIN32;WIN64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
131 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
132 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
133 <PrecompiledHeader>
134 </PrecompiledHeader>
135 <WarningLevel>Level3</WarningLevel>
136 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
137 </ClCompile>
138 <ResourceCompile>
139 <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
140 <Culture>0x0c07</Culture>
141 </ResourceCompile>
142 <Link>
143 <AdditionalDependencies>opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
144 <OutputFile>..\..\bin\Win64-VisualStudio\14.Win32Window.exe</OutputFile>
145 <AdditionalLibraryDirectories>..\..\lib\Win64-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
146 <GenerateDebugInformation>true</GenerateDebugInformation>
147 <SubSystem>Console</SubSystem>
148 <DataExecutionPrevention>
149 </DataExecutionPrevention>
150 </Link>
151 </ItemDefinitionGroup>
152 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
153 <Midl>
154 <TypeLibraryName>.\Release/Win32Window.tlb</TypeLibraryName>
155 <HeaderFileName>
156 </HeaderFileName>
157 </Midl>
158 <ClCompile>
159 <Optimization>MaxSpeed</Optimization>
160 <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
161 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
162 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
163 <StringPooling>true</StringPooling>
164 <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
165 <FunctionLevelLinking>true</FunctionLevelLinking>
166 <PrecompiledHeader>
167 </PrecompiledHeader>
168 <WarningLevel>Level3</WarningLevel>
169 </ClCompile>
170 <ResourceCompile>
171 <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
172 <Culture>0x0c07</Culture>
173 </ResourceCompile>
174 <Link>
175 <AdditionalDependencies>opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
176 <OutputFile>..\..\bin\Win32-VisualStudio\14.Win32Window.exe</OutputFile>
177 <AdditionalLibraryDirectories>..\..\lib\Win32-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
178 <SubSystem>Console</SubSystem>
179 <DataExecutionPrevention>
180 </DataExecutionPrevention>
181 </Link>
182 </ItemDefinitionGroup>
183 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
184 <Midl>
185 <TypeLibraryName>.\Release/Win32Window.tlb</TypeLibraryName>
186 <HeaderFileName>
187 </HeaderFileName>
188 </Midl>
189 <ClCompile>
190 <Optimization>MaxSpeed</Optimization>
191 <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
192 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
193 <PreprocessorDefinitions>WIN32;WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
194 <StringPooling>true</StringPooling>
195 <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
196 <FunctionLevelLinking>true</FunctionLevelLinking>
197 <PrecompiledHeader>
198 </PrecompiledHeader>
199 <WarningLevel>Level3</WarningLevel>
200 </ClCompile>
201 <ResourceCompile>
202 <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
203 <Culture>0x0c07</Culture>
204 </ResourceCompile>
205 <Link>
206 <AdditionalDependencies>opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
207 <OutputFile>..\..\bin\Win64-VisualStudio\14.Win32Window.exe</OutputFile>
208 <AdditionalLibraryDirectories>..\..\lib\Win64-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
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/14.Win32Window/Win32Window_vc11.vcxproj b/src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window_vc11.vcxproj
new file mode 100644
index 0000000..07a2fce
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window_vc11.vcxproj
@@ -0,0 +1,239 @@
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>14.Win32Window</ProjectName>
23 <ProjectGuid>{772FBE05-D05A-467B-9842-BEC409EEA8D0}</ProjectGuid>
24 <RootNamespace>Win32Window</RootNamespace>
25 </PropertyGroup>
26 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
27 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|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)'=='Release|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)'=='Debug|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)'=='Debug|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)'=='Release|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)'=='Release|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)'=='Debug|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)'=='Debug|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)'=='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 <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">..\..\bin\Win32-VisualStudio\</OutDir>
78 <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">..\..\bin\Win64-VisualStudio\</OutDir>
79 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
80 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|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)'=='Debug|Win32'">
95 <Midl>
96 <TypeLibraryName>.\Debug/Win32Window.tlb</TypeLibraryName>
97 <HeaderFileName>
98 </HeaderFileName>
99 </Midl>
100 <ClCompile>
101 <Optimization>Disabled</Optimization>
102 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
103 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
104 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
105 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
106 <PrecompiledHeader>
107 </PrecompiledHeader>
108 <WarningLevel>Level3</WarningLevel>
109 <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
110 </ClCompile>
111 <ResourceCompile>
112 <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
113 <Culture>0x0c07</Culture>
114 </ResourceCompile>
115 <Link>
116 <AdditionalDependencies>opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
117 <OutputFile>..\..\bin\Win32-VisualStudio\14.Win32Window.exe</OutputFile>
118 <AdditionalLibraryDirectories>..\..\lib\Win32-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
119 <GenerateDebugInformation>true</GenerateDebugInformation>
120 <SubSystem>Console</SubSystem>
121 <DataExecutionPrevention>
122 </DataExecutionPrevention>
123 </Link>
124 </ItemDefinitionGroup>
125 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
126 <Midl>
127 <TypeLibraryName>.\Debug/Win32Window.tlb</TypeLibraryName>
128 <HeaderFileName>
129 </HeaderFileName>
130 </Midl>
131 <ClCompile>
132 <Optimization>Disabled</Optimization>
133 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
134 <PreprocessorDefinitions>WIN32;WIN64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
135 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
136 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
137 <PrecompiledHeader>
138 </PrecompiledHeader>
139 <WarningLevel>Level3</WarningLevel>
140 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
141 </ClCompile>
142 <ResourceCompile>
143 <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
144 <Culture>0x0c07</Culture>
145 </ResourceCompile>
146 <Link>
147 <AdditionalDependencies>opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
148 <OutputFile>..\..\bin\Win64-VisualStudio\14.Win32Window.exe</OutputFile>
149 <AdditionalLibraryDirectories>..\..\lib\Win64-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
150 <GenerateDebugInformation>true</GenerateDebugInformation>
151 <SubSystem>Console</SubSystem>
152 <DataExecutionPrevention>
153 </DataExecutionPrevention>
154 </Link>
155 </ItemDefinitionGroup>
156 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
157 <Midl>
158 <TypeLibraryName>.\Release/Win32Window.tlb</TypeLibraryName>
159 <HeaderFileName>
160 </HeaderFileName>
161 </Midl>
162 <ClCompile>
163 <Optimization>MaxSpeed</Optimization>
164 <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
165 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
166 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
167 <StringPooling>true</StringPooling>
168 <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
169 <FunctionLevelLinking>true</FunctionLevelLinking>
170 <PrecompiledHeader>
171 </PrecompiledHeader>
172 <WarningLevel>Level3</WarningLevel>
173 </ClCompile>
174 <ResourceCompile>
175 <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
176 <Culture>0x0c07</Culture>
177 </ResourceCompile>
178 <Link>
179 <AdditionalDependencies>opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
180 <OutputFile>..\..\bin\Win32-VisualStudio\14.Win32Window.exe</OutputFile>
181 <AdditionalLibraryDirectories>..\..\lib\Win32-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
182 <SubSystem>Console</SubSystem>
183 <DataExecutionPrevention>
184 </DataExecutionPrevention>
185 </Link>
186 </ItemDefinitionGroup>
187 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
188 <Midl>
189 <TypeLibraryName>.\Release/Win32Window.tlb</TypeLibraryName>
190 <HeaderFileName>
191 </HeaderFileName>
192 </Midl>
193 <ClCompile>
194 <Optimization>MaxSpeed</Optimization>
195 <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
196 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
197 <PreprocessorDefinitions>WIN32;WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
198 <StringPooling>true</StringPooling>
199 <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
200 <FunctionLevelLinking>true</FunctionLevelLinking>
201 <PrecompiledHeader>
202 </PrecompiledHeader>
203 <WarningLevel>Level3</WarningLevel>
204 </ClCompile>
205 <ResourceCompile>
206 <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
207 <Culture>0x0c07</Culture>
208 </ResourceCompile>
209 <Link>
210 <AdditionalDependencies>opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
211 <OutputFile>..\..\bin\Win64-VisualStudio\14.Win32Window.exe</OutputFile>
212 <AdditionalLibraryDirectories>..\..\lib\Win64-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
213 <SubSystem>Console</SubSystem>
214 <DataExecutionPrevention>
215 </DataExecutionPrevention>
216 </Link>
217 </ItemDefinitionGroup>
218 <ItemGroup>
219 <ClCompile Include="main.cpp">
220 <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
221 <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
222 <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
223 <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
224 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
225 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
226 <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
227 <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
228 <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
229 <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
230 <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
231 <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
232 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
233 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
234 </ClCompile>
235 </ItemGroup>
236 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
237 <ImportGroup Label="ExtensionTargets">
238 </ImportGroup>
239</Project> \ No newline at end of file
diff --git a/src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window_vc8.vcproj b/src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window_vc8.vcproj
new file mode 100644
index 0000000..efbf43d
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window_vc8.vcproj
@@ -0,0 +1,232 @@
1<?xml version="1.0" encoding="Windows-1252"?>
2<VisualStudioProject
3 ProjectType="Visual C++"
4 Version="8.00"
5 Name="14.Win32Window_vc8"
6 ProjectGUID="{772FBE05-D05A-467B-9842-BEC409EEA8D0}"
7 RootNamespace="Win32Window_vc8"
8 >
9 <Platforms>
10 <Platform
11 Name="Win32"
12 />
13 </Platforms>
14 <ToolFiles>
15 </ToolFiles>
16 <Configurations>
17 <Configuration
18 Name="Debug|Win32"
19 OutputDirectory=".\Debug"
20 IntermediateDirectory=".\Debug"
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=".\Debug/Win32Window.tlb"
42 HeaderFileName=""
43 />
44 <Tool
45 Name="VCCLCompilerTool"
46 Optimization="0"
47 AdditionalIncludeDirectories="..\..\include"
48 PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
49 BasicRuntimeChecks="3"
50 RuntimeLibrary="1"
51 UsePrecompiledHeader="0"
52 PrecompiledHeaderFile=".\Debug/Win32Window.pch"
53 AssemblerListingLocation=".\Debug/"
54 ObjectFile=".\Debug/"
55 ProgramDataBaseFileName=".\Debug/"
56 WarningLevel="3"
57 SuppressStartupBanner="true"
58 DebugInformationFormat="4"
59 CompileAs="0"
60 />
61 <Tool
62 Name="VCManagedResourceCompilerTool"
63 />
64 <Tool
65 Name="VCResourceCompilerTool"
66 PreprocessorDefinitions="_DEBUG"
67 Culture="3079"
68 />
69 <Tool
70 Name="VCPreLinkEventTool"
71 />
72 <Tool
73 Name="VCLinkerTool"
74 AdditionalDependencies="kernel32.lib user32.lib gdi32.lib opengl32.lib"
75 OutputFile="..\..\bin\Win32-VisualStudio\14.Win32Window.exe"
76 LinkIncremental="0"
77 SuppressStartupBanner="true"
78 AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio"
79 GenerateDebugInformation="true"
80 ProgramDatabaseFile=".\Debug/Win32Window.pdb"
81 SubSystem="1"
82 TargetMachine="1"
83 />
84 <Tool
85 Name="VCALinkTool"
86 />
87 <Tool
88 Name="VCManifestTool"
89 />
90 <Tool
91 Name="VCXDCMakeTool"
92 />
93 <Tool
94 Name="VCBscMakeTool"
95 />
96 <Tool
97 Name="VCFxCopTool"
98 />
99 <Tool
100 Name="VCAppVerifierTool"
101 />
102 <Tool
103 Name="VCWebDeploymentTool"
104 />
105 <Tool
106 Name="VCPostBuildEventTool"
107 />
108 </Configuration>
109 <Configuration
110 Name="Release|Win32"
111 OutputDirectory=".\Release"
112 IntermediateDirectory=".\Release"
113 ConfigurationType="1"
114 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
115 UseOfMFC="0"
116 ATLMinimizesCRunTimeLibraryUsage="false"
117 CharacterSet="2"
118 >
119 <Tool
120 Name="VCPreBuildEventTool"
121 />
122 <Tool
123 Name="VCCustomBuildTool"
124 />
125 <Tool
126 Name="VCXMLDataGeneratorTool"
127 />
128 <Tool
129 Name="VCWebServiceProxyGeneratorTool"
130 />
131 <Tool
132 Name="VCMIDLTool"
133 TypeLibraryName=".\Release/Win32Window.tlb"
134 HeaderFileName=""
135 />
136 <Tool
137 Name="VCCLCompilerTool"
138 Optimization="2"
139 InlineFunctionExpansion="1"
140 AdditionalIncludeDirectories="..\..\include"
141 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
142 StringPooling="true"
143 RuntimeLibrary="0"
144 EnableFunctionLevelLinking="true"
145 UsePrecompiledHeader="0"
146 PrecompiledHeaderFile=".\Release/Win32Window.pch"
147 AssemblerListingLocation=".\Release/"
148 ObjectFile=".\Release/"
149 ProgramDataBaseFileName=".\Release/"
150 WarningLevel="3"
151 SuppressStartupBanner="true"
152 CompileAs="0"
153 />
154 <Tool
155 Name="VCManagedResourceCompilerTool"
156 />
157 <Tool
158 Name="VCResourceCompilerTool"
159 PreprocessorDefinitions="NDEBUG"
160 Culture="3079"
161 />
162 <Tool
163 Name="VCPreLinkEventTool"
164 />
165 <Tool
166 Name="VCLinkerTool"
167 OutputFile="..\..\bin\Win32-VisualStudio\14.Win32Window.exe"
168 LinkIncremental="0"
169 SuppressStartupBanner="true"
170 AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio"
171 ProgramDatabaseFile=".\Release/Win32Window.pdb"
172 SubSystem="1"
173 TargetMachine="1"
174 />
175 <Tool
176 Name="VCALinkTool"
177 />
178 <Tool
179 Name="VCManifestTool"
180 />
181 <Tool
182 Name="VCXDCMakeTool"
183 />
184 <Tool
185 Name="VCBscMakeTool"
186 />
187 <Tool
188 Name="VCFxCopTool"
189 />
190 <Tool
191 Name="VCAppVerifierTool"
192 />
193 <Tool
194 Name="VCWebDeploymentTool"
195 />
196 <Tool
197 Name="VCPostBuildEventTool"
198 />
199 </Configuration>
200 </Configurations>
201 <References>
202 </References>
203 <Files>
204 <File
205 RelativePath="main.cpp"
206 >
207 <FileConfiguration
208 Name="Debug|Win32"
209 >
210 <Tool
211 Name="VCCLCompilerTool"
212 Optimization="0"
213 AdditionalIncludeDirectories=""
214 PreprocessorDefinitions=""
215 BasicRuntimeChecks="3"
216 />
217 </FileConfiguration>
218 <FileConfiguration
219 Name="Release|Win32"
220 >
221 <Tool
222 Name="VCCLCompilerTool"
223 Optimization="2"
224 AdditionalIncludeDirectories=""
225 PreprocessorDefinitions=""
226 />
227 </FileConfiguration>
228 </File>
229 </Files>
230 <Globals>
231 </Globals>
232</VisualStudioProject>
diff --git a/src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window_vc9.vcproj b/src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window_vc9.vcproj
new file mode 100644
index 0000000..2902fba
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/14.Win32Window/Win32Window_vc9.vcproj
@@ -0,0 +1,232 @@
1<?xml version="1.0" encoding="Windows-1252"?>
2<VisualStudioProject
3 ProjectType="Visual C++"
4 Version="9,00"
5 Name="14.Win32Window_vc9"
6 ProjectGUID="{772FBE05-D05A-467B-9842-BEC409EEA8D0}"
7 RootNamespace="Win32Window_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="Debug|Win32"
20 OutputDirectory=".\Debug"
21 IntermediateDirectory=".\Debug"
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=".\Debug/Win32Window.tlb"
43 HeaderFileName=""
44 />
45 <Tool
46 Name="VCCLCompilerTool"
47 Optimization="0"
48 AdditionalIncludeDirectories="..\..\include"
49 PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
50 BasicRuntimeChecks="3"
51 RuntimeLibrary="1"
52 UsePrecompiledHeader="0"
53 PrecompiledHeaderFile=".\Debug/Win32Window.pch"
54 AssemblerListingLocation=".\Debug/"
55 ObjectFile=".\Debug/"
56 ProgramDataBaseFileName=".\Debug/"
57 WarningLevel="3"
58 SuppressStartupBanner="true"
59 DebugInformationFormat="4"
60 CompileAs="0"
61 />
62 <Tool
63 Name="VCManagedResourceCompilerTool"
64 />
65 <Tool
66 Name="VCResourceCompilerTool"
67 PreprocessorDefinitions="_DEBUG"
68 Culture="3079"
69 />
70 <Tool
71 Name="VCPreLinkEventTool"
72 />
73 <Tool
74 Name="VCLinkerTool"
75 AdditionalDependencies="kernel32.lib user32.lib gdi32.lib opengl32.lib"
76 OutputFile="..\..\bin\Win32-VisualStudio\14.Win32Window.exe"
77 LinkIncremental="0"
78 SuppressStartupBanner="true"
79 AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio"
80 GenerateDebugInformation="true"
81 ProgramDatabaseFile=".\Debug/Win32Window.pdb"
82 SubSystem="1"
83 RandomizedBaseAddress="1"
84 DataExecutionPrevention="0"
85 TargetMachine="1"
86 />
87 <Tool
88 Name="VCALinkTool"
89 />
90 <Tool
91 Name="VCManifestTool"
92 />
93 <Tool
94 Name="VCXDCMakeTool"
95 />
96 <Tool
97 Name="VCBscMakeTool"
98 />
99 <Tool
100 Name="VCFxCopTool"
101 />
102 <Tool
103 Name="VCAppVerifierTool"
104 />
105 <Tool
106 Name="VCPostBuildEventTool"
107 />
108 </Configuration>
109 <Configuration
110 Name="Release|Win32"
111 OutputDirectory=".\Release"
112 IntermediateDirectory=".\Release"
113 ConfigurationType="1"
114 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
115 UseOfMFC="0"
116 ATLMinimizesCRunTimeLibraryUsage="false"
117 CharacterSet="2"
118 >
119 <Tool
120 Name="VCPreBuildEventTool"
121 />
122 <Tool
123 Name="VCCustomBuildTool"
124 />
125 <Tool
126 Name="VCXMLDataGeneratorTool"
127 />
128 <Tool
129 Name="VCWebServiceProxyGeneratorTool"
130 />
131 <Tool
132 Name="VCMIDLTool"
133 TypeLibraryName=".\Release/Win32Window.tlb"
134 HeaderFileName=""
135 />
136 <Tool
137 Name="VCCLCompilerTool"
138 Optimization="2"
139 InlineFunctionExpansion="1"
140 AdditionalIncludeDirectories="..\..\include"
141 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
142 StringPooling="true"
143 RuntimeLibrary="0"
144 EnableFunctionLevelLinking="true"
145 UsePrecompiledHeader="0"
146 PrecompiledHeaderFile=".\Release/Win32Window.pch"
147 AssemblerListingLocation=".\Release/"
148 ObjectFile=".\Release/"
149 ProgramDataBaseFileName=".\Release/"
150 WarningLevel="3"
151 SuppressStartupBanner="true"
152 CompileAs="0"
153 />
154 <Tool
155 Name="VCManagedResourceCompilerTool"
156 />
157 <Tool
158 Name="VCResourceCompilerTool"
159 PreprocessorDefinitions="NDEBUG"
160 Culture="3079"
161 />
162 <Tool
163 Name="VCPreLinkEventTool"
164 />
165 <Tool
166 Name="VCLinkerTool"
167 AdditionalDependencies="opengl32.lib"
168 OutputFile="..\..\bin\Win32-VisualStudio\14.Win32Window.exe"
169 LinkIncremental="0"
170 SuppressStartupBanner="true"
171 AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio"
172 ProgramDatabaseFile=".\Release/Win32Window.pdb"
173 SubSystem="1"
174 RandomizedBaseAddress="1"
175 DataExecutionPrevention="0"
176 TargetMachine="1"
177 />
178 <Tool
179 Name="VCALinkTool"
180 />
181 <Tool
182 Name="VCManifestTool"
183 />
184 <Tool
185 Name="VCXDCMakeTool"
186 />
187 <Tool
188 Name="VCBscMakeTool"
189 />
190 <Tool
191 Name="VCFxCopTool"
192 />
193 <Tool
194 Name="VCAppVerifierTool"
195 />
196 <Tool
197 Name="VCPostBuildEventTool"
198 />
199 </Configuration>
200 </Configurations>
201 <References>
202 </References>
203 <Files>
204 <File
205 RelativePath="main.cpp"
206 >
207 <FileConfiguration
208 Name="Debug|Win32"
209 >
210 <Tool
211 Name="VCCLCompilerTool"
212 Optimization="0"
213 AdditionalIncludeDirectories=""
214 PreprocessorDefinitions=""
215 BasicRuntimeChecks="3"
216 />
217 </FileConfiguration>
218 <FileConfiguration
219 Name="Release|Win32"
220 >
221 <Tool
222 Name="VCCLCompilerTool"
223 Optimization="2"
224 AdditionalIncludeDirectories=""
225 PreprocessorDefinitions=""
226 />
227 </FileConfiguration>
228 </File>
229 </Files>
230 <Globals>
231 </Globals>
232</VisualStudioProject>
diff --git a/src/others/irrlicht-1.8.1/examples/14.Win32Window/main.cpp b/src/others/irrlicht-1.8.1/examples/14.Win32Window/main.cpp
new file mode 100644
index 0000000..33d111e
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/14.Win32Window/main.cpp
@@ -0,0 +1,251 @@
1/** Example 014 Win32 Window
2
3This example only runs under MS Windows and demonstrates that Irrlicht can
4render inside a win32 window. MFC and .NET Windows.Forms windows are possible,
5too.
6
7In the beginning, we create a windows window using the windows API. I'm not
8going to explain this code, because it is windows specific. See the MSDN or a
9windows book for details.
10*/
11
12#include <irrlicht.h>
13#ifndef _IRR_WINDOWS_
14#error Windows only example
15#else
16#include <windows.h> // this example only runs with windows
17#include <iostream>
18#include "driverChoice.h"
19
20using namespace irr;
21
22#pragma comment(lib, "irrlicht.lib")
23
24HWND hOKButton;
25HWND hWnd;
26
27static LRESULT CALLBACK CustomWndProc(HWND hWnd, UINT message,
28 WPARAM wParam, LPARAM lParam)
29{
30 switch (message)
31 {
32 case WM_COMMAND:
33 {
34 HWND hwndCtl = (HWND)lParam;
35 int code = HIWORD(wParam);
36
37 if (hwndCtl == hOKButton)
38 {
39 DestroyWindow(hWnd);
40 PostQuitMessage(0);
41 return 0;
42 }
43 }
44 break;
45 case WM_DESTROY:
46 PostQuitMessage(0);
47 return 0;
48
49 }
50
51 return DefWindowProc(hWnd, message, wParam, lParam);
52}
53
54
55/*
56 Now ask for the driver and create the Windows specific window.
57*/
58int main()
59{
60 // ask user for driver
61 video::E_DRIVER_TYPE driverType=driverChoiceConsole();
62 if (driverType==video::EDT_COUNT)
63 return 1;
64
65 printf("Select the render window (some dead window may exist too):\n"\
66 " (a) Window with button (via CreationParam)\n"\
67 " (b) Window with button (via beginScene)\n"\
68 " (c) Own Irrlicht window (default behavior)\n"\
69 " (otherKey) exit\n\n");
70
71 char key;
72 std::cin >> key;
73 if (key != 'a' && key != 'b' && key != 'c')
74 return 1;
75
76 HINSTANCE hInstance = 0;
77 // create dialog
78
79 const char* Win32ClassName = "CIrrlichtWindowsTestDialog";
80
81 WNDCLASSEX wcex;
82 wcex.cbSize = sizeof(WNDCLASSEX);
83 wcex.style = CS_HREDRAW | CS_VREDRAW;
84 wcex.lpfnWndProc = (WNDPROC)CustomWndProc;
85 wcex.cbClsExtra = 0;
86 wcex.cbWndExtra = DLGWINDOWEXTRA;
87 wcex.hInstance = hInstance;
88 wcex.hIcon = NULL;
89 wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
90 wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW);
91 wcex.lpszMenuName = 0;
92 wcex.lpszClassName = Win32ClassName;
93 wcex.hIconSm = 0;
94
95 RegisterClassEx(&wcex);
96
97 DWORD style = WS_SYSMENU | WS_BORDER | WS_CAPTION |
98 WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_SIZEBOX;
99
100 int windowWidth = 440;
101 int windowHeight = 380;
102
103 hWnd = CreateWindow( Win32ClassName, "Irrlicht Win32 window example",
104 style, 100, 100, windowWidth, windowHeight,
105 NULL, NULL, hInstance, NULL);
106
107 RECT clientRect;
108 GetClientRect(hWnd, &clientRect);
109 windowWidth = clientRect.right;
110 windowHeight = clientRect.bottom;
111
112 // create ok button
113
114 hOKButton = CreateWindow("BUTTON", "OK - Close", WS_CHILD | WS_VISIBLE | BS_TEXT,
115 windowWidth - 160, windowHeight - 40, 150, 30, hWnd, NULL, hInstance, NULL);
116
117 // create some text
118
119 CreateWindow("STATIC", "This is Irrlicht running inside a standard Win32 window.\n"\
120 "Also mixing with MFC and .NET Windows.Forms is possible.",
121 WS_CHILD | WS_VISIBLE, 20, 20, 400, 40, hWnd, NULL, hInstance, NULL);
122
123 // create window to put irrlicht in
124
125 HWND hIrrlichtWindow = CreateWindow("BUTTON", "",
126 WS_CHILD | WS_VISIBLE | BS_OWNERDRAW,
127 50, 80, 320, 220, hWnd, NULL, hInstance, NULL);
128 video::SExposedVideoData videodata((key=='b')?hIrrlichtWindow:0);
129
130 /*
131 So now that we have some window, we can create an Irrlicht device
132 inside of it. We use Irrlicht createEx() function for this. We only
133 need the handle (HWND) to that window, set it as windowsID parameter
134 and start up the engine as usual. That's it.
135 */
136 // create irrlicht device in the button window
137
138 irr::SIrrlichtCreationParameters param;
139 param.DriverType = driverType;
140 if (key=='a')
141 param.WindowId = reinterpret_cast<void*>(hIrrlichtWindow);
142
143 irr::IrrlichtDevice* device = irr::createDeviceEx(param);
144 if (!device)
145 return 1;
146
147 // setup a simple 3d scene
148
149 irr::scene::ISceneManager* smgr = device->getSceneManager();
150 video::IVideoDriver* driver = device->getVideoDriver();
151
152 if (driverType==video::EDT_OPENGL)
153 {
154 HDC HDc=GetDC(hIrrlichtWindow);
155 PIXELFORMATDESCRIPTOR pfd={0};
156 pfd.nSize=sizeof(PIXELFORMATDESCRIPTOR);
157 int pf = GetPixelFormat(HDc);
158 DescribePixelFormat(HDc, pf, sizeof(PIXELFORMATDESCRIPTOR), &pfd);
159 pfd.dwFlags |= PFD_DOUBLEBUFFER | PFD_SUPPORT_OPENGL | PFD_DRAW_TO_WINDOW;
160 pfd.cDepthBits=16;
161 pf = ChoosePixelFormat(HDc, &pfd);
162 SetPixelFormat(HDc, pf, &pfd);
163 videodata.OpenGLWin32.HDc = HDc;
164 videodata.OpenGLWin32.HRc=wglCreateContext(HDc);
165 wglShareLists((HGLRC)driver->getExposedVideoData().OpenGLWin32.HRc, (HGLRC)videodata.OpenGLWin32.HRc);
166 }
167 scene::ICameraSceneNode* cam = smgr->addCameraSceneNode();
168 cam->setTarget(core::vector3df(0,0,0));
169
170 scene::ISceneNodeAnimator* anim =
171 smgr->createFlyCircleAnimator(core::vector3df(0,15,0), 30.0f);
172 cam->addAnimator(anim);
173 anim->drop();
174
175 scene::ISceneNode* cube = smgr->addCubeSceneNode(20);
176
177 cube->setMaterialTexture(0, driver->getTexture("../../media/wall.bmp"));
178 cube->setMaterialTexture(1, driver->getTexture("../../media/water.jpg"));
179 cube->setMaterialFlag( video::EMF_LIGHTING, false );
180 cube->setMaterialType( video::EMT_REFLECTION_2_LAYER );
181
182 smgr->addSkyBoxSceneNode(
183 driver->getTexture("../../media/irrlicht2_up.jpg"),
184 driver->getTexture("../../media/irrlicht2_dn.jpg"),
185 driver->getTexture("../../media/irrlicht2_lf.jpg"),
186 driver->getTexture("../../media/irrlicht2_rt.jpg"),
187 driver->getTexture("../../media/irrlicht2_ft.jpg"),
188 driver->getTexture("../../media/irrlicht2_bk.jpg"));
189
190 // show and execute dialog
191
192 ShowWindow(hWnd , SW_SHOW);
193 UpdateWindow(hWnd);
194
195 // do message queue
196
197 /*
198 Now the only thing missing is the drawing loop using
199 IrrlichtDevice::run(). We do this as usual. But instead of this, there
200 is another possibility: You can also simply use your own message loop
201 using GetMessage, DispatchMessage and whatever. Calling
202 Device->run() will cause Irrlicht to dispatch messages internally too.
203 You need not call Device->run() if you want to do your own message
204 dispatching loop, but Irrlicht will not be able to fetch user input
205 then and you have to do it on your own using the window messages,
206 DirectInput, or whatever.
207 */
208
209 while (device->run())
210 {
211 driver->beginScene(true, true, 0, videodata);
212 smgr->drawAll();
213 driver->endScene();
214 }
215
216 /*
217 The alternative, own message dispatching loop without Device->run()
218 would look like this:
219 */
220
221 /*MSG msg;
222 while (true)
223 {
224 if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
225 {
226 TranslateMessage(&msg);
227 DispatchMessage(&msg);
228
229 if (msg.message == WM_QUIT)
230 break;
231 }
232
233 // advance virtual time
234 device->getTimer()->tick();
235
236 // draw engine picture
237 driver->beginScene(true, true, 0, (key=='c')?hIrrlichtWindow:0);
238 smgr->drawAll();
239 driver->endScene();
240 }*/
241
242 device->closeDevice();
243 device->drop();
244
245 return 0;
246}
247#endif // if windows
248
249/*
250That's it, Irrlicht now runs in your own windows window.
251**/
diff --git a/src/others/irrlicht-1.8.1/examples/14.Win32Window/tutorial.html b/src/others/irrlicht-1.8.1/examples/14.Win32Window/tutorial.html
new file mode 100644
index 0000000..6c5d5ba
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/14.Win32Window/tutorial.html
@@ -0,0 +1,247 @@
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="left"><b><font color="#FFFFFF">Tutorial 14. Win32 Window</font></b></div>
15 </div>
16 </td>
17 </tr>
18 <tr bgcolor="#eeeeff">
19 <td height="90" colspan="2">
20 <div align="left">
21 <p> This example only runs in Windows and demonstrates that Irrlicht can
22 run inside a win32 window. MFC and .NET Windows.Forms windows are possible
23 too. </p>
24 <p>The program which is described here will look like this:</p>
25 <p align="center"><img src="../../media/014shot.jpg" width="256" height="200"><br>
26 </p>
27 </div>
28 </td>
29 </tr>
30</table>
31<br>
32<table width="95%" border="0" cellspacing="0" cellpadding="2" align="center">
33 <tr>
34 <td bgcolor="#666699"> <b><font color="#FFFFFF">Lets start!</font></b></td>
35 </tr>
36 <tr>
37 <td height="90" bgcolor="#eeeeff" valign="top"> <div align="left">
38 <div align="left">
39 <p> In the begining, we create a windows window using the windows API.
40 I'm not going to explain this code, because it is windows specific.
41 See the MSDN or a windows book for details.</p>
42 <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center">
43 <tr>
44 <td><pre>#include &lt;irrlicht.h&gt;
45#include &lt;windows.h&gt; <font color="#006600">// this example only runs with windows</font>
46
47using namespace irr;
48
49#pragma comment(lib, "irrlicht.lib")
50
51HWND hOKButton;
52HWND hWnd;
53
54static LRESULT CALLBACK CustomWndProc(HWND hWnd, UINT message,
55 WPARAM wParam, LPARAM lParam)
56{
57 switch (message)
58 {
59 case WM_COMMAND:
60 {
61 HWND hwndCtl = (HWND)lParam;
62 int code = HIWORD(wParam);
63
64 if (hwndCtl == hOKButton)
65 {
66 DestroyWindow(hWnd);
67 PostQuitMessage(0);
68 return 0;
69 }
70 }
71 break;
72 case WM_DESTROY:
73 PostQuitMessage(0);
74 return 0;
75
76 }
77
78 return DefWindowProc(hWnd, message, wParam, lParam);
79}
80
81int main()
82<font color="#006600">//int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hpre, LPSTR cmd, int cc)</font>
83{
84 HINSTANCE hInstance = 0;
85<font color="#006600"> // create dialog</font>
86
87 const char* Win32ClassName = "CIrrlichtWindowsTestDialog";
88
89 WNDCLASSEX wcex;
90 wcex.cbSize = sizeof(WNDCLASSEX);
91 wcex.style = CS_HREDRAW | CS_VREDRAW;
92 wcex.lpfnWndProc = (WNDPROC)CustomWndProc;
93 wcex.cbClsExtra = 0;
94 wcex.cbWndExtra = DLGWINDOWEXTRA;
95 wcex.hInstance = hInstance;
96 wcex.hIcon = NULL;
97 wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
98 wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW);
99 wcex.lpszMenuName = 0;
100 wcex.lpszClassName = Win32ClassName;
101 wcex.hIconSm = 0;
102
103 RegisterClassEx(&wcex);
104
105 DWORD style = WS_SYSMENU | WS_BORDER | WS_CAPTION |
106 WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_MAXIMIZEBOX
107 | WS_MINIMIZEBOX | WS_SIZEBOX;
108
109 int windowWidth = 440;
110 int windowHeight = 380;
111
112 hWnd = CreateWindow( Win32ClassName, "Irrlicht Win32 window example",
113 style, 100, 100, windowWidth, windowHeight,
114 NULL, NULL, hInstance, NULL);
115
116 RECT clientRect;
117 GetClientRect(hWnd, &clientRect);
118 windowWidth = clientRect.right;
119 windowHeight = clientRect.bottom;
120
121<font color="#006600"> // create ok butt</font>on
122
123 hOKButton = CreateWindow(
124 "BUTTON", "OK - Close", WS_CHILD | WS_VISIBLE | BS_TEXT,
125 windowWidth - 160, windowHeight - 40, 150, 30, hWnd, NULL,
126 hInstance, NULL);
127
128<font color="#006600"> // create some text</font>
129
130 CreateWindow("STATIC",
131 "This is Irrlicht running inside a standard Win32 window.\n"\
132 "Also mixing with MFC and .NET Windows.Forms is possible.",
133 WS_CHILD | WS_VISIBLE, 20, 20, 400, 40, hWnd, NULL, hInstance, NULL);
134
135<font color="#006600"> // create window to put irrlicht in</font>
136
137 HWND hIrrlichtWindow =<br /> CreateWindow("BUTTON", "", WS_CHILD | WS_VISIBLE | BS_OWNERDRAW,
138 50, 80, 320, 220, hWnd, NULL, hInstance, NULL);
139
140</pre></td>
141 </tr>
142 </table>
143 <p>So now that we have some window, we can create an Irrlicht device
144 inside of it. We use Irrlicht createEx() function for this. We only
145 need the handle (HWND) to that window, set it as windowsID parameter
146 and start up the engine as usual. That's it.</p>
147 <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center">
148 <tr>
149 <td><pre><font color="#006600"> // create irrlicht device in the button window</font>
150
151 irr::SIrrlichtCreationParameters param;
152 param.WindowId = reinterpret_cast<s32>(hIrrlichtWindow); // hColorButton
153 param.DriverType = video::EDT_OPENGL;
154
155 irr::IrrlichtDevice* device = irr::createDeviceEx(param);
156
157<font color="#006600"> // setup a simple 3d scene</font>
158
159 irr::scene::ISceneManager* smgr = device->getSceneManager();
160 video::IVideoDriver* driver = device->getVideoDriver();
161
162 scene::ICameraSceneNode* cam = smgr->addCameraSceneNode();
163 cam->setTarget(core::vector3df(0,0,0));
164
165 scene::ISceneNodeAnimator* anim =
166 smgr->createFlyCircleAnimator(core::vector3df(0,10,0), 30.0f);
167 cam->addAnimator(anim);
168 anim->drop();
169
170 scene::ISceneNode* cube = smgr->addCubeSceneNode(25);
171 cube->setMaterialFlag(video::EMF_LIGHTING, false);
172
173 cube->setMaterialTexture(0, driver->getTexture("../../media/rockwall.bmp"));
174
175 smgr->addSkyBoxSceneNode(
176 driver->getTexture("../../media/irrlicht2_up.jpg"),
177 driver->getTexture("../../media/irrlicht2_dn.jpg"),
178 driver->getTexture("../../media/irrlicht2_lf.jpg"),
179 driver->getTexture("../../media/irrlicht2_rt.jpg"),
180 driver->getTexture("../../media/irrlicht2_ft.jpg"),
181 driver->getTexture("../../media/irrlicht2_bk.jpg"));
182
183<font color="#006600"> // show and execute dialog</font>
184
185 ShowWindow(hWnd , SW_SHOW);
186 UpdateWindow(hWnd);
187</pre></td>
188 </tr>
189 </table>
190 <p>Now the only thing missing is the drawing loop using IrrlichtDevice::run().
191 We do this as usual. But instead of this, there is another possibility:
192 You can also simply use your own message loop using GetMessage, DispatchMessage
193 and whatever. Calling<br />
194 Device-&gt;run() will cause Irrlicht to dispatch messages internally
195 too. You need not call Device-&gt;run() if you want to do your own
196 message dispatching loop, but Irrlicht will not be able to fetch user
197 input then and you have to do it on your own using the window messages,
198 DirectInput, or whatever.</p>
199 <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center">
200 <tr>
201 <td><pre> while (device->run())
202 {
203 driver->beginScene(true, true, 0);
204 smgr->drawAll();
205 driver->endScene();
206 }
207
208<font color="#006600"> // the alternative, own message dispatching loop without Device->run() would
209 // look like this:</font>
210
211 <font color="#006600">/*MSG msg;
212 while (true)
213 {
214 if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
215 {
216 TranslateMessage(&msg);
217 DispatchMessage(&msg);
218
219 if (msg.message == WM_QUIT)
220 break;
221 }
222
223 // advance virtual time
224 device->getTimer()->tick();
225
226 // draw engine picture
227 driver->beginScene(true, true, 0);
228 smgr->drawAll();
229 driver->endScene();
230 }*/</font>
231
232 device->closeDevice();
233 device->drop();
234
235 return 0;
236}</pre></td>
237 </tr>
238 </table>
239 <p> That's it, Irrlicht now runs in your own windows window.</p>
240 </div>
241 </div>
242 </td>
243 </tr>
244</table>
245<p>&nbsp;</p>
246 </body>
247</html>