aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/tools/MeshConverter
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/tools/MeshConverter')
-rw-r--r--src/others/irrlicht-1.8.1/tools/MeshConverter/Makefile38
-rw-r--r--src/others/irrlicht-1.8.1/tools/MeshConverter/MeshConverter.cbp54
-rw-r--r--src/others/irrlicht-1.8.1/tools/MeshConverter/MeshConverter_v9.vcproj187
-rw-r--r--src/others/irrlicht-1.8.1/tools/MeshConverter/MeshConverter_vc10.vcxproj192
-rw-r--r--src/others/irrlicht-1.8.1/tools/MeshConverter/MeshConverter_vc11.vcxproj196
-rw-r--r--src/others/irrlicht-1.8.1/tools/MeshConverter/main.cpp108
6 files changed, 775 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/tools/MeshConverter/Makefile b/src/others/irrlicht-1.8.1/tools/MeshConverter/Makefile
new file mode 100644
index 0000000..5328223
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/tools/MeshConverter/Makefile
@@ -0,0 +1,38 @@
1# Makefile for Irrlicht Examples
2# It's usually sufficient to change just the target name and source file list
3# and be sure that CXX is set to a valid compiler
4Target = MeshConverter
5Sources = main.cpp
6
7# general compiler settings
8CPPFLAGS = -I../../include -I/usr/X11R6/include
9CXXFLAGS = -O3 -ffast-math -Wall
10#CXXFLAGS = -g -Wall
11
12#default target is Linux
13all: all_linux
14
15ifeq ($(HOSTTYPE), x86_64)
16LIBSELECT=64
17endif
18
19# target specific settings
20all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11
21all_linux clean_linux: SYSTEM=Linux
22all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lglu32 -lm
23all_win32 clean_win32: SYSTEM=Win32-gcc
24all_win32 clean_win32: SUF=.exe
25# name of the binary - only valid for targets which set SYSTEM
26DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
27
28all_linux all_win32:
29 $(warning Building...)
30 $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
31
32clean: clean_linux clean_win32
33 $(warning Cleaning...)
34
35clean_linux clean_win32:
36 @$(RM) $(DESTPATH)
37
38.PHONY: all all_win32 clean clean_linux clean_win32
diff --git a/src/others/irrlicht-1.8.1/tools/MeshConverter/MeshConverter.cbp b/src/others/irrlicht-1.8.1/tools/MeshConverter/MeshConverter.cbp
new file mode 100644
index 0000000..08ebbfb
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/tools/MeshConverter/MeshConverter.cbp
@@ -0,0 +1,54 @@
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="Mesh Converter" />
6 <Option pch_mode="0" />
7 <Option compiler="gcc" />
8 <Build>
9 <Target title="Linux">
10 <Option platforms="Unix;" />
11 <Option output="..\..\bin\Linux\MeshConverter" prefix_auto="0" extension_auto="0" />
12 <Option type="1" />
13 <Option compiler="gcc" />
14 <Compiler>
15 <Add option="-g" />
16 <Add option="-D_IRR_STATIC_LIB_" />
17 </Compiler>
18 <Linker>
19 <Add library="Xxf86vm" />
20 <Add library="GL" />
21 <Add directory="..\..\lib\Linux" />
22 </Linker>
23 </Target>
24 <Target title="Windows">
25 <Option platforms="Windows;" />
26 <Option output="..\..\bin\Win32-gcc\MeshConverter" prefix_auto="0" extension_auto="1" />
27 <Option type="1" />
28 <Option compiler="gcc" />
29 <Compiler>
30 <Add option="-g" />
31 </Compiler>
32 <Linker>
33 <Add directory="..\..\lib\Win32-gcc" />
34 </Linker>
35 </Target>
36 </Build>
37 <VirtualTargets>
38 <Add alias="All" targets="Windows;Linux;" />
39 </VirtualTargets>
40 <Compiler>
41 <Add option="-g" />
42 <Add directory="..\..\include" />
43 </Compiler>
44 <Linker>
45 <Add library="Irrlicht" />
46 </Linker>
47 <Unit filename="main.cpp" />
48 <Extensions>
49 <code_completion />
50 <debugger />
51 <envvars />
52 </Extensions>
53 </Project>
54</CodeBlocks_project_file>
diff --git a/src/others/irrlicht-1.8.1/tools/MeshConverter/MeshConverter_v9.vcproj b/src/others/irrlicht-1.8.1/tools/MeshConverter/MeshConverter_v9.vcproj
new file mode 100644
index 0000000..5747218
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/tools/MeshConverter/MeshConverter_v9.vcproj
@@ -0,0 +1,187 @@
1<?xml version="1.0" encoding="Windows-1252"?>
2<VisualStudioProject
3 ProjectType="Visual C++"
4 Version="9,00"
5 Name="Mesh Converter"
6 ProjectGUID="{E72B637E-4AA6-46F3-885F-AC67B4B470ED}"
7 RootNamespace="GUI Editor"
8 Keyword="Win32Proj"
9 TargetFrameworkVersion="131072"
10 >
11 <Platforms>
12 <Platform
13 Name="Win32"
14 />
15 </Platforms>
16 <ToolFiles>
17 </ToolFiles>
18 <Configurations>
19 <Configuration
20 Name="Debug|Win32"
21 OutputDirectory="Debug"
22 IntermediateDirectory="Debug"
23 ConfigurationType="1"
24 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
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 />
42 <Tool
43 Name="VCCLCompilerTool"
44 Optimization="0"
45 FavorSizeOrSpeed="0"
46 WholeProgramOptimization="false"
47 AdditionalIncludeDirectories="..\..\include"
48 PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
49 MinimalRebuild="true"
50 BasicRuntimeChecks="3"
51 RuntimeLibrary="1"
52 UsePrecompiledHeader="0"
53 WarningLevel="3"
54 DebugInformationFormat="4"
55 />
56 <Tool
57 Name="VCManagedResourceCompilerTool"
58 />
59 <Tool
60 Name="VCResourceCompilerTool"
61 />
62 <Tool
63 Name="VCPreLinkEventTool"
64 />
65 <Tool
66 Name="VCLinkerTool"
67 AdditionalOptions=" kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib glu32.lib opengl32.lib "
68 OutputFile="../../bin/Win32-visualstudio/MeshConverter.exe"
69 LinkIncremental="2"
70 AdditionalLibraryDirectories="&quot;..\..\lib\Win32-visualstudio&quot;"
71 GenerateDebugInformation="true"
72 ProgramDatabaseFile="$(OutDir)/TestProject.pdb"
73 SubSystem="1"
74 RandomizedBaseAddress="1"
75 DataExecutionPrevention="0"
76 TargetMachine="1"
77 />
78 <Tool
79 Name="VCALinkTool"
80 />
81 <Tool
82 Name="VCManifestTool"
83 />
84 <Tool
85 Name="VCXDCMakeTool"
86 />
87 <Tool
88 Name="VCBscMakeTool"
89 />
90 <Tool
91 Name="VCFxCopTool"
92 />
93 <Tool
94 Name="VCAppVerifierTool"
95 />
96 <Tool
97 Name="VCPostBuildEventTool"
98 />
99 </Configuration>
100 <Configuration
101 Name="Release|Win32"
102 OutputDirectory="Release"
103 IntermediateDirectory="Release"
104 ConfigurationType="1"
105 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
106 CharacterSet="2"
107 >
108 <Tool
109 Name="VCPreBuildEventTool"
110 />
111 <Tool
112 Name="VCCustomBuildTool"
113 />
114 <Tool
115 Name="VCXMLDataGeneratorTool"
116 />
117 <Tool
118 Name="VCWebServiceProxyGeneratorTool"
119 />
120 <Tool
121 Name="VCMIDLTool"
122 />
123 <Tool
124 Name="VCCLCompilerTool"
125 Optimization="3"
126 WholeProgramOptimization="false"
127 AdditionalIncludeDirectories="..\..\include"
128 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
129 RuntimeLibrary="0"
130 UsePrecompiledHeader="0"
131 WarningLevel="3"
132 />
133 <Tool
134 Name="VCManagedResourceCompilerTool"
135 />
136 <Tool
137 Name="VCResourceCompilerTool"
138 />
139 <Tool
140 Name="VCPreLinkEventTool"
141 />
142 <Tool
143 Name="VCLinkerTool"
144 OutputFile="../../bin/Win32-visualstudio/GUIEditor.exe"
145 LinkIncremental="1"
146 GenerateDebugInformation="true"
147 SubSystem="1"
148 OptimizeReferences="2"
149 EnableCOMDATFolding="2"
150 RandomizedBaseAddress="1"
151 DataExecutionPrevention="0"
152 TargetMachine="1"
153 />
154 <Tool
155 Name="VCALinkTool"
156 />
157 <Tool
158 Name="VCManifestTool"
159 />
160 <Tool
161 Name="VCXDCMakeTool"
162 />
163 <Tool
164 Name="VCBscMakeTool"
165 />
166 <Tool
167 Name="VCFxCopTool"
168 />
169 <Tool
170 Name="VCAppVerifierTool"
171 />
172 <Tool
173 Name="VCPostBuildEventTool"
174 />
175 </Configuration>
176 </Configurations>
177 <References>
178 </References>
179 <Files>
180 <File
181 RelativePath=".\main.cpp"
182 >
183 </File>
184 </Files>
185 <Globals>
186 </Globals>
187</VisualStudioProject>
diff --git a/src/others/irrlicht-1.8.1/tools/MeshConverter/MeshConverter_vc10.vcxproj b/src/others/irrlicht-1.8.1/tools/MeshConverter/MeshConverter_vc10.vcxproj
new file mode 100644
index 0000000..1f1ce49
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/tools/MeshConverter/MeshConverter_vc10.vcxproj
@@ -0,0 +1,192 @@
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>MeshConverter</ProjectName>
23 <ProjectGuid>{E72B637E-4AA6-46F3-885F-AC67B4B470ED}</ProjectGuid>
24 <RootNamespace>GUI Editor</RootNamespace>
25 <Keyword>Win32Proj</Keyword>
26 </PropertyGroup>
27 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
29 <ConfigurationType>Application</ConfigurationType>
30 <CharacterSet>MultiByte</CharacterSet>
31 </PropertyGroup>
32 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
33 <ConfigurationType>Application</ConfigurationType>
34 <CharacterSet>MultiByte</CharacterSet>
35 </PropertyGroup>
36 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
37 <ConfigurationType>Application</ConfigurationType>
38 <CharacterSet>MultiByte</CharacterSet>
39 </PropertyGroup>
40 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
41 <ConfigurationType>Application</ConfigurationType>
42 <CharacterSet>MultiByte</CharacterSet>
43 </PropertyGroup>
44 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
45 <ImportGroup Label="ExtensionSettings">
46 </ImportGroup>
47 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
48 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
49 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
50 </ImportGroup>
51 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
52 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
53 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
54 </ImportGroup>
55 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
56 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
57 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
58 </ImportGroup>
59 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
60 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
61 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
62 </ImportGroup>
63 <PropertyGroup Label="UserMacros" />
64 <PropertyGroup>
65 <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
66 <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\..\bin\Win32-VisualStudio\</OutDir>
67 <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">..\..\bin\Win64-VisualStudio\</OutDir>
68 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
69 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
70 <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">..\..\bin\Win32-VisualStudio\</OutDir>
71 <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">..\..\bin\Win64-VisualStudio\</OutDir>
72 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
73 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
74 <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
75 <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
76 <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
77 <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
78 <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
79 <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
80 <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
81 <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
82 <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
83 <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
84 <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
85 <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
86 </PropertyGroup>
87 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
88 <ClCompile>
89 <Optimization>Disabled</Optimization>
90 <FavorSizeOrSpeed>Neither</FavorSizeOrSpeed>
91 <WholeProgramOptimization>false</WholeProgramOptimization>
92 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
93 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
94 <MinimalRebuild>true</MinimalRebuild>
95 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
96 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
97 <PrecompiledHeader>
98 </PrecompiledHeader>
99 <WarningLevel>Level3</WarningLevel>
100 <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
101 </ClCompile>
102 <Link>
103 <AdditionalOptions> kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib glu32.lib opengl32.lib %(AdditionalOptions)</AdditionalOptions>
104 <OutputFile>../../bin/Win32-visualstudio/MeshConverter.exe</OutputFile>
105 <AdditionalLibraryDirectories>..\..\lib\Win32-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
106 <GenerateDebugInformation>true</GenerateDebugInformation>
107 <ProgramDatabaseFile>$(OutDir)TestProject.pdb</ProgramDatabaseFile>
108 <SubSystem>Console</SubSystem>
109 <DataExecutionPrevention>
110 </DataExecutionPrevention>
111 </Link>
112 </ItemDefinitionGroup>
113 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
114 <ClCompile>
115 <Optimization>Disabled</Optimization>
116 <FavorSizeOrSpeed>Neither</FavorSizeOrSpeed>
117 <WholeProgramOptimization>false</WholeProgramOptimization>
118 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
119 <PreprocessorDefinitions>WIN32;WIN64_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
120 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
121 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
122 <PrecompiledHeader>
123 </PrecompiledHeader>
124 <WarningLevel>Level3</WarningLevel>
125 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
126 </ClCompile>
127 <Link>
128 <AdditionalOptions> kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib glu32.lib opengl32.lib %(AdditionalOptions)</AdditionalOptions>
129 <OutputFile>../../bin/Win64-visualstudio/MeshConverter.exe</OutputFile>
130 <AdditionalLibraryDirectories>..\..\lib\Win32-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
131 <GenerateDebugInformation>true</GenerateDebugInformation>
132 <ProgramDatabaseFile>$(OutDir)TestProject.pdb</ProgramDatabaseFile>
133 <SubSystem>Console</SubSystem>
134 <DataExecutionPrevention>
135 </DataExecutionPrevention>
136 </Link>
137 </ItemDefinitionGroup>
138 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
139 <ClCompile>
140 <Optimization>Full</Optimization>
141 <WholeProgramOptimization>false</WholeProgramOptimization>
142 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
143 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
144 <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
145 <PrecompiledHeader>
146 </PrecompiledHeader>
147 <WarningLevel>Level3</WarningLevel>
148 </ClCompile>
149 <Link>
150 <OutputFile>../../bin/Win32-visualstudio/MeshConverter.exe</OutputFile>
151 <GenerateDebugInformation>true</GenerateDebugInformation>
152 <SubSystem>Console</SubSystem>
153 <OptimizeReferences>true</OptimizeReferences>
154 <EnableCOMDATFolding>true</EnableCOMDATFolding>
155 <DataExecutionPrevention>
156 </DataExecutionPrevention>
157 </Link>
158 </ItemDefinitionGroup>
159 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
160 <ClCompile>
161 <Optimization>Full</Optimization>
162 <WholeProgramOptimization>false</WholeProgramOptimization>
163 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
164 <PreprocessorDefinitions>WIN32;WIN64NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
165 <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
166 <PrecompiledHeader>
167 </PrecompiledHeader>
168 <WarningLevel>Level3</WarningLevel>
169 </ClCompile>
170 <Link>
171 <OutputFile>../../bin/Win64-visualstudio/MeshConverter.exe</OutputFile>
172 <GenerateDebugInformation>true</GenerateDebugInformation>
173 <SubSystem>Console</SubSystem>
174 <OptimizeReferences>true</OptimizeReferences>
175 <EnableCOMDATFolding>true</EnableCOMDATFolding>
176 <DataExecutionPrevention>
177 </DataExecutionPrevention>
178 </Link>
179 </ItemDefinitionGroup>
180 <ItemGroup>
181 <ClCompile Include="main.cpp" />
182 </ItemGroup>
183 <ItemGroup>
184 <ProjectReference Include="..\..\source\Irrlicht\Irrlicht10.0.vcxproj">
185 <Project>{e08e042a-6c45-411b-92be-3cc31331019f}</Project>
186 <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
187 </ProjectReference>
188 </ItemGroup>
189 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
190 <ImportGroup Label="ExtensionTargets">
191 </ImportGroup>
192</Project> \ No newline at end of file
diff --git a/src/others/irrlicht-1.8.1/tools/MeshConverter/MeshConverter_vc11.vcxproj b/src/others/irrlicht-1.8.1/tools/MeshConverter/MeshConverter_vc11.vcxproj
new file mode 100644
index 0000000..6493206
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/tools/MeshConverter/MeshConverter_vc11.vcxproj
@@ -0,0 +1,196 @@
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>MeshConverter</ProjectName>
23 <ProjectGuid>{E72B637E-4AA6-46F3-885F-AC67B4B470ED}</ProjectGuid>
24 <RootNamespace>GUI Editor</RootNamespace>
25 <Keyword>Win32Proj</Keyword>
26 </PropertyGroup>
27 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
29 <ConfigurationType>Application</ConfigurationType>
30 <CharacterSet>MultiByte</CharacterSet>
31 <PlatformToolset>v110</PlatformToolset>
32 </PropertyGroup>
33 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
34 <ConfigurationType>Application</ConfigurationType>
35 <CharacterSet>MultiByte</CharacterSet>
36 <PlatformToolset>v110</PlatformToolset>
37 </PropertyGroup>
38 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
39 <ConfigurationType>Application</ConfigurationType>
40 <CharacterSet>MultiByte</CharacterSet>
41 <PlatformToolset>v110</PlatformToolset>
42 </PropertyGroup>
43 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
44 <ConfigurationType>Application</ConfigurationType>
45 <CharacterSet>MultiByte</CharacterSet>
46 <PlatformToolset>v110</PlatformToolset>
47 </PropertyGroup>
48 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
49 <ImportGroup Label="ExtensionSettings">
50 </ImportGroup>
51 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
52 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
53 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
54 </ImportGroup>
55 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
56 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
57 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
58 </ImportGroup>
59 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
60 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
61 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
62 </ImportGroup>
63 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
64 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
65 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
66 </ImportGroup>
67 <PropertyGroup Label="UserMacros" />
68 <PropertyGroup>
69 <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
70 <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\..\bin\Win32-VisualStudio\</OutDir>
71 <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">..\..\bin\Win64-VisualStudio\</OutDir>
72 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
73 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
74 <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">..\..\bin\Win32-VisualStudio\</OutDir>
75 <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">..\..\bin\Win64-VisualStudio\</OutDir>
76 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
77 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
78 <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
79 <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
80 <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
81 <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
82 <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
83 <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
84 <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
85 <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
86 <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
87 <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
88 <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
89 <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
90 </PropertyGroup>
91 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
92 <ClCompile>
93 <Optimization>Disabled</Optimization>
94 <FavorSizeOrSpeed>Neither</FavorSizeOrSpeed>
95 <WholeProgramOptimization>false</WholeProgramOptimization>
96 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
97 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
98 <MinimalRebuild>true</MinimalRebuild>
99 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
100 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
101 <PrecompiledHeader>
102 </PrecompiledHeader>
103 <WarningLevel>Level3</WarningLevel>
104 <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
105 </ClCompile>
106 <Link>
107 <AdditionalOptions> kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib glu32.lib opengl32.lib %(AdditionalOptions)</AdditionalOptions>
108 <OutputFile>../../bin/Win32-visualstudio/MeshConverter.exe</OutputFile>
109 <AdditionalLibraryDirectories>..\..\lib\Win32-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
110 <GenerateDebugInformation>true</GenerateDebugInformation>
111 <ProgramDatabaseFile>$(OutDir)TestProject.pdb</ProgramDatabaseFile>
112 <SubSystem>Console</SubSystem>
113 <DataExecutionPrevention>
114 </DataExecutionPrevention>
115 </Link>
116 </ItemDefinitionGroup>
117 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
118 <ClCompile>
119 <Optimization>Disabled</Optimization>
120 <FavorSizeOrSpeed>Neither</FavorSizeOrSpeed>
121 <WholeProgramOptimization>false</WholeProgramOptimization>
122 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
123 <PreprocessorDefinitions>WIN32;WIN64_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
124 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
125 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
126 <PrecompiledHeader>
127 </PrecompiledHeader>
128 <WarningLevel>Level3</WarningLevel>
129 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
130 </ClCompile>
131 <Link>
132 <AdditionalOptions> kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib glu32.lib opengl32.lib %(AdditionalOptions)</AdditionalOptions>
133 <OutputFile>../../bin/Win64-visualstudio/MeshConverter.exe</OutputFile>
134 <AdditionalLibraryDirectories>..\..\lib\Win32-visualstudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
135 <GenerateDebugInformation>true</GenerateDebugInformation>
136 <ProgramDatabaseFile>$(OutDir)TestProject.pdb</ProgramDatabaseFile>
137 <SubSystem>Console</SubSystem>
138 <DataExecutionPrevention>
139 </DataExecutionPrevention>
140 </Link>
141 </ItemDefinitionGroup>
142 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
143 <ClCompile>
144 <Optimization>Full</Optimization>
145 <WholeProgramOptimization>false</WholeProgramOptimization>
146 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
147 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
148 <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
149 <PrecompiledHeader>
150 </PrecompiledHeader>
151 <WarningLevel>Level3</WarningLevel>
152 </ClCompile>
153 <Link>
154 <OutputFile>../../bin/Win32-visualstudio/MeshConverter.exe</OutputFile>
155 <GenerateDebugInformation>true</GenerateDebugInformation>
156 <SubSystem>Console</SubSystem>
157 <OptimizeReferences>true</OptimizeReferences>
158 <EnableCOMDATFolding>true</EnableCOMDATFolding>
159 <DataExecutionPrevention>
160 </DataExecutionPrevention>
161 </Link>
162 </ItemDefinitionGroup>
163 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
164 <ClCompile>
165 <Optimization>Full</Optimization>
166 <WholeProgramOptimization>false</WholeProgramOptimization>
167 <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
168 <PreprocessorDefinitions>WIN32;WIN64NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
169 <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
170 <PrecompiledHeader>
171 </PrecompiledHeader>
172 <WarningLevel>Level3</WarningLevel>
173 </ClCompile>
174 <Link>
175 <OutputFile>../../bin/Win64-visualstudio/MeshConverter.exe</OutputFile>
176 <GenerateDebugInformation>true</GenerateDebugInformation>
177 <SubSystem>Console</SubSystem>
178 <OptimizeReferences>true</OptimizeReferences>
179 <EnableCOMDATFolding>true</EnableCOMDATFolding>
180 <DataExecutionPrevention>
181 </DataExecutionPrevention>
182 </Link>
183 </ItemDefinitionGroup>
184 <ItemGroup>
185 <ClCompile Include="main.cpp" />
186 </ItemGroup>
187 <ItemGroup>
188 <ProjectReference Include="..\..\source\Irrlicht\Irrlicht10.0.vcxproj">
189 <Project>{e08e042a-6c45-411b-92be-3cc31331019f}</Project>
190 <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
191 </ProjectReference>
192 </ItemGroup>
193 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
194 <ImportGroup Label="ExtensionTargets">
195 </ImportGroup>
196</Project> \ No newline at end of file
diff --git a/src/others/irrlicht-1.8.1/tools/MeshConverter/main.cpp b/src/others/irrlicht-1.8.1/tools/MeshConverter/main.cpp
new file mode 100644
index 0000000..d6b878f
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/tools/MeshConverter/main.cpp
@@ -0,0 +1,108 @@
1#include <irrlicht.h>
2#include <iostream>
3
4using namespace irr;
5
6using namespace core;
7using namespace scene;
8using namespace video;
9using namespace io;
10using namespace gui;
11
12#ifdef _IRR_WINDOWS_
13#pragma comment(lib, "Irrlicht.lib")
14#endif
15
16void usage(const char* name)
17{
18 std::cerr << "Usage: " << name << " [options] <srcFile> <destFile>" << std::endl;
19 std::cerr << " where options are" << std::endl;
20 std::cerr << " --createTangents: convert to tangents mesh is possible." << std::endl;
21 std::cerr << " --format=[irrmesh|collada|stl|obj|ply]: Choose target format" << std::endl;
22}
23
24int main(int argc, char* argv[])
25{
26 if ((argc < 3) ||
27 ((argc==3) && (argv[1][0]=='-')))
28 {
29 usage(argv[0]);
30 return 1;
31 }
32
33 IrrlichtDevice *device = createDevice( video::EDT_NULL,
34 dimension2d<u32>(800, 600), 32, false, false, false, 0);
35
36 device->setWindowCaption(L"Mesh Converter");
37
38 scene::EMESH_WRITER_TYPE type = EMWT_IRR_MESH;
39 u32 i=1;
40 bool createTangents=false;
41 while (argv[i][0]=='-')
42 {
43 core::stringc format = argv[i];
44 if (format.size() > 3)
45 {
46 if (format.equalsn("--format=",9))
47 {
48 format = format.subString(9,format.size());
49 if (format=="collada")
50 type = EMWT_COLLADA;
51 else if (format=="stl")
52 type = EMWT_STL;
53 else if (format=="obj")
54 type = EMWT_OBJ;
55 else if (format=="ply")
56 type = EMWT_PLY;
57 else
58 type = EMWT_IRR_MESH;
59 }
60 else
61 if (format =="--createTangents")
62 createTangents=true;
63 }
64 else
65 if (format=="--")
66 {
67 ++i;
68 break;
69 }
70 ++i;
71 }
72
73 const s32 srcmesh = i;
74 const s32 destmesh = i+1;
75
76 --argc;
77 if ((argc<srcmesh) || (argc<destmesh))
78 {
79 std::cerr << "Not enough files given." << std::endl;
80 usage(argv[0]);
81 return 1;
82 }
83
84 createTangents = createTangents && (type==EMWT_IRR_MESH);
85 std::cout << "Converting " << argv[srcmesh] << " to " << argv[destmesh] << std::endl;
86 IMesh* mesh = device->getSceneManager()->getMesh(argv[srcmesh])->getMesh(0);
87 if (!mesh)
88 {
89 std::cerr << "Could not load " << argv[srcmesh] << std::endl;
90 return 1;
91 }
92 if (createTangents)
93 {
94 IMesh* tmp = device->getSceneManager()->getMeshManipulator()->createMeshWithTangents(mesh);
95 mesh->drop();
96 mesh=tmp;
97 }
98 IMeshWriter* mw = device->getSceneManager()->createMeshWriter(type);
99 IWriteFile* file = device->getFileSystem()->createAndWriteFile(argv[destmesh]);
100 mw->writeMesh(file, mesh);
101
102 file->drop();
103 mw->drop();
104 device->drop();
105
106 return 0;
107}
108