diff options
Diffstat (limited to 'libraries/irrlicht-1.8/examples/20.ManagedLights')
9 files changed, 1630 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/examples/20.ManagedLights/Makefile b/libraries/irrlicht-1.8/examples/20.ManagedLights/Makefile new file mode 100644 index 0000000..1a40866 --- /dev/null +++ b/libraries/irrlicht-1.8/examples/20.ManagedLights/Makefile | |||
@@ -0,0 +1,39 @@ | |||
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 | ||
4 | Target = 20.ManagedLights | ||
5 | Sources = main.cpp | ||
6 | |||
7 | # general compiler settings | ||
8 | CPPFLAGS = -I../../include -I/usr/X11R6/include | ||
9 | #CXXFLAGS = -O3 -ffast-math | ||
10 | CXXFLAGS = -g -Wall | ||
11 | |||
12 | #default target is Linux | ||
13 | all: all_linux | ||
14 | |||
15 | ifeq ($(HOSTTYPE), x86_64) | ||
16 | LIBSELECT=64 | ||
17 | endif | ||
18 | |||
19 | # target specific settings | ||
20 | all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor | ||
21 | all_linux clean_linux: SYSTEM=Linux | ||
22 | all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm | ||
23 | all_win32: CPPFLAGS += -D__GNUWIN32__ -D_WIN32 -DWIN32 -D_WINDOWS -D_MBCS -D_USRDLL | ||
24 | all_win32 clean_win32: SYSTEM=Win32-gcc | ||
25 | all_win32 clean_win32: SUF=.exe | ||
26 | # name of the binary - only valid for targets which set SYSTEM | ||
27 | DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) | ||
28 | |||
29 | all_linux all_win32: | ||
30 | $(warning Building...) | ||
31 | $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) | ||
32 | |||
33 | clean: clean_linux clean_win32 | ||
34 | $(warning Cleaning...) | ||
35 | |||
36 | clean_linux clean_win32: | ||
37 | @$(RM) $(DESTPATH) | ||
38 | |||
39 | .PHONY: all all_win32 clean clean_linux clean_win32 | ||
diff --git a/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights.cbp b/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights.cbp new file mode 100644 index 0000000..7ec0427 --- /dev/null +++ b/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights.cbp | |||
@@ -0,0 +1,57 @@ | |||
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 20 ManagedLights" /> | ||
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\ManagedLights" 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\ManagedLights" prefix_auto="0" extension_auto="0" /> | ||
25 | <Option type="1" /> | ||
26 | <Option compiler="gcc" /> | ||
27 | <Option projectResourceIncludeDirsRelation="1" /> | ||
28 | <Compiler> | ||
29 | <Add option="-g" /> | ||
30 | <Add option="-D_IRR_STATIC_LIB_" /> | ||
31 | </Compiler> | ||
32 | <Linker> | ||
33 | <Add library="Xxf86vm" /> | ||
34 | <Add library="Xcursor" /> | ||
35 | <Add library="GL" /> | ||
36 | <Add directory="..\..\lib\Linux" /> | ||
37 | </Linker> | ||
38 | </Target> | ||
39 | </Build> | ||
40 | <VirtualTargets> | ||
41 | <Add alias="All" targets="Windows;Linux;" /> | ||
42 | </VirtualTargets> | ||
43 | <Compiler> | ||
44 | <Add option="-g" /> | ||
45 | <Add directory="..\..\include" /> | ||
46 | </Compiler> | ||
47 | <Linker> | ||
48 | <Add library="Irrlicht" /> | ||
49 | </Linker> | ||
50 | <Unit filename="main.cpp" /> | ||
51 | <Extensions> | ||
52 | <code_completion /> | ||
53 | <debugger /> | ||
54 | <envvars /> | ||
55 | </Extensions> | ||
56 | </Project> | ||
57 | </CodeBlocks_project_file> | ||
diff --git a/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights.dev b/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights.dev new file mode 100644 index 0000000..9804fee --- /dev/null +++ b/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights.dev | |||
@@ -0,0 +1,59 @@ | |||
1 | [Project] | ||
2 | FileName=example.dev | ||
3 | Name=Irrlicht Example 20 ManagedLights | ||
4 | UnitCount=1 | ||
5 | Type=1 | ||
6 | Ver=1 | ||
7 | ObjFiles= | ||
8 | Includes=..\..\include | ||
9 | Libs= | ||
10 | PrivateResource= | ||
11 | ResourceIncludes= | ||
12 | MakeIncludes= | ||
13 | Compiler= | ||
14 | CppCompiler= | ||
15 | Linker=../../lib/Win32-gcc/libIrrlicht.a_@@_ | ||
16 | IsCpp=1 | ||
17 | Icon= | ||
18 | ExeOutput=../../bin/Win32-gcc | ||
19 | ObjectOutput=obj | ||
20 | OverrideOutput=1 | ||
21 | OverrideOutputName=20.ManagedLights.exe | ||
22 | HostApplication= | ||
23 | Folders= | ||
24 | CommandLine= | ||
25 | IncludeVersionInfo=0 | ||
26 | SupportXPThemes=0 | ||
27 | CompilerSet=0 | ||
28 | CompilerSettings=0000000000000000000000 | ||
29 | UseCustomMakefile=0 | ||
30 | CustomMakefile= | ||
31 | |||
32 | [Unit1] | ||
33 | FileName=main.cpp | ||
34 | CompileCpp=1 | ||
35 | Folder=Projekt1 | ||
36 | Compile=1 | ||
37 | Link=1 | ||
38 | Priority=1000 | ||
39 | OverrideBuildCmd=0 | ||
40 | BuildCmd= | ||
41 | |||
42 | [VersionInfo] | ||
43 | Major=0 | ||
44 | Minor=1 | ||
45 | Release=1 | ||
46 | Build=1 | ||
47 | LanguageID=1033 | ||
48 | CharsetID=1252 | ||
49 | CompanyName= | ||
50 | FileVersion= | ||
51 | FileDescription=Irrlicht Engine example compiled using DevCpp and gcc | ||
52 | InternalName= | ||
53 | LegalCopyright= | ||
54 | LegalTrademarks= | ||
55 | OriginalFilename= | ||
56 | ProductName= | ||
57 | ProductVersion= | ||
58 | AutoIncBuildNr=0 | ||
59 | |||
diff --git a/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights.vcproj b/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights.vcproj new file mode 100644 index 0000000..850a8d2 --- /dev/null +++ b/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights.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="20.ManagedLights" | ||
6 | ProjectGUID="{16007FE2-142B-47F8-93E1-519BA3F39E71}" | ||
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/ManagedLights.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 | OutputFile="..\..\bin\Win32-VisualStudio\20.ManagedLights.exe" | ||
43 | LinkIncremental="0" | ||
44 | SuppressStartupBanner="TRUE" | ||
45 | AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio" | ||
46 | GenerateDebugInformation="TRUE" | ||
47 | ProgramDatabaseFile=".\Debug/ManagedLights.pdb" | ||
48 | SubSystem="1" | ||
49 | TargetMachine="1"/> | ||
50 | <Tool | ||
51 | Name="VCMIDLTool" | ||
52 | TypeLibraryName=".\Debug/ManagedLights.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="_DEBUG" | ||
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="Release|Win32" | ||
77 | OutputDirectory=".\Release" | ||
78 | IntermediateDirectory=".\Release" | ||
79 | ConfigurationType="1" | ||
80 | UseOfMFC="0" | ||
81 | ATLMinimizesCRunTimeLibraryUsage="FALSE" | ||
82 | CharacterSet="2"> | ||
83 | <Tool | ||
84 | Name="VCCLCompilerTool" | ||
85 | Optimization="2" | ||
86 | InlineFunctionExpansion="1" | ||
87 | AdditionalIncludeDirectories="..\..\include" | ||
88 | PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" | ||
89 | StringPooling="TRUE" | ||
90 | RuntimeLibrary="4" | ||
91 | EnableFunctionLevelLinking="TRUE" | ||
92 | UsePrecompiledHeader="2" | ||
93 | PrecompiledHeaderFile=".\Release/ManagedLights.pch" | ||
94 | AssemblerListingLocation=".\Release/" | ||
95 | ObjectFile=".\Release/" | ||
96 | ProgramDataBaseFileName=".\Release/" | ||
97 | WarningLevel="3" | ||
98 | SuppressStartupBanner="TRUE" | ||
99 | CompileAs="0"/> | ||
100 | <Tool | ||
101 | Name="VCCustomBuildTool"/> | ||
102 | <Tool | ||
103 | Name="VCLinkerTool" | ||
104 | OutputFile="..\..\bin\Win32-VisualStudio\20.ManagedLights.exe" | ||
105 | LinkIncremental="0" | ||
106 | SuppressStartupBanner="TRUE" | ||
107 | AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio" | ||
108 | ProgramDatabaseFile=".\Release/ManagedLights.pdb" | ||
109 | SubSystem="1" | ||
110 | TargetMachine="1"/> | ||
111 | <Tool | ||
112 | Name="VCMIDLTool" | ||
113 | TypeLibraryName=".\Release/ManagedLights.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="NDEBUG" | ||
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="Debug|Win32"> | ||
144 | <Tool | ||
145 | Name="VCCLCompilerTool" | ||
146 | Optimization="0" | ||
147 | AdditionalIncludeDirectories="" | ||
148 | PreprocessorDefinitions="" | ||
149 | BasicRuntimeChecks="3"/> | ||
150 | </FileConfiguration> | ||
151 | <FileConfiguration | ||
152 | Name="Release|Win32"> | ||
153 | <Tool | ||
154 | Name="VCCLCompilerTool" | ||
155 | Optimization="2" | ||
156 | AdditionalIncludeDirectories="" | ||
157 | PreprocessorDefinitions=""/> | ||
158 | </FileConfiguration> | ||
159 | </File> | ||
160 | </Files> | ||
161 | <Globals> | ||
162 | </Globals> | ||
163 | </VisualStudioProject> | ||
diff --git a/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights_vc10.vcxproj b/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights_vc10.vcxproj new file mode 100644 index 0000000..0144522 --- /dev/null +++ b/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights_vc10.vcxproj | |||
@@ -0,0 +1,230 @@ | |||
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>20.ManagedLights</ProjectName> | ||
23 | <ProjectGuid>{16007FE2-142B-47F8-93E1-519BA3F39E71}</ProjectGuid> | ||
24 | <RootNamespace>ManagedLights</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 | <CharacterSet>MultiByte</CharacterSet> | ||
30 | </PropertyGroup> | ||
31 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | ||
32 | <ConfigurationType>Application</ConfigurationType> | ||
33 | <CharacterSet>MultiByte</CharacterSet> | ||
34 | </PropertyGroup> | ||
35 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | ||
36 | <ConfigurationType>Application</ConfigurationType> | ||
37 | <CharacterSet>MultiByte</CharacterSet> | ||
38 | </PropertyGroup> | ||
39 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | ||
40 | <ConfigurationType>Application</ConfigurationType> | ||
41 | <CharacterSet>MultiByte</CharacterSet> | ||
42 | </PropertyGroup> | ||
43 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||
44 | <ImportGroup Label="ExtensionSettings"> | ||
45 | </ImportGroup> | ||
46 | <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> | ||
47 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
48 | <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" /> | ||
49 | </ImportGroup> | ||
50 | <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" 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|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 | <PropertyGroup Label="UserMacros" /> | ||
63 | <PropertyGroup> | ||
64 | <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion> | ||
65 | <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\..\bin\Win32-VisualStudio\</OutDir> | ||
66 | <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">..\..\bin\Win64-VisualStudio\</OutDir> | ||
67 | <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" /> | ||
68 | <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" /> | ||
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 | <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet> | ||
74 | <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">AllRules.ruleset</CodeAnalysisRuleSet> | ||
75 | <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" /> | ||
76 | <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" /> | ||
77 | <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" /> | ||
78 | <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" /> | ||
79 | <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet> | ||
80 | <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet> | ||
81 | <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" /> | ||
82 | <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" /> | ||
83 | <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" /> | ||
84 | <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" /> | ||
85 | </PropertyGroup> | ||
86 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
87 | <Midl> | ||
88 | <TypeLibraryName>.\Debug/ManagedLights.tlb</TypeLibraryName> | ||
89 | <HeaderFileName> | ||
90 | </HeaderFileName> | ||
91 | </Midl> | ||
92 | <ClCompile> | ||
93 | <Optimization>Disabled</Optimization> | ||
94 | <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
95 | <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
96 | <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | ||
97 | <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> | ||
98 | <PrecompiledHeader> | ||
99 | </PrecompiledHeader> | ||
100 | <WarningLevel>Level3</WarningLevel> | ||
101 | <DebugInformationFormat>EditAndContinue</DebugInformationFormat> | ||
102 | </ClCompile> | ||
103 | <ResourceCompile> | ||
104 | <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
105 | <Culture>0x0c07</Culture> | ||
106 | </ResourceCompile> | ||
107 | <Link> | ||
108 | <AdditionalDependencies>..\..\Lib\Win32-visualstudio\Irrlicht.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||
109 | <OutputFile>..\..\bin\Win32-VisualStudio\20.ManagedLights.exe</OutputFile> | ||
110 | <AdditionalLibraryDirectories>..\..\lib\Win32-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
111 | <GenerateDebugInformation>true</GenerateDebugInformation> | ||
112 | <SubSystem>Console</SubSystem> | ||
113 | <DataExecutionPrevention> | ||
114 | </DataExecutionPrevention> | ||
115 | </Link> | ||
116 | </ItemDefinitionGroup> | ||
117 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
118 | <Midl> | ||
119 | <TypeLibraryName>.\Debug/ManagedLights.tlb</TypeLibraryName> | ||
120 | <HeaderFileName> | ||
121 | </HeaderFileName> | ||
122 | </Midl> | ||
123 | <ClCompile> | ||
124 | <Optimization>Disabled</Optimization> | ||
125 | <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
126 | <PreprocessorDefinitions>WIN32;WIN64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
127 | <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | ||
128 | <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> | ||
129 | <PrecompiledHeader> | ||
130 | </PrecompiledHeader> | ||
131 | <WarningLevel>Level3</WarningLevel> | ||
132 | <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> | ||
133 | </ClCompile> | ||
134 | <ResourceCompile> | ||
135 | <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
136 | <Culture>0x0c07</Culture> | ||
137 | </ResourceCompile> | ||
138 | <Link> | ||
139 | <AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||
140 | <OutputFile>..\..\bin\Win64-VisualStudio\20.ManagedLights.exe</OutputFile> | ||
141 | <AdditionalLibraryDirectories>..\..\lib\Win64-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
142 | <GenerateDebugInformation>true</GenerateDebugInformation> | ||
143 | <SubSystem>Console</SubSystem> | ||
144 | <DataExecutionPrevention> | ||
145 | </DataExecutionPrevention> | ||
146 | </Link> | ||
147 | </ItemDefinitionGroup> | ||
148 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
149 | <Midl> | ||
150 | <TypeLibraryName>.\Release/ManagedLights.tlb</TypeLibraryName> | ||
151 | <HeaderFileName> | ||
152 | </HeaderFileName> | ||
153 | </Midl> | ||
154 | <ClCompile> | ||
155 | <Optimization>MaxSpeed</Optimization> | ||
156 | <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion> | ||
157 | <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
158 | <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
159 | <StringPooling>true</StringPooling> | ||
160 | <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||
161 | <FunctionLevelLinking>true</FunctionLevelLinking> | ||
162 | <PrecompiledHeader> | ||
163 | </PrecompiledHeader> | ||
164 | <WarningLevel>Level3</WarningLevel> | ||
165 | </ClCompile> | ||
166 | <ResourceCompile> | ||
167 | <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
168 | <Culture>0x0c07</Culture> | ||
169 | </ResourceCompile> | ||
170 | <Link> | ||
171 | <OutputFile>..\..\bin\Win32-VisualStudio\20.ManagedLights.exe</OutputFile> | ||
172 | <AdditionalLibraryDirectories>..\..\lib\Win32-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
173 | <SubSystem>Console</SubSystem> | ||
174 | <DataExecutionPrevention> | ||
175 | </DataExecutionPrevention> | ||
176 | </Link> | ||
177 | </ItemDefinitionGroup> | ||
178 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
179 | <Midl> | ||
180 | <TypeLibraryName>.\Release/ManagedLights.tlb</TypeLibraryName> | ||
181 | <HeaderFileName> | ||
182 | </HeaderFileName> | ||
183 | </Midl> | ||
184 | <ClCompile> | ||
185 | <Optimization>MaxSpeed</Optimization> | ||
186 | <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion> | ||
187 | <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
188 | <PreprocessorDefinitions>WIN32;WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
189 | <StringPooling>true</StringPooling> | ||
190 | <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||
191 | <FunctionLevelLinking>true</FunctionLevelLinking> | ||
192 | <PrecompiledHeader> | ||
193 | </PrecompiledHeader> | ||
194 | <WarningLevel>Level3</WarningLevel> | ||
195 | </ClCompile> | ||
196 | <ResourceCompile> | ||
197 | <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
198 | <Culture>0x0c07</Culture> | ||
199 | </ResourceCompile> | ||
200 | <Link> | ||
201 | <OutputFile>..\..\bin\Win64-VisualStudio\20.ManagedLights.exe</OutputFile> | ||
202 | <AdditionalLibraryDirectories>..\..\lib\Win64-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
203 | <SubSystem>Console</SubSystem> | ||
204 | <DataExecutionPrevention> | ||
205 | </DataExecutionPrevention> | ||
206 | <AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||
207 | </Link> | ||
208 | </ItemDefinitionGroup> | ||
209 | <ItemGroup> | ||
210 | <ClCompile Include="main.cpp"> | ||
211 | <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization> | ||
212 | <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization> | ||
213 | <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
214 | <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
215 | <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
216 | <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
217 | <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks> | ||
218 | <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks> | ||
219 | <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization> | ||
220 | <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization> | ||
221 | <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
222 | <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
223 | <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
224 | <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
225 | </ClCompile> | ||
226 | </ItemGroup> | ||
227 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
228 | <ImportGroup Label="ExtensionTargets"> | ||
229 | </ImportGroup> | ||
230 | </Project> \ No newline at end of file | ||
diff --git a/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights_vc11.vcxproj b/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights_vc11.vcxproj new file mode 100644 index 0000000..7a86129 --- /dev/null +++ b/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights_vc11.vcxproj | |||
@@ -0,0 +1,234 @@ | |||
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>20.ManagedLights</ProjectName> | ||
23 | <ProjectGuid>{16007FE2-142B-47F8-93E1-519BA3F39E71}</ProjectGuid> | ||
24 | <RootNamespace>ManagedLights</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 | <CharacterSet>MultiByte</CharacterSet> | ||
30 | <PlatformToolset>v110</PlatformToolset> | ||
31 | </PropertyGroup> | ||
32 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | ||
33 | <ConfigurationType>Application</ConfigurationType> | ||
34 | <CharacterSet>MultiByte</CharacterSet> | ||
35 | <PlatformToolset>v110</PlatformToolset> | ||
36 | </PropertyGroup> | ||
37 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | ||
38 | <ConfigurationType>Application</ConfigurationType> | ||
39 | <CharacterSet>MultiByte</CharacterSet> | ||
40 | <PlatformToolset>v110</PlatformToolset> | ||
41 | </PropertyGroup> | ||
42 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | ||
43 | <ConfigurationType>Application</ConfigurationType> | ||
44 | <CharacterSet>MultiByte</CharacterSet> | ||
45 | <PlatformToolset>v110</PlatformToolset> | ||
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/ManagedLights.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>..\..\Lib\Win32-visualstudio\Irrlicht.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||
113 | <OutputFile>..\..\bin\Win32-VisualStudio\20.ManagedLights.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/ManagedLights.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>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||
144 | <OutputFile>..\..\bin\Win64-VisualStudio\20.ManagedLights.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/ManagedLights.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 | <OutputFile>..\..\bin\Win32-VisualStudio\20.ManagedLights.exe</OutputFile> | ||
176 | <AdditionalLibraryDirectories>..\..\lib\Win32-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
177 | <SubSystem>Console</SubSystem> | ||
178 | <DataExecutionPrevention> | ||
179 | </DataExecutionPrevention> | ||
180 | </Link> | ||
181 | </ItemDefinitionGroup> | ||
182 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
183 | <Midl> | ||
184 | <TypeLibraryName>.\Release/ManagedLights.tlb</TypeLibraryName> | ||
185 | <HeaderFileName> | ||
186 | </HeaderFileName> | ||
187 | </Midl> | ||
188 | <ClCompile> | ||
189 | <Optimization>MaxSpeed</Optimization> | ||
190 | <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion> | ||
191 | <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
192 | <PreprocessorDefinitions>WIN32;WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
193 | <StringPooling>true</StringPooling> | ||
194 | <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||
195 | <FunctionLevelLinking>true</FunctionLevelLinking> | ||
196 | <PrecompiledHeader> | ||
197 | </PrecompiledHeader> | ||
198 | <WarningLevel>Level3</WarningLevel> | ||
199 | </ClCompile> | ||
200 | <ResourceCompile> | ||
201 | <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
202 | <Culture>0x0c07</Culture> | ||
203 | </ResourceCompile> | ||
204 | <Link> | ||
205 | <OutputFile>..\..\bin\Win64-VisualStudio\20.ManagedLights.exe</OutputFile> | ||
206 | <AdditionalLibraryDirectories>..\..\lib\Win64-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
207 | <SubSystem>Console</SubSystem> | ||
208 | <DataExecutionPrevention> | ||
209 | </DataExecutionPrevention> | ||
210 | <AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||
211 | </Link> | ||
212 | </ItemDefinitionGroup> | ||
213 | <ItemGroup> | ||
214 | <ClCompile Include="main.cpp"> | ||
215 | <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization> | ||
216 | <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization> | ||
217 | <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
218 | <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
219 | <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
220 | <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
221 | <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks> | ||
222 | <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks> | ||
223 | <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization> | ||
224 | <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization> | ||
225 | <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
226 | <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
227 | <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
228 | <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
229 | </ClCompile> | ||
230 | </ItemGroup> | ||
231 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
232 | <ImportGroup Label="ExtensionTargets"> | ||
233 | </ImportGroup> | ||
234 | </Project> \ No newline at end of file | ||
diff --git a/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights_vc8.vcproj b/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights_vc8.vcproj new file mode 100644 index 0000000..2f37f63 --- /dev/null +++ b/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights_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="20.ManagedLights_vc8" | ||
6 | ProjectGUID="{16007FE2-142B-47F8-93E1-519BA3F39E71}" | ||
7 | RootNamespace="ManagedLights_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/ManagedLights.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/ManagedLights.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 | OutputFile="..\..\bin\Win32-VisualStudio\20.ManagedLights.exe" | ||
75 | LinkIncremental="0" | ||
76 | SuppressStartupBanner="true" | ||
77 | AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio" | ||
78 | GenerateDebugInformation="true" | ||
79 | ProgramDatabaseFile=".\Debug/ManagedLights.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="Release|Win32" | ||
110 | OutputDirectory=".\Release" | ||
111 | IntermediateDirectory=".\Release" | ||
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=".\Release/ManagedLights.tlb" | ||
133 | HeaderFileName="" | ||
134 | /> | ||
135 | <Tool | ||
136 | Name="VCCLCompilerTool" | ||
137 | Optimization="2" | ||
138 | InlineFunctionExpansion="1" | ||
139 | AdditionalIncludeDirectories="..\..\include" | ||
140 | PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" | ||
141 | StringPooling="true" | ||
142 | RuntimeLibrary="0" | ||
143 | EnableFunctionLevelLinking="true" | ||
144 | UsePrecompiledHeader="0" | ||
145 | PrecompiledHeaderFile=".\Release/ManagedLights.pch" | ||
146 | AssemblerListingLocation=".\Release/" | ||
147 | ObjectFile=".\Release/" | ||
148 | ProgramDataBaseFileName=".\Release/" | ||
149 | WarningLevel="3" | ||
150 | SuppressStartupBanner="true" | ||
151 | CompileAs="0" | ||
152 | /> | ||
153 | <Tool | ||
154 | Name="VCManagedResourceCompilerTool" | ||
155 | /> | ||
156 | <Tool | ||
157 | Name="VCResourceCompilerTool" | ||
158 | PreprocessorDefinitions="NDEBUG" | ||
159 | Culture="3079" | ||
160 | /> | ||
161 | <Tool | ||
162 | Name="VCPreLinkEventTool" | ||
163 | /> | ||
164 | <Tool | ||
165 | Name="VCLinkerTool" | ||
166 | OutputFile="..\..\bin\Win32-VisualStudio\20.ManagedLights.exe" | ||
167 | LinkIncremental="0" | ||
168 | SuppressStartupBanner="true" | ||
169 | AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio" | ||
170 | ProgramDatabaseFile=".\Release/ManagedLights.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="Debug|Win32" | ||
208 | > | ||
209 | <Tool | ||
210 | Name="VCCLCompilerTool" | ||
211 | Optimization="0" | ||
212 | AdditionalIncludeDirectories="" | ||
213 | PreprocessorDefinitions="" | ||
214 | BasicRuntimeChecks="3" | ||
215 | /> | ||
216 | </FileConfiguration> | ||
217 | <FileConfiguration | ||
218 | Name="Release|Win32" | ||
219 | > | ||
220 | <Tool | ||
221 | Name="VCCLCompilerTool" | ||
222 | Optimization="2" | ||
223 | AdditionalIncludeDirectories="" | ||
224 | PreprocessorDefinitions="" | ||
225 | /> | ||
226 | </FileConfiguration> | ||
227 | </File> | ||
228 | </Files> | ||
229 | <Globals> | ||
230 | </Globals> | ||
231 | </VisualStudioProject> | ||
diff --git a/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights_vc9.vcproj b/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights_vc9.vcproj new file mode 100644 index 0000000..736faa6 --- /dev/null +++ b/libraries/irrlicht-1.8/examples/20.ManagedLights/ManagedLights_vc9.vcproj | |||
@@ -0,0 +1,231 @@ | |||
1 | <?xml version="1.0" encoding="Windows-1252"?> | ||
2 | <VisualStudioProject | ||
3 | ProjectType="Visual C++" | ||
4 | Version="9.00" | ||
5 | Name="20.ManagedLights_vc9" | ||
6 | ProjectGUID="{16007FE2-142B-47F8-93E1-519BA3F39E71}" | ||
7 | RootNamespace="ManagedLights_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/ManagedLights.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/ManagedLights.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="..\..\Lib\Win32-visualstudio\Irrlicht.lib" | ||
76 | OutputFile="..\..\bin\Win32-VisualStudio\20.ManagedLights.exe" | ||
77 | LinkIncremental="0" | ||
78 | SuppressStartupBanner="true" | ||
79 | AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio" | ||
80 | GenerateDebugInformation="true" | ||
81 | ProgramDatabaseFile=".\Debug/ManagedLights.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/ManagedLights.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/ManagedLights.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\20.ManagedLights.exe" | ||
168 | LinkIncremental="0" | ||
169 | SuppressStartupBanner="true" | ||
170 | AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio" | ||
171 | ProgramDatabaseFile=".\Release/ManagedLights.pdb" | ||
172 | SubSystem="1" | ||
173 | RandomizedBaseAddress="1" | ||
174 | DataExecutionPrevention="0" | ||
175 | TargetMachine="1" | ||
176 | /> | ||
177 | <Tool | ||
178 | Name="VCALinkTool" | ||
179 | /> | ||
180 | <Tool | ||
181 | Name="VCManifestTool" | ||
182 | /> | ||
183 | <Tool | ||
184 | Name="VCXDCMakeTool" | ||
185 | /> | ||
186 | <Tool | ||
187 | Name="VCBscMakeTool" | ||
188 | /> | ||
189 | <Tool | ||
190 | Name="VCFxCopTool" | ||
191 | /> | ||
192 | <Tool | ||
193 | Name="VCAppVerifierTool" | ||
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="Debug|Win32" | ||
208 | > | ||
209 | <Tool | ||
210 | Name="VCCLCompilerTool" | ||
211 | Optimization="0" | ||
212 | AdditionalIncludeDirectories="" | ||
213 | PreprocessorDefinitions="" | ||
214 | BasicRuntimeChecks="3" | ||
215 | /> | ||
216 | </FileConfiguration> | ||
217 | <FileConfiguration | ||
218 | Name="Release|Win32" | ||
219 | > | ||
220 | <Tool | ||
221 | Name="VCCLCompilerTool" | ||
222 | Optimization="2" | ||
223 | AdditionalIncludeDirectories="" | ||
224 | PreprocessorDefinitions="" | ||
225 | /> | ||
226 | </FileConfiguration> | ||
227 | </File> | ||
228 | </Files> | ||
229 | <Globals> | ||
230 | </Globals> | ||
231 | </VisualStudioProject> | ||
diff --git a/libraries/irrlicht-1.8/examples/20.ManagedLights/main.cpp b/libraries/irrlicht-1.8/examples/20.ManagedLights/main.cpp new file mode 100644 index 0000000..f67337a --- /dev/null +++ b/libraries/irrlicht-1.8/examples/20.ManagedLights/main.cpp | |||
@@ -0,0 +1,386 @@ | |||
1 | /** Example 020 Managed Lights | ||
2 | |||
3 | Written by Colin MacDonald. This tutorial explains the use of the Light Manager | ||
4 | of Irrlicht. It enables the use of more dynamic light sources than the actual | ||
5 | hardware supports. Further applications of the Light Manager, such as per scene | ||
6 | node callbacks, are left out for simplicity of the example. | ||
7 | */ | ||
8 | |||
9 | #include <irrlicht.h> | ||
10 | #include "driverChoice.h" | ||
11 | |||
12 | using namespace irr; | ||
13 | using namespace core; | ||
14 | |||
15 | #if defined(_MSC_VER) | ||
16 | #pragma comment(lib, "Irrlicht.lib") | ||
17 | #endif // MSC_VER | ||
18 | |||
19 | /* | ||
20 | Normally, you are limited to 8 dynamic lights per scene: this is a hardware limit. If you | ||
21 | want to use more dynamic lights in your scene, then you can register an optional light | ||
22 | manager that allows you to to turn lights on and off at specific point during rendering. | ||
23 | You are still limited to 8 lights, but the limit is per scene node. | ||
24 | |||
25 | This is completely optional: if you do not register a light manager, then a default | ||
26 | distance-based scheme will be used to prioritise hardware lights based on their distance | ||
27 | from the active camera. | ||
28 | |||
29 | NO_MANAGEMENT disables the light manager and shows Irrlicht's default light behaviour. | ||
30 | The 8 lights nearest to the camera will be turned on, and other lights will be turned off. | ||
31 | In this example, this produces a funky looking but incoherent light display. | ||
32 | |||
33 | LIGHTS_NEAREST_NODE shows an implementation that turns on a limited number of lights | ||
34 | per mesh scene node. If finds the 3 lights that are nearest to the node being rendered, | ||
35 | and turns them on, turning all other lights off. This works, but as it operates on every | ||
36 | light for every node, it does not scale well with many lights. The flickering you can see | ||
37 | in this demo is due to the lights swapping their relative positions from the cubes | ||
38 | (a deliberate demonstration of the limitations of this technique). | ||
39 | |||
40 | LIGHTS_IN_ZONE shows a technique for turning on lights based on a 'zone'. Each empty scene | ||
41 | node is considered to be the parent of a zone. When nodes are rendered, they turn off all | ||
42 | lights, then find their parent 'zone' and turn on all lights that are inside that zone, i.e. | ||
43 | are descendents of it in the scene graph. This produces true 'local' lighting for each cube | ||
44 | in this example. You could use a similar technique to locally light all meshes in (e.g.) | ||
45 | a room, without the lights spilling out to other rooms. | ||
46 | |||
47 | This light manager is also an event receiver; this is purely for simplicity in this example, | ||
48 | it's neither necessary nor recommended for a real application. | ||
49 | */ | ||
50 | class CMyLightManager : public scene::ILightManager, public IEventReceiver | ||
51 | { | ||
52 | typedef enum | ||
53 | { | ||
54 | NO_MANAGEMENT, | ||
55 | LIGHTS_NEAREST_NODE, | ||
56 | LIGHTS_IN_ZONE | ||
57 | } | ||
58 | LightManagementMode; | ||
59 | |||
60 | LightManagementMode Mode; | ||
61 | LightManagementMode RequestedMode; | ||
62 | |||
63 | // These data represent the state information that this light manager | ||
64 | // is interested in. | ||
65 | scene::ISceneManager * SceneManager; | ||
66 | core::array<scene::ISceneNode*> * SceneLightList; | ||
67 | scene::E_SCENE_NODE_RENDER_PASS CurrentRenderPass; | ||
68 | scene::ISceneNode * CurrentSceneNode; | ||
69 | |||
70 | public: | ||
71 | CMyLightManager(scene::ISceneManager* sceneManager) | ||
72 | : Mode(NO_MANAGEMENT), RequestedMode(NO_MANAGEMENT), | ||
73 | SceneManager(sceneManager), SceneLightList(0), | ||
74 | CurrentRenderPass(scene::ESNRP_NONE), CurrentSceneNode(0) | ||
75 | { } | ||
76 | |||
77 | // The input receiver interface, which just switches light management strategy | ||
78 | bool OnEvent(const SEvent & event) | ||
79 | { | ||
80 | bool handled = false; | ||
81 | |||
82 | if (event.EventType == irr::EET_KEY_INPUT_EVENT && event.KeyInput.PressedDown) | ||
83 | { | ||
84 | handled = true; | ||
85 | switch(event.KeyInput.Key) | ||
86 | { | ||
87 | case irr::KEY_KEY_1: | ||
88 | RequestedMode = NO_MANAGEMENT; | ||
89 | break; | ||
90 | case irr::KEY_KEY_2: | ||
91 | RequestedMode = LIGHTS_NEAREST_NODE; | ||
92 | break; | ||
93 | case irr::KEY_KEY_3: | ||
94 | RequestedMode = LIGHTS_IN_ZONE; | ||
95 | break; | ||
96 | default: | ||
97 | handled = false; | ||
98 | break; | ||
99 | } | ||
100 | |||
101 | if(NO_MANAGEMENT == RequestedMode) | ||
102 | SceneManager->setLightManager(0); // Show that it's safe to register the light manager | ||
103 | else | ||
104 | SceneManager->setLightManager(this); | ||
105 | } | ||
106 | |||
107 | return handled; | ||
108 | } | ||
109 | |||
110 | |||
111 | // This is called before the first scene node is rendered. | ||
112 | virtual void OnPreRender(core::array<scene::ISceneNode*> & lightList) | ||
113 | { | ||
114 | // Update the mode; changing it here ensures that it's consistent throughout a render | ||
115 | Mode = RequestedMode; | ||
116 | |||
117 | // Store the light list. I am free to alter this list until the end of OnPostRender(). | ||
118 | SceneLightList = &lightList; | ||
119 | } | ||
120 | |||
121 | // Called after the last scene node is rendered. | ||
122 | virtual void OnPostRender() | ||
123 | { | ||
124 | // Since light management might be switched off in the event handler, we'll turn all | ||
125 | // lights on to ensure that they are in a consistent state. You wouldn't normally have | ||
126 | // to do this when using a light manager, since you'd continue to do light management | ||
127 | // yourself. | ||
128 | for (u32 i = 0; i < SceneLightList->size(); i++) | ||
129 | (*SceneLightList)[i]->setVisible(true); | ||
130 | } | ||
131 | |||
132 | virtual void OnRenderPassPreRender(scene::E_SCENE_NODE_RENDER_PASS renderPass) | ||
133 | { | ||
134 | // I don't have to do anything here except remember which render pass I am in. | ||
135 | CurrentRenderPass = renderPass; | ||
136 | } | ||
137 | |||
138 | virtual void OnRenderPassPostRender(scene::E_SCENE_NODE_RENDER_PASS renderPass) | ||
139 | { | ||
140 | // I only want solid nodes to be lit, so after the solid pass, turn all lights off. | ||
141 | if (scene::ESNRP_SOLID == renderPass) | ||
142 | { | ||
143 | for (u32 i = 0; i < SceneLightList->size(); ++i) | ||
144 | (*SceneLightList)[i]->setVisible(false); | ||
145 | } | ||
146 | } | ||
147 | |||
148 | // This is called before the specified scene node is rendered | ||
149 | virtual void OnNodePreRender(scene::ISceneNode* node) | ||
150 | { | ||
151 | CurrentSceneNode = node; | ||
152 | |||
153 | // This light manager only considers solid objects, but you are free to manipulate | ||
154 | // lights during any phase, depending on your requirements. | ||
155 | if (scene::ESNRP_SOLID != CurrentRenderPass) | ||
156 | return; | ||
157 | |||
158 | // And in fact for this example, I only want to consider lighting for cube scene | ||
159 | // nodes. You will probably want to deal with lighting for (at least) mesh / | ||
160 | // animated mesh scene nodes as well. | ||
161 | if (node->getType() != scene::ESNT_CUBE) | ||
162 | return; | ||
163 | |||
164 | if (LIGHTS_NEAREST_NODE == Mode) | ||
165 | { | ||
166 | // This is a naive implementation that prioritises every light in the scene | ||
167 | // by its proximity to the node being rendered. This produces some flickering | ||
168 | // when lights orbit closer to a cube than its 'zone' lights. | ||
169 | const vector3df nodePosition = node->getAbsolutePosition(); | ||
170 | |||
171 | // Sort the light list by prioritising them based on their distance from the node | ||
172 | // that's about to be rendered. | ||
173 | array<LightDistanceElement> sortingArray; | ||
174 | sortingArray.reallocate(SceneLightList->size()); | ||
175 | |||
176 | u32 i; | ||
177 | for(i = 0; i < SceneLightList->size(); ++i) | ||
178 | { | ||
179 | scene::ISceneNode* lightNode = (*SceneLightList)[i]; | ||
180 | const f64 distance = lightNode->getAbsolutePosition().getDistanceFromSQ(nodePosition); | ||
181 | sortingArray.push_back(LightDistanceElement(lightNode, distance)); | ||
182 | } | ||
183 | |||
184 | sortingArray.sort(); | ||
185 | |||
186 | // The list is now sorted by proximity to the node. | ||
187 | // Turn on the three nearest lights, and turn the others off. | ||
188 | for(i = 0; i < sortingArray.size(); ++i) | ||
189 | sortingArray[i].node->setVisible(i < 3); | ||
190 | } | ||
191 | else if(LIGHTS_IN_ZONE == Mode) | ||
192 | { | ||
193 | // Empty scene nodes are used to represent 'zones'. For each solid mesh that | ||
194 | // is being rendered, turn off all lights, then find its 'zone' parent, and turn | ||
195 | // on all lights that are found under that node in the scene graph. | ||
196 | // This is a general purpose algorithm that doesn't use any special | ||
197 | // knowledge of how this particular scene graph is organised. | ||
198 | for (u32 i = 0; i < SceneLightList->size(); ++i) | ||
199 | { | ||
200 | if ((*SceneLightList)[i]->getType() != scene::ESNT_LIGHT) | ||
201 | continue; | ||
202 | scene::ILightSceneNode* lightNode = static_cast<scene::ILightSceneNode*>((*SceneLightList)[i]); | ||
203 | video::SLight & lightData = lightNode->getLightData(); | ||
204 | |||
205 | if (video::ELT_DIRECTIONAL != lightData.Type) | ||
206 | lightNode->setVisible(false); | ||
207 | } | ||
208 | |||
209 | scene::ISceneNode * parentZone = findZone(node); | ||
210 | if (parentZone) | ||
211 | turnOnZoneLights(parentZone); | ||
212 | } | ||
213 | } | ||
214 | |||
215 | // Called after the specified scene node is rendered | ||
216 | virtual void OnNodePostRender(scene::ISceneNode* node) | ||
217 | { | ||
218 | // I don't need to do any light management after individual node rendering. | ||
219 | } | ||
220 | |||
221 | private: | ||
222 | |||
223 | // Find the empty scene node that is the parent of the specified node | ||
224 | scene::ISceneNode * findZone(scene::ISceneNode * node) | ||
225 | { | ||
226 | if (!node) | ||
227 | return 0; | ||
228 | |||
229 | if (node->getType() == scene::ESNT_EMPTY) | ||
230 | return node; | ||
231 | |||
232 | return findZone(node->getParent()); | ||
233 | } | ||
234 | |||
235 | // Turn on all lights that are children (directly or indirectly) of the | ||
236 | // specified scene node. | ||
237 | void turnOnZoneLights(scene::ISceneNode * node) | ||
238 | { | ||
239 | core::list<scene::ISceneNode*> const & children = node->getChildren(); | ||
240 | for (core::list<scene::ISceneNode*>::ConstIterator child = children.begin(); | ||
241 | child != children.end(); ++child) | ||
242 | { | ||
243 | if ((*child)->getType() == scene::ESNT_LIGHT) | ||
244 | (*child)->setVisible(true); | ||
245 | else // Assume that lights don't have any children that are also lights | ||
246 | turnOnZoneLights(*child); | ||
247 | } | ||
248 | } | ||
249 | |||
250 | |||
251 | // A utility class to aid in sorting scene nodes into a distance order | ||
252 | class LightDistanceElement | ||
253 | { | ||
254 | public: | ||
255 | LightDistanceElement() {}; | ||
256 | |||
257 | LightDistanceElement(scene::ISceneNode* n, f64 d) | ||
258 | : node(n), distance(d) { } | ||
259 | |||
260 | scene::ISceneNode* node; | ||
261 | f64 distance; | ||
262 | |||
263 | // Lower distance elements are sorted to the start of the array | ||
264 | bool operator < (const LightDistanceElement& other) const | ||
265 | { | ||
266 | return (distance < other.distance); | ||
267 | } | ||
268 | }; | ||
269 | }; | ||
270 | |||
271 | |||
272 | /* | ||
273 | */ | ||
274 | int main(int argumentCount, char * argumentValues[]) | ||
275 | { | ||
276 | // ask user for driver | ||
277 | video::E_DRIVER_TYPE driverType=driverChoiceConsole(); | ||
278 | if (driverType==video::EDT_COUNT) | ||
279 | return 1; | ||
280 | |||
281 | IrrlichtDevice *device = createDevice(driverType, | ||
282 | dimension2d<u32>(640, 480), 32); | ||
283 | |||
284 | if(!device) | ||
285 | return -1; | ||
286 | |||
287 | f32 const lightRadius = 60.f; // Enough to reach the far side of each 'zone' | ||
288 | |||
289 | video::IVideoDriver* driver = device->getVideoDriver(); | ||
290 | scene::ISceneManager* smgr = device->getSceneManager(); | ||
291 | gui::IGUIEnvironment* guienv = device->getGUIEnvironment(); | ||
292 | |||
293 | gui::IGUISkin* skin = guienv->getSkin(); | ||
294 | if (skin) | ||
295 | { | ||
296 | skin->setColor(gui::EGDC_BUTTON_TEXT, video::SColor(255, 255, 255, 255)); | ||
297 | gui::IGUIFont* font = guienv->getFont("../../media/fontlucida.png"); | ||
298 | if(font) | ||
299 | skin->setFont(font); | ||
300 | } | ||
301 | |||
302 | guienv->addStaticText(L"1 - No light management", core::rect<s32>(10,10,200,30)); | ||
303 | guienv->addStaticText(L"2 - Closest 3 lights", core::rect<s32>(10,30,200,50)); | ||
304 | guienv->addStaticText(L"3 - Lights in zone", core::rect<s32>(10,50,200,70)); | ||
305 | |||
306 | /* | ||
307 | Add several "zones". You could use this technique to light individual rooms, for example. | ||
308 | */ | ||
309 | for(f32 zoneX = -100.f; zoneX <= 100.f; zoneX += 50.f) | ||
310 | for(f32 zoneY = -60.f; zoneY <= 60.f; zoneY += 60.f) | ||
311 | { | ||
312 | // Start with an empty scene node, which we will use to represent a zone. | ||
313 | scene::ISceneNode * zoneRoot = smgr->addEmptySceneNode(); | ||
314 | zoneRoot->setPosition(vector3df(zoneX, zoneY, 0)); | ||
315 | |||
316 | // Each zone contains a rotating cube | ||
317 | scene::IMeshSceneNode * node = smgr->addCubeSceneNode(15, zoneRoot); | ||
318 | scene::ISceneNodeAnimator * rotation = smgr->createRotationAnimator(vector3df(0.25f, 0.5f, 0.75f)); | ||
319 | node->addAnimator(rotation); | ||
320 | rotation->drop(); | ||
321 | |||
322 | // And each cube has three lights attached to it. The lights are attached to billboards so | ||
323 | // that we can see where they are. The billboards are attached to the cube, so that the | ||
324 | // lights are indirect descendents of the same empty scene node as the cube. | ||
325 | scene::IBillboardSceneNode * billboard = smgr->addBillboardSceneNode(node); | ||
326 | billboard->setPosition(vector3df(0, -14, 30)); | ||
327 | billboard->setMaterialType(video::EMT_TRANSPARENT_ADD_COLOR ); | ||
328 | billboard->setMaterialTexture(0, driver->getTexture("../../media/particle.bmp")); | ||
329 | billboard->setMaterialFlag(video::EMF_LIGHTING, false); | ||
330 | smgr->addLightSceneNode(billboard, vector3df(0, 0, 0), video::SColorf(1, 0, 0), lightRadius); | ||
331 | |||
332 | billboard = smgr->addBillboardSceneNode(node); | ||
333 | billboard->setPosition(vector3df(-21, -14, -21)); | ||
334 | billboard->setMaterialType(video::EMT_TRANSPARENT_ADD_COLOR ); | ||
335 | billboard->setMaterialTexture(0, driver->getTexture("../../media/particle.bmp")); | ||
336 | billboard->setMaterialFlag(video::EMF_LIGHTING, false); | ||
337 | smgr->addLightSceneNode(billboard, vector3df(0, 0, 0), video::SColorf(0, 1, 0), lightRadius); | ||
338 | |||
339 | billboard = smgr->addBillboardSceneNode(node); | ||
340 | billboard->setPosition(vector3df(21, -14, -21)); | ||
341 | billboard->setMaterialType(video::EMT_TRANSPARENT_ADD_COLOR ); | ||
342 | billboard->setMaterialTexture(0, driver->getTexture("../../media/particle.bmp")); | ||
343 | billboard->setMaterialFlag(video::EMF_LIGHTING, false); | ||
344 | smgr->addLightSceneNode(billboard, vector3df(0, 0, 0), video::SColorf(0, 0, 1), lightRadius); | ||
345 | |||
346 | // Each cube also has a smaller cube rotating around it, to show that the cubes are being | ||
347 | // lit by the lights in their 'zone', not just lights that are their direct children. | ||
348 | node = smgr->addCubeSceneNode(5, node); | ||
349 | node->setPosition(vector3df(0, 21, 0)); | ||
350 | } | ||
351 | |||
352 | smgr->addCameraSceneNode(0, vector3df(0,0,-130), vector3df(0,0,0)); | ||
353 | |||
354 | CMyLightManager * myLightManager = new CMyLightManager(smgr); | ||
355 | smgr->setLightManager(0); // This is the default: we won't do light management until told to do it. | ||
356 | device->setEventReceiver(myLightManager); | ||
357 | |||
358 | int lastFps = -1; | ||
359 | |||
360 | while(device->run()) | ||
361 | { | ||
362 | driver->beginScene(true, true, video::SColor(255,100,101,140)); | ||
363 | smgr->drawAll(); | ||
364 | guienv->drawAll(); | ||
365 | driver->endScene(); | ||
366 | |||
367 | int fps = driver->getFPS(); | ||
368 | if(fps != lastFps) | ||
369 | { | ||
370 | lastFps = fps; | ||
371 | core::stringw str = L"Managed Lights ["; | ||
372 | str += driver->getName(); | ||
373 | str += "] FPS:"; | ||
374 | str += fps; | ||
375 | device->setWindowCaption(str.c_str()); | ||
376 | } | ||
377 | } | ||
378 | |||
379 | myLightManager->drop(); // Drop my implicit reference | ||
380 | device->drop(); | ||
381 | return 0; | ||
382 | } | ||
383 | |||
384 | /* | ||
385 | **/ | ||
386 | |||