diff options
Diffstat (limited to 'src/others/irrlicht-1.8.1/examples/05.UserInterface')
10 files changed, 1758 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/examples/05.UserInterface/Makefile b/src/others/irrlicht-1.8.1/examples/05.UserInterface/Makefile new file mode 100644 index 0000000..24cd5d4 --- /dev/null +++ b/src/others/irrlicht-1.8.1/examples/05.UserInterface/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 | ||
4 | Target = 05.UserInterface | ||
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 clean_win32: SYSTEM=Win32-gcc | ||
24 | all_win32 clean_win32: SUF=.exe | ||
25 | # name of the binary - only valid for targets which set SYSTEM | ||
26 | DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) | ||
27 | |||
28 | all_linux all_win32: | ||
29 | $(warning Building...) | ||
30 | $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) | ||
31 | |||
32 | clean: clean_linux clean_win32 | ||
33 | $(warning Cleaning...) | ||
34 | |||
35 | clean_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/05.UserInterface/UserInterface.cbp b/src/others/irrlicht-1.8.1/examples/05.UserInterface/UserInterface.cbp new file mode 100644 index 0000000..0e4aebb --- /dev/null +++ b/src/others/irrlicht-1.8.1/examples/05.UserInterface/UserInterface.cbp | |||
@@ -0,0 +1,55 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | ||
2 | <CodeBlocks_project_file> | ||
3 | <FileVersion major="1" minor="6" /> | ||
4 | <Project> | ||
5 | <Option title="Irrlicht Example 05 User Interface" /> | ||
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\UserInterface" 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\UserInterface" prefix_auto="0" extension_auto="0" /> | ||
25 | <Option type="1" /> | ||
26 | <Option compiler="gcc" /> | ||
27 | <Compiler> | ||
28 | <Add option="-g" /> | ||
29 | </Compiler> | ||
30 | <Linker> | ||
31 | <Add library="Xxf86vm" /> | ||
32 | <Add library="Xcursor" /> | ||
33 | <Add library="GL" /> | ||
34 | <Add directory="..\..\lib\Linux" /> | ||
35 | </Linker> | ||
36 | </Target> | ||
37 | </Build> | ||
38 | <VirtualTargets> | ||
39 | <Add alias="All" targets="Windows;Linux;" /> | ||
40 | </VirtualTargets> | ||
41 | <Compiler> | ||
42 | <Add option="-g" /> | ||
43 | <Add directory="..\..\include" /> | ||
44 | </Compiler> | ||
45 | <Linker> | ||
46 | <Add library="Irrlicht" /> | ||
47 | </Linker> | ||
48 | <Unit filename="main.cpp" /> | ||
49 | <Extensions> | ||
50 | <code_completion /> | ||
51 | <debugger /> | ||
52 | <envvars /> | ||
53 | </Extensions> | ||
54 | </Project> | ||
55 | </CodeBlocks_project_file> | ||
diff --git a/src/others/irrlicht-1.8.1/examples/05.UserInterface/UserInterface.dev b/src/others/irrlicht-1.8.1/examples/05.UserInterface/UserInterface.dev new file mode 100644 index 0000000..6a32ece --- /dev/null +++ b/src/others/irrlicht-1.8.1/examples/05.UserInterface/UserInterface.dev | |||
@@ -0,0 +1,59 @@ | |||
1 | [Project] | ||
2 | FileName=example.dev | ||
3 | Name=Irrlicht Example 05 User Interface | ||
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=05.UserInterface.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/src/others/irrlicht-1.8.1/examples/05.UserInterface/UserInterface.vcproj b/src/others/irrlicht-1.8.1/examples/05.UserInterface/UserInterface.vcproj new file mode 100644 index 0000000..4428169 --- /dev/null +++ b/src/others/irrlicht-1.8.1/examples/05.UserInterface/UserInterface.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="05.UserInterface" | ||
6 | ProjectGUID="{0294193E-12DE-4B24-91C0-419865BF7E33}" | ||
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/UserInterface.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\05.UserInterface.exe" | ||
43 | LinkIncremental="0" | ||
44 | SuppressStartupBanner="TRUE" | ||
45 | AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio" | ||
46 | GenerateDebugInformation="TRUE" | ||
47 | ProgramDatabaseFile=".\Debug/UserInterface.pdb" | ||
48 | SubSystem="1" | ||
49 | TargetMachine="1"/> | ||
50 | <Tool | ||
51 | Name="VCMIDLTool" | ||
52 | TypeLibraryName=".\Debug/UserInterface.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/UserInterface.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\05.UserInterface.exe" | ||
105 | LinkIncremental="0" | ||
106 | SuppressStartupBanner="TRUE" | ||
107 | AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio" | ||
108 | ProgramDatabaseFile=".\Release/UserInterface.pdb" | ||
109 | SubSystem="1" | ||
110 | TargetMachine="1"/> | ||
111 | <Tool | ||
112 | Name="VCMIDLTool" | ||
113 | TypeLibraryName=".\Release/UserInterface.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/src/others/irrlicht-1.8.1/examples/05.UserInterface/UserInterface_vc10.vcxproj b/src/others/irrlicht-1.8.1/examples/05.UserInterface/UserInterface_vc10.vcxproj new file mode 100644 index 0000000..12c0501 --- /dev/null +++ b/src/others/irrlicht-1.8.1/examples/05.UserInterface/UserInterface_vc10.vcxproj | |||
@@ -0,0 +1,231 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
3 | <ItemGroup Label="ProjectConfigurations"> | ||
4 | <ProjectConfiguration Include="Debug|Win32"> | ||
5 | <Configuration>Debug</Configuration> | ||
6 | <Platform>Win32</Platform> | ||
7 | </ProjectConfiguration> | ||
8 | <ProjectConfiguration Include="Debug|x64"> | ||
9 | <Configuration>Debug</Configuration> | ||
10 | <Platform>x64</Platform> | ||
11 | </ProjectConfiguration> | ||
12 | <ProjectConfiguration Include="Release|Win32"> | ||
13 | <Configuration>Release</Configuration> | ||
14 | <Platform>Win32</Platform> | ||
15 | </ProjectConfiguration> | ||
16 | <ProjectConfiguration Include="Release|x64"> | ||
17 | <Configuration>Release</Configuration> | ||
18 | <Platform>x64</Platform> | ||
19 | </ProjectConfiguration> | ||
20 | </ItemGroup> | ||
21 | <PropertyGroup Label="Globals"> | ||
22 | <ProjectName>05.UserInterface</ProjectName> | ||
23 | <ProjectGuid>{622C9DD7-0391-49FF-AF53-24F9D5A8EC53}</ProjectGuid> | ||
24 | <RootNamespace>UserInterface</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/UserInterface.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 | <OutputFile>..\..\bin\Win32-VisualStudio\05.UserInterface.exe</OutputFile> | ||
113 | <AdditionalLibraryDirectories>..\..\lib\Win32-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
114 | <GenerateDebugInformation>true</GenerateDebugInformation> | ||
115 | <SubSystem>Console</SubSystem> | ||
116 | <DataExecutionPrevention> | ||
117 | </DataExecutionPrevention> | ||
118 | </Link> | ||
119 | </ItemDefinitionGroup> | ||
120 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
121 | <Midl> | ||
122 | <TypeLibraryName>.\Debug/UserInterface.tlb</TypeLibraryName> | ||
123 | <HeaderFileName> | ||
124 | </HeaderFileName> | ||
125 | </Midl> | ||
126 | <ClCompile> | ||
127 | <Optimization>Disabled</Optimization> | ||
128 | <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
129 | <PreprocessorDefinitions>WIN32;WIN64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
130 | <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | ||
131 | <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> | ||
132 | <PrecompiledHeader> | ||
133 | </PrecompiledHeader> | ||
134 | <WarningLevel>Level3</WarningLevel> | ||
135 | <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> | ||
136 | </ClCompile> | ||
137 | <ResourceCompile> | ||
138 | <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
139 | <Culture>0x0c07</Culture> | ||
140 | </ResourceCompile> | ||
141 | <Link> | ||
142 | <OutputFile>..\..\bin\Win64-VisualStudio\05.UserInterface.exe</OutputFile> | ||
143 | <AdditionalLibraryDirectories>..\..\lib\Win64-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
144 | <GenerateDebugInformation>true</GenerateDebugInformation> | ||
145 | <SubSystem>Console</SubSystem> | ||
146 | <DataExecutionPrevention> | ||
147 | </DataExecutionPrevention> | ||
148 | </Link> | ||
149 | </ItemDefinitionGroup> | ||
150 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
151 | <Midl> | ||
152 | <TypeLibraryName>.\Release/UserInterface.tlb</TypeLibraryName> | ||
153 | <HeaderFileName> | ||
154 | </HeaderFileName> | ||
155 | </Midl> | ||
156 | <ClCompile> | ||
157 | <Optimization>MaxSpeed</Optimization> | ||
158 | <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion> | ||
159 | <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
160 | <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
161 | <StringPooling>true</StringPooling> | ||
162 | <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||
163 | <FunctionLevelLinking>true</FunctionLevelLinking> | ||
164 | <PrecompiledHeader> | ||
165 | </PrecompiledHeader> | ||
166 | <WarningLevel>Level3</WarningLevel> | ||
167 | </ClCompile> | ||
168 | <ResourceCompile> | ||
169 | <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
170 | <Culture>0x0c07</Culture> | ||
171 | </ResourceCompile> | ||
172 | <Link> | ||
173 | <OutputFile>..\..\bin\Win32-VisualStudio\05.UserInterface.exe</OutputFile> | ||
174 | <AdditionalLibraryDirectories>..\..\lib\Win32-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
175 | <SubSystem>Console</SubSystem> | ||
176 | <DataExecutionPrevention> | ||
177 | </DataExecutionPrevention> | ||
178 | </Link> | ||
179 | </ItemDefinitionGroup> | ||
180 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
181 | <Midl> | ||
182 | <TypeLibraryName>.\Release/UserInterface.tlb</TypeLibraryName> | ||
183 | <HeaderFileName> | ||
184 | </HeaderFileName> | ||
185 | </Midl> | ||
186 | <ClCompile> | ||
187 | <Optimization>MaxSpeed</Optimization> | ||
188 | <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion> | ||
189 | <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
190 | <PreprocessorDefinitions>WIN32;WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
191 | <StringPooling>true</StringPooling> | ||
192 | <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||
193 | <FunctionLevelLinking>true</FunctionLevelLinking> | ||
194 | <PrecompiledHeader> | ||
195 | </PrecompiledHeader> | ||
196 | <WarningLevel>Level3</WarningLevel> | ||
197 | </ClCompile> | ||
198 | <ResourceCompile> | ||
199 | <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
200 | <Culture>0x0c07</Culture> | ||
201 | </ResourceCompile> | ||
202 | <Link> | ||
203 | <OutputFile>..\..\bin\Win64-VisualStudio\05.UserInterface.exe</OutputFile> | ||
204 | <AdditionalLibraryDirectories>..\..\lib\Win64-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
205 | <SubSystem>Console</SubSystem> | ||
206 | <DataExecutionPrevention> | ||
207 | </DataExecutionPrevention> | ||
208 | </Link> | ||
209 | </ItemDefinitionGroup> | ||
210 | <ItemGroup> | ||
211 | <ClCompile Include="main.cpp"> | ||
212 | <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization> | ||
213 | <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization> | ||
214 | <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
215 | <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
216 | <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
217 | <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
218 | <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks> | ||
219 | <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks> | ||
220 | <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization> | ||
221 | <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization> | ||
222 | <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
223 | <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
224 | <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
225 | <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
226 | </ClCompile> | ||
227 | </ItemGroup> | ||
228 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
229 | <ImportGroup Label="ExtensionTargets"> | ||
230 | </ImportGroup> | ||
231 | </Project> \ No newline at end of file | ||
diff --git a/src/others/irrlicht-1.8.1/examples/05.UserInterface/UserInterface_vc11.vcxproj b/src/others/irrlicht-1.8.1/examples/05.UserInterface/UserInterface_vc11.vcxproj new file mode 100644 index 0000000..cc6561b --- /dev/null +++ b/src/others/irrlicht-1.8.1/examples/05.UserInterface/UserInterface_vc11.vcxproj | |||
@@ -0,0 +1,235 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
3 | <ItemGroup Label="ProjectConfigurations"> | ||
4 | <ProjectConfiguration Include="Debug|Win32"> | ||
5 | <Configuration>Debug</Configuration> | ||
6 | <Platform>Win32</Platform> | ||
7 | </ProjectConfiguration> | ||
8 | <ProjectConfiguration Include="Debug|x64"> | ||
9 | <Configuration>Debug</Configuration> | ||
10 | <Platform>x64</Platform> | ||
11 | </ProjectConfiguration> | ||
12 | <ProjectConfiguration Include="Release|Win32"> | ||
13 | <Configuration>Release</Configuration> | ||
14 | <Platform>Win32</Platform> | ||
15 | </ProjectConfiguration> | ||
16 | <ProjectConfiguration Include="Release|x64"> | ||
17 | <Configuration>Release</Configuration> | ||
18 | <Platform>x64</Platform> | ||
19 | </ProjectConfiguration> | ||
20 | </ItemGroup> | ||
21 | <PropertyGroup Label="Globals"> | ||
22 | <ProjectName>05.UserInterface</ProjectName> | ||
23 | <ProjectGuid>{622C9DD7-0391-49FF-AF53-24F9D5A8EC53}</ProjectGuid> | ||
24 | <RootNamespace>UserInterface</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/UserInterface.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 | <OutputFile>..\..\bin\Win32-VisualStudio\05.UserInterface.exe</OutputFile> | ||
117 | <AdditionalLibraryDirectories>..\..\lib\Win32-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
118 | <GenerateDebugInformation>true</GenerateDebugInformation> | ||
119 | <SubSystem>Console</SubSystem> | ||
120 | <DataExecutionPrevention> | ||
121 | </DataExecutionPrevention> | ||
122 | </Link> | ||
123 | </ItemDefinitionGroup> | ||
124 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
125 | <Midl> | ||
126 | <TypeLibraryName>.\Debug/UserInterface.tlb</TypeLibraryName> | ||
127 | <HeaderFileName> | ||
128 | </HeaderFileName> | ||
129 | </Midl> | ||
130 | <ClCompile> | ||
131 | <Optimization>Disabled</Optimization> | ||
132 | <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
133 | <PreprocessorDefinitions>WIN32;WIN64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
134 | <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | ||
135 | <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> | ||
136 | <PrecompiledHeader> | ||
137 | </PrecompiledHeader> | ||
138 | <WarningLevel>Level3</WarningLevel> | ||
139 | <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> | ||
140 | </ClCompile> | ||
141 | <ResourceCompile> | ||
142 | <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
143 | <Culture>0x0c07</Culture> | ||
144 | </ResourceCompile> | ||
145 | <Link> | ||
146 | <OutputFile>..\..\bin\Win64-VisualStudio\05.UserInterface.exe</OutputFile> | ||
147 | <AdditionalLibraryDirectories>..\..\lib\Win64-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
148 | <GenerateDebugInformation>true</GenerateDebugInformation> | ||
149 | <SubSystem>Console</SubSystem> | ||
150 | <DataExecutionPrevention> | ||
151 | </DataExecutionPrevention> | ||
152 | </Link> | ||
153 | </ItemDefinitionGroup> | ||
154 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
155 | <Midl> | ||
156 | <TypeLibraryName>.\Release/UserInterface.tlb</TypeLibraryName> | ||
157 | <HeaderFileName> | ||
158 | </HeaderFileName> | ||
159 | </Midl> | ||
160 | <ClCompile> | ||
161 | <Optimization>MaxSpeed</Optimization> | ||
162 | <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion> | ||
163 | <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
164 | <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
165 | <StringPooling>true</StringPooling> | ||
166 | <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||
167 | <FunctionLevelLinking>true</FunctionLevelLinking> | ||
168 | <PrecompiledHeader> | ||
169 | </PrecompiledHeader> | ||
170 | <WarningLevel>Level3</WarningLevel> | ||
171 | </ClCompile> | ||
172 | <ResourceCompile> | ||
173 | <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
174 | <Culture>0x0c07</Culture> | ||
175 | </ResourceCompile> | ||
176 | <Link> | ||
177 | <OutputFile>..\..\bin\Win32-VisualStudio\05.UserInterface.exe</OutputFile> | ||
178 | <AdditionalLibraryDirectories>..\..\lib\Win32-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
179 | <SubSystem>Console</SubSystem> | ||
180 | <DataExecutionPrevention> | ||
181 | </DataExecutionPrevention> | ||
182 | </Link> | ||
183 | </ItemDefinitionGroup> | ||
184 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
185 | <Midl> | ||
186 | <TypeLibraryName>.\Release/UserInterface.tlb</TypeLibraryName> | ||
187 | <HeaderFileName> | ||
188 | </HeaderFileName> | ||
189 | </Midl> | ||
190 | <ClCompile> | ||
191 | <Optimization>MaxSpeed</Optimization> | ||
192 | <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion> | ||
193 | <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
194 | <PreprocessorDefinitions>WIN32;WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
195 | <StringPooling>true</StringPooling> | ||
196 | <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||
197 | <FunctionLevelLinking>true</FunctionLevelLinking> | ||
198 | <PrecompiledHeader> | ||
199 | </PrecompiledHeader> | ||
200 | <WarningLevel>Level3</WarningLevel> | ||
201 | </ClCompile> | ||
202 | <ResourceCompile> | ||
203 | <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
204 | <Culture>0x0c07</Culture> | ||
205 | </ResourceCompile> | ||
206 | <Link> | ||
207 | <OutputFile>..\..\bin\Win64-VisualStudio\05.UserInterface.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/05.UserInterface/UserInterface_vc8.vcproj b/src/others/irrlicht-1.8.1/examples/05.UserInterface/UserInterface_vc8.vcproj new file mode 100644 index 0000000..fdc4fef --- /dev/null +++ b/src/others/irrlicht-1.8.1/examples/05.UserInterface/UserInterface_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="05.UserInterface_vc8" | ||
6 | ProjectGUID="{622C9DD7-0391-49FF-AF53-24F9D5A8EC53}" | ||
7 | RootNamespace="UserInterface_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/UserInterface.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/UserInterface.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\05.UserInterface.exe" | ||
75 | LinkIncremental="0" | ||
76 | SuppressStartupBanner="true" | ||
77 | AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio" | ||
78 | GenerateDebugInformation="true" | ||
79 | ProgramDatabaseFile=".\Debug/UserInterface.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/UserInterface.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/UserInterface.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\05.UserInterface.exe" | ||
167 | LinkIncremental="0" | ||
168 | SuppressStartupBanner="true" | ||
169 | AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio" | ||
170 | ProgramDatabaseFile=".\Release/UserInterface.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/src/others/irrlicht-1.8.1/examples/05.UserInterface/UserInterface_vc9.vcproj b/src/others/irrlicht-1.8.1/examples/05.UserInterface/UserInterface_vc9.vcproj new file mode 100644 index 0000000..e192238 --- /dev/null +++ b/src/others/irrlicht-1.8.1/examples/05.UserInterface/UserInterface_vc9.vcproj | |||
@@ -0,0 +1,230 @@ | |||
1 | <?xml version="1.0" encoding="Windows-1252"?> | ||
2 | <VisualStudioProject | ||
3 | ProjectType="Visual C++" | ||
4 | Version="9.00" | ||
5 | Name="05.UserInterface_vc8" | ||
6 | ProjectGUID="{622C9DD7-0391-49FF-AF53-24F9D5A8EC53}" | ||
7 | RootNamespace="UserInterface_vc8" | ||
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/UserInterface.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/UserInterface.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 | OutputFile="..\..\bin\Win32-VisualStudio\05.UserInterface.exe" | ||
76 | LinkIncremental="0" | ||
77 | SuppressStartupBanner="true" | ||
78 | AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio" | ||
79 | GenerateDebugInformation="true" | ||
80 | ProgramDatabaseFile=".\Debug/UserInterface.pdb" | ||
81 | SubSystem="1" | ||
82 | RandomizedBaseAddress="1" | ||
83 | DataExecutionPrevention="0" | ||
84 | TargetMachine="1" | ||
85 | /> | ||
86 | <Tool | ||
87 | Name="VCALinkTool" | ||
88 | /> | ||
89 | <Tool | ||
90 | Name="VCManifestTool" | ||
91 | /> | ||
92 | <Tool | ||
93 | Name="VCXDCMakeTool" | ||
94 | /> | ||
95 | <Tool | ||
96 | Name="VCBscMakeTool" | ||
97 | /> | ||
98 | <Tool | ||
99 | Name="VCFxCopTool" | ||
100 | /> | ||
101 | <Tool | ||
102 | Name="VCAppVerifierTool" | ||
103 | /> | ||
104 | <Tool | ||
105 | Name="VCPostBuildEventTool" | ||
106 | /> | ||
107 | </Configuration> | ||
108 | <Configuration | ||
109 | Name="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/UserInterface.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/UserInterface.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\05.UserInterface.exe" | ||
167 | LinkIncremental="0" | ||
168 | SuppressStartupBanner="true" | ||
169 | AdditionalLibraryDirectories="..\..\lib\Win32-visualstudio" | ||
170 | ProgramDatabaseFile=".\Release/UserInterface.pdb" | ||
171 | SubSystem="1" | ||
172 | RandomizedBaseAddress="1" | ||
173 | DataExecutionPrevention="0" | ||
174 | TargetMachine="1" | ||
175 | /> | ||
176 | <Tool | ||
177 | Name="VCALinkTool" | ||
178 | /> | ||
179 | <Tool | ||
180 | Name="VCManifestTool" | ||
181 | /> | ||
182 | <Tool | ||
183 | Name="VCXDCMakeTool" | ||
184 | /> | ||
185 | <Tool | ||
186 | Name="VCBscMakeTool" | ||
187 | /> | ||
188 | <Tool | ||
189 | Name="VCFxCopTool" | ||
190 | /> | ||
191 | <Tool | ||
192 | Name="VCAppVerifierTool" | ||
193 | /> | ||
194 | <Tool | ||
195 | Name="VCPostBuildEventTool" | ||
196 | /> | ||
197 | </Configuration> | ||
198 | </Configurations> | ||
199 | <References> | ||
200 | </References> | ||
201 | <Files> | ||
202 | <File | ||
203 | RelativePath="main.cpp" | ||
204 | > | ||
205 | <FileConfiguration | ||
206 | Name="Debug|Win32" | ||
207 | > | ||
208 | <Tool | ||
209 | Name="VCCLCompilerTool" | ||
210 | Optimization="0" | ||
211 | AdditionalIncludeDirectories="" | ||
212 | PreprocessorDefinitions="" | ||
213 | BasicRuntimeChecks="3" | ||
214 | /> | ||
215 | </FileConfiguration> | ||
216 | <FileConfiguration | ||
217 | Name="Release|Win32" | ||
218 | > | ||
219 | <Tool | ||
220 | Name="VCCLCompilerTool" | ||
221 | Optimization="2" | ||
222 | AdditionalIncludeDirectories="" | ||
223 | PreprocessorDefinitions="" | ||
224 | /> | ||
225 | </FileConfiguration> | ||
226 | </File> | ||
227 | </Files> | ||
228 | <Globals> | ||
229 | </Globals> | ||
230 | </VisualStudioProject> | ||
diff --git a/src/others/irrlicht-1.8.1/examples/05.UserInterface/main.cpp b/src/others/irrlicht-1.8.1/examples/05.UserInterface/main.cpp new file mode 100644 index 0000000..98b3898 --- /dev/null +++ b/src/others/irrlicht-1.8.1/examples/05.UserInterface/main.cpp | |||
@@ -0,0 +1,291 @@ | |||
1 | /** Example 005 User Interface | ||
2 | |||
3 | This tutorial shows how to use the built in User Interface of | ||
4 | the Irrlicht Engine. It will give a brief overview and show | ||
5 | how to create and use windows, buttons, scroll bars, static | ||
6 | texts, and list boxes. | ||
7 | |||
8 | As always, we include the header files, and use the irrlicht | ||
9 | namespaces. We also store a pointer to the Irrlicht device, | ||
10 | a counter variable for changing the creation position of a window, | ||
11 | and a pointer to a listbox. | ||
12 | */ | ||
13 | #include <irrlicht.h> | ||
14 | #include "driverChoice.h" | ||
15 | |||
16 | using namespace irr; | ||
17 | |||
18 | using namespace core; | ||
19 | using namespace scene; | ||
20 | using namespace video; | ||
21 | using namespace io; | ||
22 | using namespace gui; | ||
23 | |||
24 | #ifdef _IRR_WINDOWS_ | ||
25 | #pragma comment(lib, "Irrlicht.lib") | ||
26 | #endif | ||
27 | |||
28 | // Declare a structure to hold some context for the event receiver so that it | ||
29 | // has it available inside its OnEvent() method. | ||
30 | struct SAppContext | ||
31 | { | ||
32 | IrrlichtDevice *device; | ||
33 | s32 counter; | ||
34 | IGUIListBox* listbox; | ||
35 | }; | ||
36 | |||
37 | // Define some values that we'll use to identify individual GUI controls. | ||
38 | enum | ||
39 | { | ||
40 | GUI_ID_QUIT_BUTTON = 101, | ||
41 | GUI_ID_NEW_WINDOW_BUTTON, | ||
42 | GUI_ID_FILE_OPEN_BUTTON, | ||
43 | GUI_ID_TRANSPARENCY_SCROLL_BAR | ||
44 | }; | ||
45 | |||
46 | /* | ||
47 | Set the skin transparency by changing the alpha values of all skin-colors | ||
48 | */ | ||
49 | void setSkinTransparency(s32 alpha, irr::gui::IGUISkin * skin) | ||
50 | { | ||
51 | for (s32 i=0; i<irr::gui::EGDC_COUNT ; ++i) | ||
52 | { | ||
53 | video::SColor col = skin->getColor((EGUI_DEFAULT_COLOR)i); | ||
54 | col.setAlpha(alpha); | ||
55 | skin->setColor((EGUI_DEFAULT_COLOR)i, col); | ||
56 | } | ||
57 | } | ||
58 | |||
59 | /* | ||
60 | The Event Receiver is not only capable of getting keyboard and | ||
61 | mouse input events, but also events of the graphical user interface | ||
62 | (gui). There are events for almost everything: Button click, | ||
63 | Listbox selection change, events that say that a element was hovered | ||
64 | and so on. To be able to react to some of these events, we create | ||
65 | an event receiver. | ||
66 | We only react to gui events, and if it's such an event, we get the | ||
67 | id of the caller (the gui element which caused the event) and get | ||
68 | the pointer to the gui environment. | ||
69 | */ | ||
70 | class MyEventReceiver : public IEventReceiver | ||
71 | { | ||
72 | public: | ||
73 | MyEventReceiver(SAppContext & context) : Context(context) { } | ||
74 | |||
75 | virtual bool OnEvent(const SEvent& event) | ||
76 | { | ||
77 | if (event.EventType == EET_GUI_EVENT) | ||
78 | { | ||
79 | s32 id = event.GUIEvent.Caller->getID(); | ||
80 | IGUIEnvironment* env = Context.device->getGUIEnvironment(); | ||
81 | |||
82 | switch(event.GUIEvent.EventType) | ||
83 | { | ||
84 | |||
85 | /* | ||
86 | If a scrollbar changed its scroll position, and it is | ||
87 | 'our' scrollbar (the one with id GUI_ID_TRANSPARENCY_SCROLL_BAR), then we change | ||
88 | the transparency of all gui elements. This is a very | ||
89 | easy task: There is a skin object, in which all color | ||
90 | settings are stored. We simply go through all colors | ||
91 | stored in the skin and change their alpha value. | ||
92 | */ | ||
93 | case EGET_SCROLL_BAR_CHANGED: | ||
94 | if (id == GUI_ID_TRANSPARENCY_SCROLL_BAR) | ||
95 | { | ||
96 | s32 pos = ((IGUIScrollBar*)event.GUIEvent.Caller)->getPos(); | ||
97 | setSkinTransparency(pos, env->getSkin()); | ||
98 | } | ||
99 | break; | ||
100 | |||
101 | /* | ||
102 | If a button was clicked, it could be one of 'our' | ||
103 | three buttons. If it is the first, we shut down the engine. | ||
104 | If it is the second, we create a little window with some | ||
105 | text on it. We also add a string to the list box to log | ||
106 | what happened. And if it is the third button, we create | ||
107 | a file open dialog, and add also this as string to the list box. | ||
108 | That's all for the event receiver. | ||
109 | */ | ||
110 | case EGET_BUTTON_CLICKED: | ||
111 | switch(id) | ||
112 | { | ||
113 | case GUI_ID_QUIT_BUTTON: | ||
114 | Context.device->closeDevice(); | ||
115 | return true; | ||
116 | |||
117 | case GUI_ID_NEW_WINDOW_BUTTON: | ||
118 | { | ||
119 | Context.listbox->addItem(L"Window created"); | ||
120 | Context.counter += 30; | ||
121 | if (Context.counter > 200) | ||
122 | Context.counter = 0; | ||
123 | |||
124 | IGUIWindow* window = env->addWindow( | ||
125 | rect<s32>(100 + Context.counter, 100 + Context.counter, 300 + Context.counter, 200 + Context.counter), | ||
126 | false, // modal? | ||
127 | L"Test window"); | ||
128 | |||
129 | env->addStaticText(L"Please close me", | ||
130 | rect<s32>(35,35,140,50), | ||
131 | true, // border? | ||
132 | false, // wordwrap? | ||
133 | window); | ||
134 | } | ||
135 | return true; | ||
136 | |||
137 | case GUI_ID_FILE_OPEN_BUTTON: | ||
138 | Context.listbox->addItem(L"File open"); | ||
139 | // There are some options for the file open dialog | ||
140 | // We set the title, make it a modal window, and make sure | ||
141 | // that the working directory is restored after the dialog | ||
142 | // is finished. | ||
143 | env->addFileOpenDialog(L"Please choose a file.", true, 0, -1, true); | ||
144 | return true; | ||
145 | |||
146 | default: | ||
147 | return false; | ||
148 | } | ||
149 | break; | ||
150 | |||
151 | case EGET_FILE_SELECTED: | ||
152 | { | ||
153 | // show the model filename, selected in the file dialog | ||
154 | IGUIFileOpenDialog* dialog = | ||
155 | (IGUIFileOpenDialog*)event.GUIEvent.Caller; | ||
156 | Context.listbox->addItem(dialog->getFileName()); | ||
157 | } | ||
158 | break; | ||
159 | |||
160 | default: | ||
161 | break; | ||
162 | } | ||
163 | } | ||
164 | |||
165 | return false; | ||
166 | } | ||
167 | |||
168 | private: | ||
169 | SAppContext & Context; | ||
170 | }; | ||
171 | |||
172 | |||
173 | /* | ||
174 | Ok, now for the more interesting part. First, create the Irrlicht device. As in | ||
175 | some examples before, we ask the user which driver he wants to use for this | ||
176 | example: | ||
177 | */ | ||
178 | int main() | ||
179 | { | ||
180 | // ask user for driver | ||
181 | video::E_DRIVER_TYPE driverType=driverChoiceConsole(); | ||
182 | if (driverType==video::EDT_COUNT) | ||
183 | return 1; | ||
184 | |||
185 | // create device and exit if creation failed | ||
186 | |||
187 | IrrlichtDevice * device = createDevice(driverType, core::dimension2d<u32>(640, 480)); | ||
188 | |||
189 | if (device == 0) | ||
190 | return 1; // could not create selected driver. | ||
191 | |||
192 | /* The creation was successful, now we set the event receiver and | ||
193 | store pointers to the driver and to the gui environment. */ | ||
194 | |||
195 | device->setWindowCaption(L"Irrlicht Engine - User Interface Demo"); | ||
196 | device->setResizable(true); | ||
197 | |||
198 | video::IVideoDriver* driver = device->getVideoDriver(); | ||
199 | IGUIEnvironment* env = device->getGUIEnvironment(); | ||
200 | |||
201 | /* | ||
202 | To make the font a little bit nicer, we load an external font | ||
203 | and set it as the new default font in the skin. | ||
204 | To keep the standard font for tool tip text, we set it to | ||
205 | the built-in font. | ||
206 | */ | ||
207 | |||
208 | IGUISkin* skin = env->getSkin(); | ||
209 | IGUIFont* font = env->getFont("../../media/fonthaettenschweiler.bmp"); | ||
210 | if (font) | ||
211 | skin->setFont(font); | ||
212 | |||
213 | skin->setFont(env->getBuiltInFont(), EGDF_TOOLTIP); | ||
214 | |||
215 | /* | ||
216 | We add three buttons. The first one closes the engine. The second | ||
217 | creates a window and the third opens a file open dialog. The third | ||
218 | parameter is the id of the button, with which we can easily identify | ||
219 | the button in the event receiver. | ||
220 | */ | ||
221 | |||
222 | env->addButton(rect<s32>(10,240,110,240 + 32), 0, GUI_ID_QUIT_BUTTON, | ||
223 | L"Quit", L"Exits Program"); | ||
224 | env->addButton(rect<s32>(10,280,110,280 + 32), 0, GUI_ID_NEW_WINDOW_BUTTON, | ||
225 | L"New Window", L"Launches a new Window"); | ||
226 | env->addButton(rect<s32>(10,320,110,320 + 32), 0, GUI_ID_FILE_OPEN_BUTTON, | ||
227 | L"File Open", L"Opens a file"); | ||
228 | |||
229 | /* | ||
230 | Now, we add a static text and a scrollbar, which modifies the | ||
231 | transparency of all gui elements. We set the maximum value of | ||
232 | the scrollbar to 255, because that's the maximal value for | ||
233 | a color value. | ||
234 | Then we create an other static text and a list box. | ||
235 | */ | ||
236 | |||
237 | env->addStaticText(L"Transparent Control:", rect<s32>(150,20,350,40), true); | ||
238 | IGUIScrollBar* scrollbar = env->addScrollBar(true, | ||
239 | rect<s32>(150, 45, 350, 60), 0, GUI_ID_TRANSPARENCY_SCROLL_BAR); | ||
240 | scrollbar->setMax(255); | ||
241 | scrollbar->setPos(255); | ||
242 | setSkinTransparency( scrollbar->getPos(), env->getSkin()); | ||
243 | |||
244 | // set scrollbar position to alpha value of an arbitrary element | ||
245 | scrollbar->setPos(env->getSkin()->getColor(EGDC_WINDOW).getAlpha()); | ||
246 | |||
247 | env->addStaticText(L"Logging ListBox:", rect<s32>(50,110,250,130), true); | ||
248 | IGUIListBox * listbox = env->addListBox(rect<s32>(50, 140, 250, 210)); | ||
249 | env->addEditBox(L"Editable Text", rect<s32>(350, 80, 550, 100)); | ||
250 | |||
251 | // Store the appropriate data in a context structure. | ||
252 | SAppContext context; | ||
253 | context.device = device; | ||
254 | context.counter = 0; | ||
255 | context.listbox = listbox; | ||
256 | |||
257 | // Then create the event receiver, giving it that context structure. | ||
258 | MyEventReceiver receiver(context); | ||
259 | |||
260 | // And tell the device to use our custom event receiver. | ||
261 | device->setEventReceiver(&receiver); | ||
262 | |||
263 | |||
264 | /* | ||
265 | And at last, we create a nice Irrlicht Engine logo in the top left corner. | ||
266 | */ | ||
267 | env->addImage(driver->getTexture("../../media/irrlichtlogo2.png"), | ||
268 | position2d<int>(10,10)); | ||
269 | |||
270 | |||
271 | /* | ||
272 | That's all, we only have to draw everything. | ||
273 | */ | ||
274 | |||
275 | while(device->run() && driver) | ||
276 | if (device->isWindowActive()) | ||
277 | { | ||
278 | driver->beginScene(true, true, SColor(0,200,200,200)); | ||
279 | |||
280 | env->drawAll(); | ||
281 | |||
282 | driver->endScene(); | ||
283 | } | ||
284 | |||
285 | device->drop(); | ||
286 | |||
287 | return 0; | ||
288 | } | ||
289 | |||
290 | /* | ||
291 | **/ | ||
diff --git a/src/others/irrlicht-1.8.1/examples/05.UserInterface/tutorial.html b/src/others/irrlicht-1.8.1/examples/05.UserInterface/tutorial.html new file mode 100644 index 0000000..3f3614f --- /dev/null +++ b/src/others/irrlicht-1.8.1/examples/05.UserInterface/tutorial.html | |||
@@ -0,0 +1,225 @@ | |||
1 | <html> | ||
2 | <head> | ||
3 | <title>Irrlicht Engine Tutorial</title> | ||
4 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | ||
5 | </head> | ||
6 | |||
7 | <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> | ||
8 | <br> | ||
9 | <table width="95%" border="0" cellspacing="0" cellpadding="2" align="center"> | ||
10 | <tr> | ||
11 | <td bgcolor="#666699" width="10"><b><a href="http://irrlicht.sourceforge.net" target="_blank"><img src="../../media/irrlichtlogo.jpg" width="88" height="31" border="0"></a></b></td> | ||
12 | <td bgcolor="#666699" width="100%"> | ||
13 | <div align="center"> | ||
14 | <div align="center"></div> | ||
15 | <div align="left"><b><font color="#FFFFFF">Tutorial 5.User Interface</font></b></div> | ||
16 | </div> | ||
17 | </td> | ||
18 | </tr> | ||
19 | <tr bgcolor="#eeeeff"> | ||
20 | <td height="90" colspan="2"> | ||
21 | <div align="left"> | ||
22 | <p>This tutorial shows how to use the built in User Interface of the Irrlicht | ||
23 | Engine. It will give a brief overview and show how to create and use | ||
24 | windows, buttons, scroll bars, static texts and list boxes. </p> | ||
25 | <p>The program which is described here will look like this:</p> | ||
26 | <p align="center"><img src="../../media/005shot.jpg" width="259" height="204"><br> | ||
27 | </p> | ||
28 | </div> | ||
29 | </td> | ||
30 | </tr> | ||
31 | </table> | ||
32 | <br> | ||
33 | <table width="95%" border="0" cellspacing="0" cellpadding="2" align="center"> | ||
34 | <tr> | ||
35 | <td bgcolor="#666699"> <div align="center"><b><font color="#FFFFFF"></font></b></div> | ||
36 | <b><font color="#FFFFFF">Lets start!</font></b></td> | ||
37 | </tr> | ||
38 | <tr> | ||
39 | <td height="90" bgcolor="#eeeeff" valign="top"> <div align="left"> | ||
40 | <p>As always, we include the header files (conio and curses for getting | ||
41 | user input from the console), and use the irrlicht namespaces. We also | ||
42 | store a pointer to the Irrlicht device, a counter variable for changing | ||
43 | the creation position of a window, and a pointer to a listbox.</p> | ||
44 | <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center"> | ||
45 | <tr> | ||
46 | <td> <pre>#include <irrlicht.h> | ||
47 | #include <iostream><br> | ||
48 | using namespace irr;</pre> | ||
49 | <pre>using namespace core; | ||
50 | using namespace scene; | ||
51 | using namespace video; | ||
52 | using namespace io; | ||
53 | using namespace gui;</pre> | ||
54 | <pre>#pragma comment(lib, "Irrlicht.lib")</pre> | ||
55 | <pre>IrrlichtDevice *device = 0; | ||
56 | s32 cnt = 0; | ||
57 | IGUIListBox* listbox = 0; | ||
58 | </pre></td> | ||
59 | </tr> | ||
60 | </table> | ||
61 | <p>The Event Receiver is not only capable of getting keyboard and mouse | ||
62 | input events, but also events of the graphical user interface (gui). | ||
63 | There are events for almost everything: Button click, Listbox selection | ||
64 | change, events that say that a element was hovered and so on. To be | ||
65 | able to react to some of these events, we create <br> | ||
66 | an event receiver. We only react to gui events, and if it's such an | ||
67 | event, we get the id of the caller (the gui element which caused the | ||
68 | event) and get the pointer to the gui environment. </p> | ||
69 | <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center"> | ||
70 | <tr> | ||
71 | <td> <pre>class MyEventReceiver : public IEventReceiver<br>{<br>public:<br> virtual bool OnEvent(const SEvent& event)<br> {<br> if (event.EventType == EET_GUI_EVENT)<br> {<br> s32 id = event.GUIEvent.Caller->getID();<br> IGUIEnvironment* env = device->getGUIEnvironment();</pre> | ||
72 | <pre> switch(event.GUIEvent.EventType) | ||
73 | {</pre> | ||
74 | </td> | ||
75 | </tr> | ||
76 | </table> | ||
77 | <p> If a scrollbar changed its scroll position, and it is 'our' scrollbar | ||
78 | (the one with id 104), then we change the <br> | ||
79 | transparency of all gui elements. This is a very easy task: There is | ||
80 | a skin object, in which all color settings are stored. We simply go | ||
81 | through all colors stored in the skin and change their alpha value. | ||
82 | </p> | ||
83 | <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center"> | ||
84 | <tr> | ||
85 | <td height="80"> <pre>case EGET_SCROLL_BAR_CHANGED:<br> if (id == 104)<br> {<br> s32 pos = ((IGUIScrollBar*)event.GUIEvent.Caller)->getPos();<br> <br> for (s32 i=0; i<EGDC_COUNT ; ++i)<br> {<br> SColor col = env->getSkin()->getColor((EGUI_DEFAULT_COLOR)i);<br> col.setAlpha(pos);<br> env->getSkin()->setColor((EGUI_DEFAULT_COLOR)i, col);<br> }<br> }<br>break;</pre></td> | ||
86 | </tr> | ||
87 | </table> | ||
88 | <p>If a button was clicked, it could be one of 'our' three buttons. If | ||
89 | it is the first, we shut down the engine.<br> | ||
90 | If it is the second, we create a little window with some text on it. | ||
91 | We also add a string to the list box to log<br> | ||
92 | what happened. And if it is the third button, we create a file open | ||
93 | dialog, and add also this as string to the list box.<br> | ||
94 | That's all for the event receiver.</p> | ||
95 | <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center"> | ||
96 | <tr> | ||
97 | <td> | ||
98 | <pre> case EGET_BUTTON_CLICKED: | ||
99 | if (id == 101) | ||
100 | { | ||
101 | device->closeDevice(); | ||
102 | return true; | ||
103 | }</pre> | ||
104 | <pre> if (id == 102) | ||
105 | { | ||
106 | listbox->addItem(L"Window created"); | ||
107 | cnt += 30; | ||
108 | if (cnt > 200) | ||
109 | cnt = 0;</pre> | ||
110 | <pre> IGUIWindow* window = env->addWindow( | ||
111 | rect<s32>(100 + cnt, 100 + cnt, 300 + cnt, 200 + cnt), <br> false, // modal? | ||
112 | L"Test window");</pre> | ||
113 | <pre> env->addStaticText(L"Please close me", | ||
114 | rect<s32>(35,35,140,50), | ||
115 | true, // border?, | ||
116 | false, // wordwrap? | ||
117 | window); | ||
118 | |||
119 | return true; | ||
120 | }</pre> | ||
121 | <pre> if (id == 103) | ||
122 | { | ||
123 | listbox->addItem(L"File open"); | ||
124 | env->addFileOpenDialog(L"Please choose a file."); | ||
125 | return true; | ||
126 | }</pre> | ||
127 | <pre> break; | ||
128 | } | ||
129 | } | ||
130 | return false; | ||
131 | } | ||
132 | };</pre> | ||
133 | </td> | ||
134 | </tr> | ||
135 | </table> | ||
136 | <p>Ok, now for the more interesting part. First, create the Irrlicht device. | ||
137 | As in some examples before, we ask the user which driver he wants to | ||
138 | use for this example:</p> | ||
139 | </div> | ||
140 | <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center"> | ||
141 | <tr> | ||
142 | <td> <pre>int main() | ||
143 | { | ||
144 | // ask user for driver | ||
145 | video::E_DRIVER_TYPE driverType; | ||
146 | |||
147 | |||
148 | printf("Please select the driver you want for this example:\n"\<br> " (a) Direct3D 9.0c\n (b) Direct3D 8.1\n (c) OpenGL 1.5\n"\<br> " (d) Software Renderer\n (e) Apfelbaum Software Renderer\n"\<br> " (f) NullDevice\n (otherKey) exit\n\n");<br><br> char i;<br> std::cin >> i;<br> | ||
149 | switch(i)<br> {<br> case 'a': driverType = video::EDT_DIRECT3D9;break;<br> case 'b': driverType = video::EDT_DIRECT3D8;break;<br> case 'c': driverType = video::EDT_OPENGL; break;<br> case 'd': driverType = video::EDT_SOFTWARE; break;<br> case 'e': driverType = video::EDT_BURNINGSVIDEO;break;<br> case 'f': driverType = video::EDT_NULL; break;<br> default: return 1;<br> } | ||
150 | |||
151 | // create device and exit if creation failed | ||
152 | device = createDevice(driverType, core::dimension2d<s32>(640, 480));<br> | ||
153 | if (device == 0) | ||
154 | return 1; | ||
155 | </pre> | ||
156 | </td> | ||
157 | </tr> | ||
158 | </table> | ||
159 | <p>The creation was successful, now we set the event receiver and store | ||
160 | pointers to the driver and to the gui environment. </p> | ||
161 | <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center"> | ||
162 | <tr> | ||
163 | <td><pre>MyEventReceiver receiver; | ||
164 | device->setEventReceiver(&receiver); | ||
165 | device->setWindowCaption(L"Irrlicht Engine - User Inferface Demo");</pre> | ||
166 | <pre>video::IVideoDriver* driver = device->getVideoDriver(); | ||
167 | IGUIEnvironment* env = device->getGUIEnvironment(); | ||
168 | </pre> | ||
169 | </td> | ||
170 | </tr> | ||
171 | </table> | ||
172 | <p>We add three buttons. The first one closes the engine. The second creates | ||
173 | a window and the third opens a file open dialog. The third parameter is | ||
174 | the id of the button, with which we can easily identify the button in | ||
175 | the event receiver.</p> | ||
176 | <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center"> | ||
177 | <tr> | ||
178 | <td><pre>env->addButton(rect<s32>(10,240,100,270), 0, 101, L"Quit");<br>env->addButton(rect<s32>(10,280,100,320), 0, 102, L"New Window");<br>env->addButton(rect<s32>(10,330,100,370), 0, 103, L"File Open");</pre></td> | ||
179 | </tr> | ||
180 | </table> | ||
181 | <p> Now, we add a static text and a scrollbar, which modifies the transparency | ||
182 | of all gui elements. We set the maximum value of the scrollbar to 255, | ||
183 | because that's the maximal value for a color value.<br> | ||
184 | Then we create an other static text and a list box.</p> | ||
185 | <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center"> | ||
186 | <tr> | ||
187 | <td><pre>env->addStaticText(L"Transparent Control:", rect<s32>(150,20,350,40), true);<br>IGUIScrollBar* scrollbar = env->addScrollBar(true, | ||
188 | rect<s32>(150, 45, 350, 60), 0, 104);<br>scrollbar->setMax(255);</pre> | ||
189 | <pre>env->addStaticText(L"Logging ListBox:", rect<s32>(50,110,250,130), true); | ||
190 | listbox = env->addListBox(rect<s32>(50, 140, 250, 210));</pre></td> | ||
191 | </tr> | ||
192 | </table> | ||
193 | <br> | ||
194 | To make the font a little bit nicer, we load an external font and set it | ||
195 | as new font in the skin. An at last, we create a nice Irrlicht Engine logo | ||
196 | in the top left corner. <br> | ||
197 | <br> | ||
198 | <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center"> | ||
199 | <tr> | ||
200 | <td> <pre>IGUISkin* skin = env->getSkin();<br>IGUIFont* font = env->getFont("../../media/fonthaettenschweiler.bmp");<br>if (font)<br> skin->setFont(font);</pre> | ||
201 | <pre>IGUIImage* img = env->addImage(<br> driver->getTexture("../../media/irrlichtlogoalpha.tga"),<br> position2d<int>(10,10));</pre></td> | ||
202 | </tr> | ||
203 | </table> | ||
204 | <p>That's all, we only have to draw everything.</p> | ||
205 | <table width="95%" border="0" cellspacing="2" cellpadding="0" bgcolor="#CCCCCC" align="center"> | ||
206 | <tr> | ||
207 | <td> | ||
208 | <pre> while(device->run() && driver)<br> if (device->isWindowActive()) <br> {<br> driver->beginScene(true, true, SColor(0,122,65,171)); | ||
209 | env->drawAll(); | ||
210 | driver->endScene(); | ||
211 | } | ||
212 | |||
213 | device->drop();</pre> | ||
214 | <pre> return 0; | ||
215 | }</pre> | ||
216 | </td> | ||
217 | </tr> | ||
218 | </table> | ||
219 | |||
220 | </td> | ||
221 | </tr> | ||
222 | </table> | ||
223 | <p> </p> | ||
224 | </body> | ||
225 | </html> | ||