From ba4ca61dbd5d0c795dd8ee910278321d1dbe1aa4 Mon Sep 17 00:00:00 2001 From: rave3d Date: Mon, 1 Mar 2010 20:57:09 +0000 Subject: [PATCH] Adding first SWIG generated version of Assimp.NET NOT REALLY TESTED YET git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@561 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- port/Assimp.NET/Assimp.NET.sln | 42 ++++ port/Assimp.NET/Assimp.NET/Assimp.NET.vcproj | 220 +++++++++++++++++++ port/Assimp.NET/Assimp.NET/AssimpSwigPort.i | 83 +++++++ 3 files changed, 345 insertions(+) create mode 100644 port/Assimp.NET/Assimp.NET.sln create mode 100644 port/Assimp.NET/Assimp.NET/Assimp.NET.vcproj create mode 100644 port/Assimp.NET/Assimp.NET/AssimpSwigPort.i diff --git a/port/Assimp.NET/Assimp.NET.sln b/port/Assimp.NET/Assimp.NET.sln new file mode 100644 index 000000000..34b9bf3fe --- /dev/null +++ b/port/Assimp.NET/Assimp.NET.sln @@ -0,0 +1,42 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Assimp.NET", "Assimp.NET\Assimp.NET.vcproj", "{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assimp.NET_CS", "Assimp.NET_CS\Assimp.NET_CS.csproj", "{398AA9C3-5C12-4C51-84A3-32D563618F57}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|Mixed Platforms = Debug|Mixed Platforms + Debug|Win32 = Debug|Win32 + Release|Any CPU = Release|Any CPU + Release|Mixed Platforms = Release|Mixed Platforms + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Debug|Win32.ActiveCfg = Debug|Win32 + {A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Debug|Win32.Build.0 = Debug|Win32 + {A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Release|Any CPU.ActiveCfg = Release|Win32 + {A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Release|Mixed Platforms.Build.0 = Release|Win32 + {A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Release|Win32.ActiveCfg = Release|Win32 + {A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Release|Win32.Build.0 = Release|Win32 + {398AA9C3-5C12-4C51-84A3-32D563618F57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {398AA9C3-5C12-4C51-84A3-32D563618F57}.Debug|Any CPU.Build.0 = Debug|Any CPU + {398AA9C3-5C12-4C51-84A3-32D563618F57}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {398AA9C3-5C12-4C51-84A3-32D563618F57}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {398AA9C3-5C12-4C51-84A3-32D563618F57}.Debug|Win32.ActiveCfg = Debug|Any CPU + {398AA9C3-5C12-4C51-84A3-32D563618F57}.Release|Any CPU.ActiveCfg = Release|Any CPU + {398AA9C3-5C12-4C51-84A3-32D563618F57}.Release|Any CPU.Build.0 = Release|Any CPU + {398AA9C3-5C12-4C51-84A3-32D563618F57}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {398AA9C3-5C12-4C51-84A3-32D563618F57}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {398AA9C3-5C12-4C51-84A3-32D563618F57}.Release|Win32.ActiveCfg = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/port/Assimp.NET/Assimp.NET/Assimp.NET.vcproj b/port/Assimp.NET/Assimp.NET/Assimp.NET.vcproj new file mode 100644 index 000000000..1a63a6397 --- /dev/null +++ b/port/Assimp.NET/Assimp.NET/Assimp.NET.vcproj @@ -0,0 +1,220 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/port/Assimp.NET/Assimp.NET/AssimpSwigPort.i b/port/Assimp.NET/Assimp.NET/AssimpSwigPort.i new file mode 100644 index 000000000..f07c7e3e1 --- /dev/null +++ b/port/Assimp.NET/Assimp.NET/AssimpSwigPort.i @@ -0,0 +1,83 @@ +/* File : example.i */ +%module Assimp +%{ +//#include "..\..\..\include\aiAssert.h" +#include "..\..\..\include\aiDefines.h" +#include "..\..\..\include\aiConfig.h" +#include "..\..\..\include\aiTypes.h" +//#include "..\..\..\include\aiVersion.h" +#include "..\..\..\include\aiPostProcess.h" +#include "..\..\..\include\aiVector2D.h" +#include "..\..\..\include\aiVector3D.h" +#include "..\..\..\include\aiMatrix3x3.h" +#include "..\..\..\include\aiMatrix4x4.h" +#include "..\..\..\include\aiCamera.h" +#include "..\..\..\include\aiLight.h" +#include "..\..\..\include\aiAnim.h" +#include "..\..\..\include\aiMesh.h" +//#include "..\..\..\include\aiFileIO.h" +#include "..\..\..\include\aiMaterial.h" +#include "..\..\..\include\aiQuaternion.h" +#include "..\..\..\include\aiScene.h" +#include "..\..\..\include\aiTexture.h" +#include "..\..\..\include\assimp.hpp" +#include "..\..\..\include\IOSystem.h" +#include "..\..\..\include\IOStream.h" +#include "..\..\..\include\Logger.h" +#include "..\..\..\include\LogStream.h" +//#include "..\..\..\include\NullLogger.h" +%} + +#define C_STRUCT +#define C_ENUM +#define ASSIMP_API +#define PACK_STRUCT + +%rename(__add__) operator+; +%rename(__addnset__) operator+=; +%rename(__sub__) operator-; +%rename(__subnset__) operator-=; +%rename(__mul__) operator*; +%rename(__mulnset__) operator*=; +%rename(__div__) operator/; +%rename(__divnset__) operator/=; +%rename(__equal__) operator==; +%rename(__nequal__) operator!=; +%rename(__idx__) operator[]; +%rename(__set__) operator=; +%rename(__greater__) operator>; +%rename(__smaller__) operator<; + +//%rename(Node) aiNode; + +%include "std_string.i" + +//%include "..\..\..\include\aiAssert.h" +%include "..\..\..\include\aiDefines.h" +%include "..\..\..\include\aiConfig.h" +%include "..\..\..\include\aiTypes.h" +//%include "..\..\..\include\aiVersion.h" +%include "..\..\..\include\aiPostProcess.h" +%include "..\..\..\include\aiVector2D.h" +%include "..\..\..\include\aiVector3D.h" +%include "..\..\..\include\aiMatrix3x3.h" +%include "..\..\..\include\aiMatrix4x4.h" +%include "..\..\..\include\aiCamera.h" +%include "..\..\..\include\aiLight.h" +%include "..\..\..\include\aiAnim.h" +%include "..\..\..\include\aiMesh.h" +//%include "..\..\..\include\aiFileIO.h" +%include "..\..\..\include\aiMaterial.h" +%include "..\..\..\include\aiQuaternion.h" +%include "..\..\..\include\aiScene.h" +%include "..\..\..\include\aiTexture.h" +%include "..\..\..\include\assimp.hpp" +%include "..\..\..\include\IOSystem.h" +%include "..\..\..\include\IOStream.h" +%include "..\..\..\include\Logger.h" +%include "..\..\..\include\LogStream.h" +//%include "..\..\..\include\NullLogger.h" + + + +