Update of C#/.NET bindings plus working Managed DirectX Viewer that displays standard DirectX Fixed Function Materials (Ambient, Diffuse, Specular, Emissive) and the first set of texture coordinates if contained in the model.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@782 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
adamdavidson 2010-07-12 13:13:43 +00:00
parent 9d69165ae7
commit 1c0e25288b
133 changed files with 33365 additions and 7006 deletions

View File

@ -1,7 +1,10 @@
 
Microsoft Visual Studio Solution File, Format Version 10.00 Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008 # Visual Studio 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Assimp.NET", "Assimp.NET\Assimp.NET.vcproj", "{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}" Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Assimp_NET", "Assimp.NET\Assimp.NET.vcproj", "{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}"
ProjectSection(ProjectDependencies) = postProject
{5691E159-2D9B-407F-971F-EA5C592DC524} = {5691E159-2D9B-407F-971F-EA5C592DC524}
EndProjectSection
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assimp.NET_CS", "Assimp.NET_CS\Assimp.NET_CS.csproj", "{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assimp.NET_CS", "Assimp.NET_CS\Assimp.NET_CS.csproj", "{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}"
ProjectSection(ProjectDependencies) = postProject ProjectSection(ProjectDependencies) = postProject
@ -9,15 +12,38 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assimp.NET_CS", "Assimp.NET
EndProjectSection EndProjectSection
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assimp.NET_DEMO", "Assimp.NET_DEMO\Assimp.NET_DEMO.csproj", "{B2813591-1491-4C99-B6E2-67B484411AFC}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assimp.NET_DEMO", "Assimp.NET_DEMO\Assimp.NET_DEMO.csproj", "{B2813591-1491-4C99-B6E2-67B484411AFC}"
ProjectSection(ProjectDependencies) = postProject
{5691E159-2D9B-407F-971F-EA5C592DC524} = {5691E159-2D9B-407F-971F-EA5C592DC524}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "assimp", "..\..\workspaces\vc9\assimp.vcproj", "{5691E159-2D9B-407F-971F-EA5C592DC524}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
Debug|Mixed Platforms = Debug|Mixed Platforms Debug|Mixed Platforms = Debug|Mixed Platforms
Debug|Win32 = Debug|Win32 Debug|Win32 = Debug|Win32
debug-dll|Any CPU = debug-dll|Any CPU
debug-dll|Mixed Platforms = debug-dll|Mixed Platforms
debug-dll|Win32 = debug-dll|Win32
debug-noboost-st|Any CPU = debug-noboost-st|Any CPU
debug-noboost-st|Mixed Platforms = debug-noboost-st|Mixed Platforms
debug-noboost-st|Win32 = debug-noboost-st|Win32
debug-st|Any CPU = debug-st|Any CPU
debug-st|Mixed Platforms = debug-st|Mixed Platforms
debug-st|Win32 = debug-st|Win32
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
Release|Mixed Platforms = Release|Mixed Platforms Release|Mixed Platforms = Release|Mixed Platforms
Release|Win32 = Release|Win32 Release|Win32 = Release|Win32
release-dll|Any CPU = release-dll|Any CPU
release-dll|Mixed Platforms = release-dll|Mixed Platforms
release-dll|Win32 = release-dll|Win32
release-noboost-st|Any CPU = release-noboost-st|Any CPU
release-noboost-st|Mixed Platforms = release-noboost-st|Mixed Platforms
release-noboost-st|Win32 = release-noboost-st|Win32
release-st|Any CPU = release-st|Any CPU
release-st|Mixed Platforms = release-st|Mixed Platforms
release-st|Win32 = release-st|Win32
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Debug|Any CPU.ActiveCfg = Debug|Win32 {A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Debug|Any CPU.ActiveCfg = Debug|Win32
@ -25,31 +51,161 @@ Global
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Debug|Mixed Platforms.Build.0 = 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.ActiveCfg = Debug|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Debug|Win32.Build.0 = Debug|Win32 {A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Debug|Win32.Build.0 = Debug|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-dll|Any CPU.ActiveCfg = Debug|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-dll|Mixed Platforms.ActiveCfg = Debug|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-dll|Mixed Platforms.Build.0 = Debug|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-dll|Win32.ActiveCfg = Debug|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-dll|Win32.Build.0 = Debug|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-noboost-st|Any CPU.ActiveCfg = Debug|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-noboost-st|Mixed Platforms.ActiveCfg = Debug|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-noboost-st|Mixed Platforms.Build.0 = Debug|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-noboost-st|Win32.ActiveCfg = Debug|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-noboost-st|Win32.Build.0 = Debug|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-st|Any CPU.ActiveCfg = Debug|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-st|Mixed Platforms.ActiveCfg = Debug|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-st|Mixed Platforms.Build.0 = Debug|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-st|Win32.ActiveCfg = Debug|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-st|Win32.Build.0 = Debug|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Release|Any CPU.ActiveCfg = Release|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.ActiveCfg = Release|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Release|Mixed Platforms.Build.0 = 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.ActiveCfg = Release|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Release|Win32.Build.0 = Release|Win32 {A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Release|Win32.Build.0 = Release|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-dll|Any CPU.ActiveCfg = Release|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-dll|Mixed Platforms.ActiveCfg = Release|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-dll|Mixed Platforms.Build.0 = Release|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-dll|Win32.ActiveCfg = Release|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-dll|Win32.Build.0 = Release|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-noboost-st|Any CPU.ActiveCfg = Release|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-noboost-st|Mixed Platforms.ActiveCfg = Release|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-noboost-st|Mixed Platforms.Build.0 = Release|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-noboost-st|Win32.ActiveCfg = Release|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-noboost-st|Win32.Build.0 = Release|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-st|Any CPU.ActiveCfg = Release|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-st|Mixed Platforms.ActiveCfg = Release|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-st|Mixed Platforms.Build.0 = Release|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-st|Win32.ActiveCfg = Release|Win32
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-st|Win32.Build.0 = Release|Win32
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Debug|Any CPU.Build.0 = Debug|Any CPU {A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU {A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU {A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Debug|Win32.ActiveCfg = Debug|Any CPU {A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Debug|Win32.ActiveCfg = Debug|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-dll|Any CPU.ActiveCfg = Debug|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-dll|Any CPU.Build.0 = Debug|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-dll|Mixed Platforms.ActiveCfg = Debug|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-dll|Mixed Platforms.Build.0 = Debug|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-dll|Win32.ActiveCfg = Debug|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-noboost-st|Any CPU.ActiveCfg = Debug|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-noboost-st|Any CPU.Build.0 = Debug|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-noboost-st|Mixed Platforms.ActiveCfg = Debug|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-noboost-st|Mixed Platforms.Build.0 = Debug|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-noboost-st|Win32.ActiveCfg = Debug|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-st|Any CPU.ActiveCfg = Debug|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-st|Any CPU.Build.0 = Debug|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-st|Mixed Platforms.ActiveCfg = Debug|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-st|Mixed Platforms.Build.0 = Debug|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-st|Win32.ActiveCfg = Debug|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Release|Any CPU.ActiveCfg = Release|Any CPU {A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Release|Any CPU.Build.0 = Release|Any CPU {A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Release|Any CPU.Build.0 = Release|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Release|Mixed Platforms.Build.0 = Release|Any CPU {A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Release|Win32.ActiveCfg = Release|Any CPU {A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Release|Win32.ActiveCfg = Release|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-dll|Any CPU.ActiveCfg = Release|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-dll|Any CPU.Build.0 = Release|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-dll|Mixed Platforms.ActiveCfg = Release|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-dll|Mixed Platforms.Build.0 = Release|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-dll|Win32.ActiveCfg = Release|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-noboost-st|Any CPU.ActiveCfg = Release|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-noboost-st|Any CPU.Build.0 = Release|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-noboost-st|Mixed Platforms.ActiveCfg = Release|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-noboost-st|Mixed Platforms.Build.0 = Release|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-noboost-st|Win32.ActiveCfg = Release|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-st|Any CPU.ActiveCfg = Release|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-st|Any CPU.Build.0 = Release|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-st|Mixed Platforms.ActiveCfg = Release|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-st|Mixed Platforms.Build.0 = Release|Any CPU
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-st|Win32.ActiveCfg = Release|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B2813591-1491-4C99-B6E2-67B484411AFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.Debug|Any CPU.Build.0 = Debug|Any CPU {B2813591-1491-4C99-B6E2-67B484411AFC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU {B2813591-1491-4C99-B6E2-67B484411AFC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU {B2813591-1491-4C99-B6E2-67B484411AFC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.Debug|Win32.ActiveCfg = Debug|Any CPU {B2813591-1491-4C99-B6E2-67B484411AFC}.Debug|Win32.ActiveCfg = Debug|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-dll|Any CPU.ActiveCfg = Debug|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-dll|Any CPU.Build.0 = Debug|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-dll|Mixed Platforms.ActiveCfg = Debug|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-dll|Mixed Platforms.Build.0 = Debug|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-dll|Win32.ActiveCfg = Debug|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-noboost-st|Any CPU.ActiveCfg = Debug|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-noboost-st|Any CPU.Build.0 = Debug|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-noboost-st|Mixed Platforms.ActiveCfg = Debug|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-noboost-st|Mixed Platforms.Build.0 = Debug|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-noboost-st|Win32.ActiveCfg = Debug|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-st|Any CPU.ActiveCfg = Debug|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-st|Any CPU.Build.0 = Debug|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-st|Mixed Platforms.ActiveCfg = Debug|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-st|Mixed Platforms.Build.0 = Debug|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-st|Win32.ActiveCfg = Debug|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.Release|Any CPU.ActiveCfg = Release|Any CPU {B2813591-1491-4C99-B6E2-67B484411AFC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.Release|Any CPU.Build.0 = Release|Any CPU {B2813591-1491-4C99-B6E2-67B484411AFC}.Release|Any CPU.Build.0 = Release|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {B2813591-1491-4C99-B6E2-67B484411AFC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.Release|Mixed Platforms.Build.0 = Release|Any CPU {B2813591-1491-4C99-B6E2-67B484411AFC}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.Release|Win32.ActiveCfg = Release|Any CPU {B2813591-1491-4C99-B6E2-67B484411AFC}.Release|Win32.ActiveCfg = Release|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-dll|Any CPU.ActiveCfg = Release|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-dll|Any CPU.Build.0 = Release|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-dll|Mixed Platforms.ActiveCfg = Release|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-dll|Mixed Platforms.Build.0 = Release|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-dll|Win32.ActiveCfg = Release|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-noboost-st|Any CPU.ActiveCfg = Release|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-noboost-st|Any CPU.Build.0 = Release|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-noboost-st|Mixed Platforms.ActiveCfg = Release|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-noboost-st|Mixed Platforms.Build.0 = Release|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-noboost-st|Win32.ActiveCfg = Release|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-st|Any CPU.ActiveCfg = Release|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-st|Any CPU.Build.0 = Release|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-st|Mixed Platforms.ActiveCfg = Release|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-st|Mixed Platforms.Build.0 = Release|Any CPU
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-st|Win32.ActiveCfg = Release|Any CPU
{5691E159-2D9B-407F-971F-EA5C592DC524}.Debug|Any CPU.ActiveCfg = debug|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.Debug|Mixed Platforms.ActiveCfg = debug|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.Debug|Mixed Platforms.Build.0 = debug|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.Debug|Win32.ActiveCfg = debug|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.Debug|Win32.Build.0 = debug|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-dll|Any CPU.ActiveCfg = debug-dll|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-dll|Mixed Platforms.ActiveCfg = debug-dll|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-dll|Mixed Platforms.Build.0 = debug-dll|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-dll|Win32.ActiveCfg = debug-dll|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-dll|Win32.Build.0 = debug-dll|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-noboost-st|Any CPU.ActiveCfg = debug-noboost-st|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-noboost-st|Mixed Platforms.ActiveCfg = debug-noboost-st|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-noboost-st|Mixed Platforms.Build.0 = debug-noboost-st|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-noboost-st|Win32.ActiveCfg = debug-noboost-st|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-noboost-st|Win32.Build.0 = debug-noboost-st|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-st|Any CPU.ActiveCfg = debug-st|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-st|Mixed Platforms.ActiveCfg = debug-st|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-st|Mixed Platforms.Build.0 = debug-st|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-st|Win32.ActiveCfg = debug-st|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-st|Win32.Build.0 = debug-st|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.Release|Any CPU.ActiveCfg = release|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.Release|Mixed Platforms.ActiveCfg = release|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.Release|Mixed Platforms.Build.0 = release|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.Release|Win32.ActiveCfg = release|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.Release|Win32.Build.0 = release|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-dll|Any CPU.ActiveCfg = release-dll|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-dll|Mixed Platforms.ActiveCfg = release-dll|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-dll|Mixed Platforms.Build.0 = release-dll|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-dll|Win32.ActiveCfg = release-dll|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-dll|Win32.Build.0 = release-dll|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-noboost-st|Any CPU.ActiveCfg = release-noboost-st|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-noboost-st|Mixed Platforms.ActiveCfg = release-noboost-st|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-noboost-st|Mixed Platforms.Build.0 = release-noboost-st|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-noboost-st|Win32.ActiveCfg = release-noboost-st|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-noboost-st|Win32.Build.0 = release-noboost-st|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-st|Any CPU.ActiveCfg = release-st|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-st|Mixed Platforms.ActiveCfg = release-st|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-st|Mixed Platforms.Build.0 = release-st|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-st|Win32.ActiveCfg = release-st|Win32
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-st|Win32.Build.0 = release-st|Win32
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="Windows-1252"?> <?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject <VisualStudioProject
ProjectType="Visual C++" ProjectType="Visual C++"
Version="9,00" Version="9.00"
Name="Assimp_NET" Name="Assimp_NET"
ProjectGUID="{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}" ProjectGUID="{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}"
RootNamespace="AssimpNET" RootNamespace="AssimpNET"
@ -62,10 +62,9 @@
/> />
<Tool <Tool
Name="VCLinkerTool" Name="VCLinkerTool"
AdditionalDependencies="assimp.lib" OutputFile="$(OutDir)\Assimp.dll"
OutputFile="$(OutDir)\Assimp_NET.dll"
LinkIncremental="2" LinkIncremental="2"
AdditionalLibraryDirectories="&quot;D:\Projekte\Assimp\trunk\lib\assimp_debug-dll_Win32&quot;" AdditionalLibraryDirectories=""
EnableUAC="false" EnableUAC="false"
AddModuleNamesToAssembly="" AddModuleNamesToAssembly=""
GenerateDebugInformation="true" GenerateDebugInformation="true"
@ -126,7 +125,7 @@
Name="VCCLCompilerTool" Name="VCCLCompilerTool"
PreprocessorDefinitions="WIN32;NDEBUG" PreprocessorDefinitions="WIN32;NDEBUG"
RuntimeLibrary="2" RuntimeLibrary="2"
UsePrecompiledHeader="2" UsePrecompiledHeader="0"
WarningLevel="3" WarningLevel="3"
DebugInformationFormat="3" DebugInformationFormat="3"
/> />
@ -142,6 +141,7 @@
<Tool <Tool
Name="VCLinkerTool" Name="VCLinkerTool"
AdditionalDependencies="$(NoInherit)" AdditionalDependencies="$(NoInherit)"
OutputFile="$(OutDir)\Assimp.dll"
LinkIncremental="1" LinkIncremental="1"
GenerateDebugInformation="true" GenerateDebugInformation="true"
TargetMachine="1" TargetMachine="1"

View File

@ -1,14 +1,56 @@
/* File : example.i */ /*
%module Assimp_NET ---------------------------------------------------------------------------
Open Asset Import Library (ASSIMP)
---------------------------------------------------------------------------
Copyright (c) 2006-2010, ASSIMP Development Team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the following
conditions are met:
* Redistributions of source code must retain the above
copyright notice, this list of conditions and the
following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the
following disclaimer in the documentation and/or other
materials provided with the distribution.
* Neither the name of the ASSIMP team, nor the names of its
contributors may be used to endorse or promote products
derived from this software without specific prior
written permission of the ASSIMP Development Team.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
---------------------------------------------------------------------------
*/
%module Assimp
%include "carrays.i"
%include "typemaps.i"
%{ %{
//#include "..\..\..\include\aiAssert.h"
#include "..\..\..\include\aiDefines.h" #include "..\..\..\include\aiDefines.h"
#include "..\..\..\include\aiConfig.h" #include "..\..\..\include\aiConfig.h"
#include "..\..\..\include\aiTypes.h" #include "..\..\..\include\aiTypes.h"
//#include "..\..\..\include\aiVersion.h" #include "..\..\..\include\aiVersion.h"
#include "..\..\..\include\aiPostProcess.h" #include "..\..\..\include\aiPostProcess.h"
#include "..\..\..\include\aiVector2D.h" #include "..\..\..\include\aiVector2D.h"
#include "..\..\..\include\aiVector3D.h" #include "..\..\..\include\aiVector3D.h"
#include "..\..\..\include\aiColor4D.h"
#include "..\..\..\include\aiMatrix3x3.h" #include "..\..\..\include\aiMatrix3x3.h"
#include "..\..\..\include\aiMatrix4x4.h" #include "..\..\..\include\aiMatrix4x4.h"
#include "..\..\..\include\aiCamera.h" #include "..\..\..\include\aiCamera.h"
@ -55,12 +97,6 @@
%rename(opDelete) operator delete; %rename(opDelete) operator delete;
%rename(opDeleteArray) operator delete[]; %rename(opDeleteArray) operator delete[];
%rename(ReadFile_s) ReadFile(std::string const &,unsigned int);
//%rename(ReadFile_c) ReadFile(char const *,unsigned int);
//%rename(Node) aiNode;
%include "std_string.i" %include "std_string.i"
%include "std_vector.i" %include "std_vector.i"
@ -75,9 +111,10 @@
// Assimp API. // Assimp API.
%define ASSIMP_ARRAY(CLASS, TYPE, NAME, LENGTH) %define ASSIMP_ARRAY(CLASS, TYPE, NAME, LENGTH)
%newobject CLASS::NAME; %csmethodmodifiers Get##NAME() "private";
%newobject CLASS::Get##NAME;
%extend CLASS { %extend CLASS {
std::vector<TYPE > *NAME() { std::vector<TYPE > *Get##NAME() {
std::vector<TYPE > *result = new std::vector<TYPE >; std::vector<TYPE > *result = new std::vector<TYPE >;
result->reserve(LENGTH); result->reserve(LENGTH);
@ -92,14 +129,15 @@
%enddef %enddef
%define ASSIMP_POINTER_ARRAY(CLASS, TYPE, NAME, LENGTH) %define ASSIMP_POINTER_ARRAY(CLASS, TYPE, NAME, LENGTH)
%newobject CLASS::NAME; %csmethodmodifiers Get##NAME() "private";
%newobject CLASS::Get##NAME;
%extend CLASS { %extend CLASS {
std::vector<TYPE *> *NAME() { std::vector<TYPE *> *Get##NAME() {
std::vector<TYPE *> *result = new std::vector<TYPE *>; std::vector<TYPE *> *result = new std::vector<TYPE *>;
result->reserve(LENGTH); result->reserve(LENGTH);
TYPE *currentValue = $self->NAME; TYPE *currentValue = (TYPE *)$self->NAME;
TYPE *valueLimit = $self->NAME + LENGTH; TYPE *valueLimit = (TYPE *)$self->NAME + LENGTH;
while (currentValue < valueLimit) { while (currentValue < valueLimit) {
result->push_back(currentValue); result->push_back(currentValue);
++currentValue; ++currentValue;
@ -111,11 +149,33 @@
%ignore CLASS::NAME; %ignore CLASS::NAME;
%enddef %enddef
%define ASSIMP_POINTER_ARRAY_ARRAY(CLASS, TYPE, NAME, OUTER_LENGTH, INNER_LENGTH) %define ASSIMP_POINTER_POINTER(CLASS, TYPE, NAME, LENGTH)
%newobject CLASS::NAME; %csmethodmodifiers Get##NAME() "private";
%newobject CLASS::Get##NAME;
%extend CLASS { %extend CLASS {
std::vector<std::vector<TYPE *> > *NAME() { std::vector<TYPE *> *Get##NAME() {
std::vector<std::vector<TYPE *> > *result = new std::vector<std::vector<TYPE *> >; std::vector<TYPE *> *result = new std::vector<TYPE *>;
result->reserve(LENGTH);
TYPE **currentValue = $self->NAME;
TYPE **valueLimit = $self->NAME + LENGTH;
while (currentValue < valueLimit) {
result->push_back(*currentValue);
++currentValue;
}
return result;
}
}
%ignore CLASS::NAME;
%enddef
%define ASSIMP_POINTER_ARRAY_ARRAY(CLASS, TYPE, NAME, OUTER_LENGTH, INNER_LENGTH)
%csmethodmodifiers Get##NAME() "private";
%newobject CLASS::Get##NAME;
%extend CLASS {
std::vector< std::vector<TYPE*> > *Get##NAME() {
std::vector< std::vector<TYPE*> > *result = new std::vector< std::vector<TYPE*> >;
result->reserve(OUTER_LENGTH); result->reserve(OUTER_LENGTH);
for (unsigned int i = 0; i < OUTER_LENGTH; ++i) { for (unsigned int i = 0; i < OUTER_LENGTH; ++i) {
@ -141,15 +201,315 @@
%ignore CLASS::NAME; %ignore CLASS::NAME;
%enddef %enddef
%define ASSIMP_GETMATERIAL(XXX, KEY, TYPE, NAME)
%csmethodmodifiers Get##NAME() "private";
%newobject aiMaterial::Get##NAME;
%extend aiMaterial {
bool Get##NAME(TYPE* INOUT) {
return aiGetMaterial##XXX($self, KEY, INOUT) == AI_SUCCESS;
}
}
%enddef
/////// aiAnimation
ASSIMP_POINTER_POINTER(aiAnimation,aiNodeAnim,mChannels,$self->mNumChannels);
ASSIMP_POINTER_POINTER(aiAnimation,aiMeshAnim,mMeshChannels,$self->mNumMeshChannels);
%typemap(cscode) aiAnimation %{
public aiNodeAnimVector mChannels { get { return GetmChannels(); } }
public aiMeshAnimVector mMeshChannels { get { return GetmMeshChannels(); } }
%}
/////// aiAnimMesh
%ignore aiAnimMesh::mVertices;
%ignore aiAnimMesh::mNormals;
%ignore aiAnimMesh::mTangents;
%ignore aiAnimMesh::mColors;
%ignore aiAnimMesh::mTextureCoords;
/////// aiBone
ASSIMP_POINTER_ARRAY(aiBone,aiVertexWeight,mWeights,$self->mNumWeights);
/////// aiCamera
// OK
/////// aiColor3D
// OK
/////// aiColor4D
// OK
/////// aiFace
ASSIMP_ARRAY(aiFace,unsigned int,mIndices,$self->mNumIndices);
%typemap(cscode) aiFace %{
public UintVector mIndices { get { return GetmIndices(); } }
%}
/////// TODO: aiFile
%ignore aiFile;
%ignore aiFile::FileSizeProc;
%ignore aiFile::FlushProc;
%ignore aiFile::ReadProc;
%ignore aiFile::SeekProc;
%ignore aiFile::TellProc;
%ignore aiFile::WriteProc;
/////// TODO: aiFileIO
%ignore aiFileIO;
%ignore aiFileIO::CloseProc;
%ignore aiFileIO::OpenPrc;
/////// aiLight
// Done
/////// aiLightSourceType
// Done
/////// TODO: aiLogStream
%ignore aiLogStream;
%ignore aiLogStream::callback;
/////// aiMaterial
%ignore aiMaterial::Get;
%ignore aiMaterial::GetTexture;
%ignore aiMaterial::mNumAllocated;
%ignore aiMaterial::mNumProperties;
%ignore aiMaterial::mProperties;
ASSIMP_GETMATERIAL(Color, AI_MATKEY_COLOR_DIFFUSE, aiColor4D, Diffuse);
ASSIMP_GETMATERIAL(Color, AI_MATKEY_COLOR_SPECULAR, aiColor4D, Specular);
ASSIMP_GETMATERIAL(Color, AI_MATKEY_COLOR_AMBIENT, aiColor4D, Ambient);
ASSIMP_GETMATERIAL(Color, AI_MATKEY_COLOR_EMISSIVE, aiColor4D, Emissive);
ASSIMP_GETMATERIAL(Float, AI_MATKEY_OPACITY, float, Opacity);
ASSIMP_GETMATERIAL(Float, AI_MATKEY_SHININESS_STRENGTH, float, ShininessStrength);
ASSIMP_GETMATERIAL(Integer, AI_MATKEY_SHADING_MODEL, int, ShadingModel);
ASSIMP_GETMATERIAL(Integer, AI_MATKEY_TEXFLAGS_DIFFUSE(0), int, TexFlagsDiffuse0);
ASSIMP_GETMATERIAL(Integer, AI_MATKEY_MAPPINGMODE_U_DIFFUSE(0),int, MappingModeUDiffuse0);
ASSIMP_GETMATERIAL(Integer, AI_MATKEY_MAPPINGMODE_V_DIFFUSE(0),int, MappingModeVDiffuse0);
ASSIMP_GETMATERIAL(String, AI_MATKEY_TEXTURE_DIFFUSE(0), aiString, TextureDiffuse0);
ASSIMP_GETMATERIAL(String, AI_MATKEY_TEXTURE_SPECULAR(0), aiString, TextureSpecular0);
ASSIMP_GETMATERIAL(String, AI_MATKEY_TEXTURE_OPACITY(0), aiString, TextureOpacity0);
ASSIMP_GETMATERIAL(String, AI_MATKEY_TEXTURE_AMBIENT(0), aiString, TextureAmbient0);
ASSIMP_GETMATERIAL(String, AI_MATKEY_TEXTURE_EMISSIVE(0), aiString, TextureEmissive0);
ASSIMP_GETMATERIAL(String, AI_MATKEY_TEXTURE_SHININESS(0), aiString, TextureShininess0);
ASSIMP_GETMATERIAL(String, AI_MATKEY_TEXTURE_LIGHTMAP(0), aiString, TextureLightmap0);
ASSIMP_GETMATERIAL(String, AI_MATKEY_TEXTURE_NORMALS(0), aiString, TextureNormals0);
ASSIMP_GETMATERIAL(String, AI_MATKEY_TEXTURE_HEIGHT(0), aiString, TextureHeight0);
ASSIMP_GETMATERIAL(String, AI_MATKEY_GLOBAL_BACKGROUND_IMAGE, aiString, GlobalBackgroundImage);
ASSIMP_GETMATERIAL(Integer, AI_MATKEY_TWOSIDED, int, TwoSided);
%typemap(cscode) aiMaterial %{
public aiColor4D Diffuse { get { var v = new aiColor4D(); return GetDiffuse(v)?v:DefaultDiffuse; } }
public aiColor4D Specular { get { var v = new aiColor4D(); return GetSpecular(v)?v:DefaultSpecular; } }
public aiColor4D Ambient { get { var v = new aiColor4D(); return GetAmbient(v)?v:DefaultAmbient; } }
public aiColor4D Emissive { get { var v = new aiColor4D(); return GetEmissive(v)?v:DefaultEmissive; } }
public float Opacity { get { float v = 0; return GetOpacity(ref v)?v:DefaultOpacity; } }
public float ShininessStrength { get { float v = 0; return GetShininessStrength(ref v)?v:DefaultShininessStrength; } }
public aiShadingMode ShadingModel { get { int v = 0; return GetShadingModel(ref v)?((aiShadingMode)v):DefaultShadingModel; } }
public aiTextureFlags TexFlagsDiffuse0 { get { int v = 0; return GetTexFlagsDiffuse0(ref v)?((aiTextureFlags)v):DefaultTexFlagsDiffuse0; } }
public aiTextureMapMode MappingModeUDiffuse0 { get { int v = 0; return GetMappingModeUDiffuse0(ref v)?((aiTextureMapMode)v):DefaultMappingModeUDiffuse0; } }
public aiTextureMapMode MappingModeVDiffuse0 { get { int v = 0; return GetMappingModeVDiffuse0(ref v)?((aiTextureMapMode)v):DefaultMappingModeVDiffuse0; } }
public string TextureDiffuse0 { get { var v = new aiString(); return GetTextureDiffuse0(v)?v.ToString():DefaultTextureDiffuse; } }
public bool TwoSided { get { int v = 0; return GetTwoSided(ref v)?(v!=0):DefaultTwoSided; } }
// These values are returned if the value material property isn't set
// Override these if you don't want to check for null
public static aiColor4D DefaultDiffuse = new aiColor4D(1.0f, 1.0f, 1.0f, 1.0f);
public static aiColor4D DefaultSpecular = new aiColor4D(1.0f, 1.0f, 1.0f, 1.0f);
public static aiColor4D DefaultAmbient = new aiColor4D(0.0f, 0.0f, 0.0f, 1.0f);
public static aiColor4D DefaultEmissive = new aiColor4D(0.0f, 0.0f, 0.0f, 1.0f);
public static float DefaultShininessStrength = 1.0f;
public static float DefaultOpacity = 1.0f;
public static aiShadingMode DefaultShadingModel = (aiShadingMode)0;
public static aiTextureFlags DefaultTexFlagsDiffuse0 = (aiTextureFlags)0;
public static aiTextureMapMode DefaultMappingModeUDiffuse0 = aiTextureMapMode.aiTextureMapMode_Wrap;
public static aiTextureMapMode DefaultMappingModeVDiffuse0 = aiTextureMapMode.aiTextureMapMode_Wrap;
public static string DefaultTextureDiffuse = null;
public static bool DefaultTwoSided = false;
%}
/////// aiMatrix3x3
%ignore aiMatrix3x3::operator!=;
%ignore aiMatrix3x3::operator*;
%ignore aiMatrix3x3::operator*=;
%ignore aiMatrix3x3::operator==;
%ignore aiMatrix3x3::operator[];
/////// aiMatrix4x4
%ignore aiMatrix4x4::operator!=;
%ignore aiMatrix4x4::operator*;
%ignore aiMatrix4x4::operator*=;
%ignore aiMatrix4x4::operator==;
%ignore aiMatrix4x4::operator[];
/////// aiMesh
ASSIMP_POINTER_POINTER(aiMesh,aiAnimMesh,mAnimMeshes,$self->mNumAnimMeshes);
ASSIMP_POINTER_ARRAY(aiMesh,aiVector3D,mBitangents,$self->mNumVertices);
ASSIMP_POINTER_POINTER(aiMesh,aiBone,mBones,$self->mNumBones);
ASSIMP_POINTER_ARRAY_ARRAY(aiMesh,aiColor4D,mColors,AI_MAX_NUMBER_OF_COLOR_SETS,$self->mNumVertices);
ASSIMP_POINTER_ARRAY(aiMesh,aiFace,mFaces,$self->mNumFaces);
ASSIMP_POINTER_ARRAY(aiMesh,aiVector3D,mNormals,$self->mNumVertices);
ASSIMP_POINTER_ARRAY(aiMesh,aiVector3D,mTangents,$self->mNumVertices);
ASSIMP_POINTER_ARRAY_ARRAY(aiMesh,aiVector3D,mTextureCoords,AI_MAX_NUMBER_OF_TEXTURECOORDS,$self->mNumVertices);
ASSIMP_ARRAY(aiMesh,unsigned int,mNumUVComponents,AI_MAX_NUMBER_OF_TEXTURECOORDS);
ASSIMP_POINTER_ARRAY(aiMesh,aiVector3D,mVertices,$self->mNumVertices);
%typemap(cstype) unsigned int mPrimitiveTypes "aiPrimitiveType";
%typemap(csin) unsigned int mPrimitiveTypes "(uint)$csinput";
%typemap(csvarout) unsigned int mPrimitiveTypes %{ get { return (aiPrimitiveType)$imcall; } %}
%typemap(cscode) aiMesh %{
public aiVector3DVector mBitangents { get { return GetmBitangents(); } }
public aiBoneVector mBones { get { return GetmBones(); } }
public aiColor4DVectorVector mColors { get { return GetmColors(); } }
public aiFaceVector mFaces { get { return GetmFaces(); } }
public aiVector3DVector mNormals { get { return GetmNormals(); } }
public aiVector3DVector mTangents { get { return GetmTangents(); } }
public aiVector3DVectorVector mTextureCoords { get { return GetmTextureCoords(); } }
public aiVector3DVector mVertices { get { return GetmVertices(); } }
%}
/////// aiMeshAnim
ASSIMP_POINTER_ARRAY(aiMeshAnim,aiMeshKey,mKeys,$self->mNumKeys);
%typemap(cscode) aiMeshAnim %{
public aiMeshKeyVector mKeys { get { return GetmKeys(); } }
%}
/////// aiMeshKey
// Done
/////// aiNode
ASSIMP_POINTER_POINTER(aiNode,aiNode,mChildren,$self->mNumChildren);
ASSIMP_ARRAY(aiNode,unsigned int,mMeshes,$self->mNumMeshes);
%typemap(cscode) aiNode %{
public aiNodeVector mChildren { get { return GetmChildren(); } }
public UintVector mMeshes { get { return GetmMeshes(); } }
%}
/////// aiNodeAnim
ASSIMP_POINTER_ARRAY(aiNodeAnim,aiVectorKey,mPositionKeys,$self->mNumPositionKeys);
ASSIMP_POINTER_ARRAY(aiNodeAnim,aiQuatKey,mRotationKeys,$self->mNumRotationKeys);
ASSIMP_POINTER_ARRAY(aiNodeAnim,aiVectorKey,mScalingKeys,$self->mNumScalingKeys);
%typemap(cscode) aiNodeAnim %{
public aiVectorKeyVector mPositionKeys { get { return GetmPositionKeys(); } }
public aiQuatKeyVector mRotationKeys { get { return GetmRotationKeys(); } }
public aiVectorKeyVector mScalingKeys { get { return GetmScalingKeys(); } }
%}
/////// aiPlane
// Done
/////// aiPostProcessSteps
%typemap(cscode) aiPostProcessSteps %{
, aiProcess_ConvertToLeftHanded = aiProcess_MakeLeftHanded|aiProcess_FlipUVs|aiProcess_FlipWindingOrder,
%}
/////// aiQuaternion
// Done
/////// aiQuatKey
// Done
/////// aiRay
// Done
/////// aiScene
ASSIMP_POINTER_POINTER(aiScene,aiAnimation,mAnimations,$self->mNumAnimations);
ASSIMP_POINTER_POINTER(aiScene,aiCamera,mCameras,$self->mNumCameras);
ASSIMP_POINTER_POINTER(aiScene,aiLight,mLights,$self->mNumLights);
ASSIMP_POINTER_POINTER(aiScene,aiMaterial,mMaterials,$self->mNumMaterials);
ASSIMP_POINTER_POINTER(aiScene,aiMesh,mMeshes,$self->mNumMeshes);
ASSIMP_POINTER_POINTER(aiScene,aiTexture,mTextures,$self->mNumTextures);
%typemap(cscode) aiScene %{
public aiAnimationVector mAnimations { get { return GetmAnimations(); } }
public aiCameraVector mCameras { get { return GetmCameras(); } }
public aiLightVector mLights { get { return GetmLights(); } }
public aiMaterialVector mMaterials { get { return GetmMaterials(); } }
public aiMeshVector mMeshes { get { return GetmMeshes(); } }
public aiTextureVector mTextures { get { return GetmTextures(); } }
%}
/////// aiString
%ignore aiString::Append;
%ignore aiString::Clear;
%ignore aiString::Set;
%rename(Data) aiString::data;
%rename(Length) aiString::length;
%typemap(cscode) aiString %{
public override string ToString() { return Data; }
%}
/////// aiTexel
// Done
/////// TODO: aiTexture
%ignore aiString::achFormatHint;
%ignore aiString::pcData;
/////// aiUVTransform
// Done
/////// aiVector2D
// Done
/////// aiVector3D
// Done
/////// aiVectorKey
// Done
/////// aiVertexWeight
// Done
/////// Assimp::*
%ignore Assimp::IOStream;
%ignore Assimp::IOSystem;
%ignore Assimp::Importer::ApplyPostProcessing;
%ignore Assimp::Importer::FindLoader;
%ignore Assimp::Importer::GetIOHandler;
%ignore Assimp::Importer::GetExtensionList(std::string&);
%ignore Assimp::Importer::GetExtensionList(aiString&);
%ignore Assimp::Importer::ReadFileFromMemory;
%ignore Assimp::Importer::RegisterLoader;
%ignore Assimp::Importer::RegisterPPStep;
%ignore Assimp::Importer::SetIOHandler;
%ignore Assimp::Importer::SetPropertyInteger;
%ignore Assimp::Importer::SetPropertyFloat;
%ignore Assimp::Importer::SetPropertyString;
%ignore Assimp::Importer::UnregisterLoader;
%ignore Assimp::Importer::UnregisterPPStep;
%extend Assimp::Importer {
std::string GetExtensionList() {
std::string tmp;
$self->GetExtensionList(tmp);
return tmp;
}
}
%typemap(cstype) unsigned int pFlags "aiPostProcessSteps";
%typemap(csin) unsigned int pFlags "(uint)$csinput"
%typemap(csvarout) unsigned int pFlags %{ get { return (aiPostProcessSteps)$imcall; } %}
%ignore Assimp::Logger;
%ignore Assimp::NullLogger;
/////// Globals
%ignore ::aiImportFileEx;
%ignore ::aiImportFileEx;
%ignore ::aiGetMaterialProperty;
%ignore ::aiGetMaterialFloatArray;
%ignore ::aiGetMaterialFloat;
%ignore ::aiGetMaterialIntegerArray;
%ignore ::aiGetMaterialInteger;
%ignore ::aiGetMaterialColor;
%ignore ::aiGetMaterialString;
%ignore ::aiGetMaterialTextureCount;
%ignore ::aiGetMaterialTexture;
//%include "..\..\..\include\aiAssert.h"
%include "..\..\..\include\aiDefines.h" %include "..\..\..\include\aiDefines.h"
%include "..\..\..\include\aiConfig.h" %include "..\..\..\include\aiConfig.h"
%include "..\..\..\include\aiTypes.h" %include "..\..\..\include\aiTypes.h"
//%include "..\..\..\include\aiVersion.h" %include "..\..\..\include\aiVersion.h"
%include "..\..\..\include\aiPostProcess.h" %include "..\..\..\include\aiPostProcess.h"
%include "..\..\..\include\aiVector2D.h" %include "..\..\..\include\aiVector2D.h"
%include "..\..\..\include\aiVector3D.h" %include "..\..\..\include\aiVector3D.h"
%include "..\..\..\include\aiColor4D.h"
%include "..\..\..\include\aiMatrix3x3.h" %include "..\..\..\include\aiMatrix3x3.h"
%include "..\..\..\include\aiMatrix4x4.h" %include "..\..\..\include\aiMatrix4x4.h"
%include "..\..\..\include\aiCamera.h" %include "..\..\..\include\aiCamera.h"
@ -162,25 +522,32 @@
%include "..\..\..\include\aiScene.h" %include "..\..\..\include\aiScene.h"
%include "..\..\..\include\aiTexture.h" %include "..\..\..\include\aiTexture.h"
%include "..\..\..\include\assimp.hpp" %include "..\..\..\include\assimp.hpp"
%include "..\..\..\include\IOSystem.h" //%include "..\..\..\include\IOSystem.h"
%include "..\..\..\include\IOStream.h" //%include "..\..\..\include\IOStream.h"
%include "..\..\..\include\Logger.h" //%include "..\..\..\include\Logger.h"
%include "..\..\..\include\LogStream.h" //%include "..\..\..\include\LogStream.h"
%include "..\..\..\include\NullLogger.h" //%include "..\..\..\include\NullLogger.h"
%template(FloatVector) std::vector<float>;
%template(UintVector) std::vector<unsigned int>; %template(UintVector) std::vector<unsigned int>;
%template(aiAnimationVector) std::vector<aiAnimation *>; %template(aiAnimationVector) std::vector<aiAnimation *>;
%template(aiAnimMeshVector) std::vector<aiAnimMesh *>;
%template(aiBoneVector) std::vector<aiBone *>;
%template(aiCameraVector) std::vector<aiCamera *>; %template(aiCameraVector) std::vector<aiCamera *>;
%template(aiColor4DVector) std::vector<aiColor4D *>;
%template(aiColor4DVectorVector) std::vector<std::vector<aiColor4D *> >; %template(aiColor4DVectorVector) std::vector<std::vector<aiColor4D *> >;
%template(aiColor4DVector) std::vector<aiColor4D *>;
%template(aiFaceVector) std::vector<aiFace *>; %template(aiFaceVector) std::vector<aiFace *>;
%template(aiLightVector) std::vector<aiLight *>; %template(aiLightVector) std::vector<aiLight *>;
%template(aiMaterialVector) std::vector<aiMaterial *>; %template(aiMaterialVector) std::vector<aiMaterial *>;
%template(aiMeshAnimVector) std::vector<aiMeshAnim *>;
%template(aiMeshKeyVector) std::vector<aiMeshKey *>;
%template(aiMeshVector) std::vector<aiMesh *>; %template(aiMeshVector) std::vector<aiMesh *>;
%template(aiNodeVector) std::vector<aiNode *>; %template(aiNodeVector) std::vector<aiNode *>;
%template(aiNodeAnimVector) std::vector<aiNodeAnim *>; %template(aiNodeAnimVector) std::vector<aiNodeAnim *>;
%template(aiQuatKeyVector) std::vector<aiQuatKey *>;
%template(aiTextureVector) std::vector<aiTexture *>; %template(aiTextureVector) std::vector<aiTexture *>;
%template(aiVector3DVector) std::vector<aiVector3D *>; %template(aiVector3DVector) std::vector<aiVector3D *>;
%template(aiVector3DVectorVector) std::vector<std::vector<aiVector3D *> >; %template(aiVector3DVectorVector) std::vector<std::vector<aiVector3D *> >;
%template(aiVectorKeyVector) std::vector<aiVectorKey *>;
%template(aiVertexWeightVector) std::vector<aiVertexWeight *>;

File diff suppressed because it is too large Load Diff

View File

@ -3,15 +3,17 @@
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.21022</ProductVersion> <ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion> <SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}</ProjectGuid> <ProjectGuid>{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}</ProjectGuid>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Assimp.NET_CS</RootNamespace> <RootNamespace>Assimp</RootNamespace>
<AssemblyName>Assimp.NET_CS</AssemblyName> <AssemblyName>Assimp.Interop</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion> <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<TargetFrameworkSubset>
</TargetFrameworkSubset>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
@ -31,6 +33,7 @@
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="Microsoft.DirectX, Version=1.0.2902.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core"> <Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework> <RequiredTargetFramework>3.5</RequiredTargetFramework>
@ -55,19 +58,20 @@
<Compile Include="aiAnimationVector.cs" /> <Compile Include="aiAnimationVector.cs" />
<Compile Include="aiAnimBehaviour.cs" /> <Compile Include="aiAnimBehaviour.cs" />
<Compile Include="aiAnimMesh.cs" /> <Compile Include="aiAnimMesh.cs" />
<Compile Include="aiAnimMeshVector.cs" />
<Compile Include="aiBlendMode.cs" /> <Compile Include="aiBlendMode.cs" />
<Compile Include="aiBone.cs" /> <Compile Include="aiBone.cs" />
<Compile Include="aiBoneVector.cs" />
<Compile Include="aiCamera.cs" /> <Compile Include="aiCamera.cs" />
<Compile Include="aiCameraVector.cs" /> <Compile Include="aiCameraVector.cs" />
<Compile Include="aiColor3D.cs" /> <Compile Include="aiColor3D.cs" />
<Compile Include="aiColor4D.cs" />
<Compile Include="aiColor4DVector.cs" /> <Compile Include="aiColor4DVector.cs" />
<Compile Include="aiColor4DVectorVector.cs" /> <Compile Include="aiColor4DVectorVector.cs" />
<Compile Include="aiComponent.cs" /> <Compile Include="aiComponent.cs" />
<Compile Include="aiDefaultLogStream.cs" /> <Compile Include="aiDefaultLogStream.cs" />
<Compile Include="aiFace.cs" /> <Compile Include="aiFace.cs" />
<Compile Include="aiFaceVector.cs" /> <Compile Include="aiFaceVector.cs" />
<Compile Include="aiFile.cs" />
<Compile Include="aiFileIO.cs" />
<Compile Include="aiLight.cs" /> <Compile Include="aiLight.cs" />
<Compile Include="aiLightSourceType.cs" /> <Compile Include="aiLightSourceType.cs" />
<Compile Include="aiLightVector.cs" /> <Compile Include="aiLightVector.cs" />
@ -79,7 +83,9 @@
<Compile Include="aiMemoryInfo.cs" /> <Compile Include="aiMemoryInfo.cs" />
<Compile Include="aiMesh.cs" /> <Compile Include="aiMesh.cs" />
<Compile Include="aiMeshAnim.cs" /> <Compile Include="aiMeshAnim.cs" />
<Compile Include="aiMeshAnimVector.cs" />
<Compile Include="aiMeshKey.cs" /> <Compile Include="aiMeshKey.cs" />
<Compile Include="aiMeshKeyVector.cs" />
<Compile Include="aiMeshVector.cs" /> <Compile Include="aiMeshVector.cs" />
<Compile Include="aiNode.cs" /> <Compile Include="aiNode.cs" />
<Compile Include="aiNodeAnim.cs" /> <Compile Include="aiNodeAnim.cs" />
@ -92,6 +98,7 @@
<Compile Include="aiPropertyTypeInfo.cs" /> <Compile Include="aiPropertyTypeInfo.cs" />
<Compile Include="aiQuaternion.cs" /> <Compile Include="aiQuaternion.cs" />
<Compile Include="aiQuatKey.cs" /> <Compile Include="aiQuatKey.cs" />
<Compile Include="aiQuatKeyVector.cs" />
<Compile Include="aiRay.cs" /> <Compile Include="aiRay.cs" />
<Compile Include="aiReturn.cs" /> <Compile Include="aiReturn.cs" />
<Compile Include="aiScene.cs" /> <Compile Include="aiScene.cs" />
@ -111,48 +118,13 @@
<Compile Include="aiVector3DVector.cs" /> <Compile Include="aiVector3DVector.cs" />
<Compile Include="aiVector3DVectorVector.cs" /> <Compile Include="aiVector3DVectorVector.cs" />
<Compile Include="aiVectorKey.cs" /> <Compile Include="aiVectorKey.cs" />
<Compile Include="aiVectorKeyVector.cs" />
<Compile Include="aiVertexWeight.cs" /> <Compile Include="aiVertexWeight.cs" />
<Compile Include="Assimp_NET.cs" /> <Compile Include="aiVertexWeightVector.cs" />
<Compile Include="Assimp_NETPINVOKE.cs" /> <Compile Include="Assimp.cs" />
<Compile Include="AssimpPINVOKE.cs" />
<Compile Include="FloatVector.cs" />
<Compile Include="Importer.cs" /> <Compile Include="Importer.cs" />
<Compile Include="IOStream.cs" />
<Compile Include="IOSystem.cs" />
<Compile Include="Logger.cs" />
<Compile Include="LogStream.cs" />
<Compile Include="NullLogger.cs" />
<Compile Include="SWIGTYPE_p_aiColor4D.cs" />
<Compile Include="SWIGTYPE_p_aiTextureMapMode.cs" />
<Compile Include="SWIGTYPE_p_aiTextureMapping.cs" />
<Compile Include="SWIGTYPE_p_aiTextureOp.cs" />
<Compile Include="SWIGTYPE_p_Assimp__BaseImporter.cs" />
<Compile Include="SWIGTYPE_p_Assimp__BaseProcess.cs" />
<Compile Include="SWIGTYPE_p_bool.cs" />
<Compile Include="SWIGTYPE_p_float.cs" />
<Compile Include="SWIGTYPE_p_f_p_aiFileIO_p_aiFile__void.cs" />
<Compile Include="SWIGTYPE_p_f_p_aiFileIO_p_q_const__char_p_q_const__char__p_aiFile.cs" />
<Compile Include="SWIGTYPE_p_f_p_aiFile_p_char_size_t_size_t__size_t.cs" />
<Compile Include="SWIGTYPE_p_f_p_aiFile_p_q_const__char_size_t_size_t__size_t.cs" />
<Compile Include="SWIGTYPE_p_f_p_aiFile_size_t_enum_aiOrigin__aiReturn.cs" />
<Compile Include="SWIGTYPE_p_f_p_aiFile__size_t.cs" />
<Compile Include="SWIGTYPE_p_f_p_aiFile__void.cs" />
<Compile Include="SWIGTYPE_p_int.cs" />
<Compile Include="SWIGTYPE_p_p_aiAnimation.cs" />
<Compile Include="SWIGTYPE_p_p_aiAnimMesh.cs" />
<Compile Include="SWIGTYPE_p_p_aiBone.cs" />
<Compile Include="SWIGTYPE_p_p_aiCamera.cs" />
<Compile Include="SWIGTYPE_p_p_aiColor4D.cs" />
<Compile Include="SWIGTYPE_p_p_aiLight.cs" />
<Compile Include="SWIGTYPE_p_p_aiMaterial.cs" />
<Compile Include="SWIGTYPE_p_p_aiMaterialProperty.cs" />
<Compile Include="SWIGTYPE_p_p_aiMesh.cs" />
<Compile Include="SWIGTYPE_p_p_aiMeshAnim.cs" />
<Compile Include="SWIGTYPE_p_p_aiNode.cs" />
<Compile Include="SWIGTYPE_p_p_aiNodeAnim.cs" />
<Compile Include="SWIGTYPE_p_p_aiTexture.cs" />
<Compile Include="SWIGTYPE_p_p_aiVector3D.cs" />
<Compile Include="SWIGTYPE_p_std__string.cs" />
<Compile Include="SWIGTYPE_p_unsigned_int.cs" />
<Compile Include="SWIGTYPE_p_void.cs" />
<Compile Include="UintVector.cs" /> <Compile Include="UintVector.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@ -0,0 +1,177 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.0
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class Assimp {
public static uint MAXLEN {
get {
uint ret = AssimpPINVOKE.MAXLEN_get();
return ret;
}
}
public static string aiGetLegalString() {
string ret = AssimpPINVOKE.aiGetLegalString();
return ret;
}
public static uint aiGetVersionMinor() {
uint ret = AssimpPINVOKE.aiGetVersionMinor();
return ret;
}
public static uint aiGetVersionMajor() {
uint ret = AssimpPINVOKE.aiGetVersionMajor();
return ret;
}
public static uint aiGetVersionRevision() {
uint ret = AssimpPINVOKE.aiGetVersionRevision();
return ret;
}
public static uint aiGetCompileFlags() {
uint ret = AssimpPINVOKE.aiGetCompileFlags();
return ret;
}
public static aiVector2D __add__(aiVector2D v1, aiVector2D v2) {
aiVector2D ret = new aiVector2D(AssimpPINVOKE.__add__(aiVector2D.getCPtr(v1), aiVector2D.getCPtr(v2)), true);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public static aiVector2D __sub__(aiVector2D v1, aiVector2D v2) {
aiVector2D ret = new aiVector2D(AssimpPINVOKE.__sub____SWIG_0(aiVector2D.getCPtr(v1), aiVector2D.getCPtr(v2)), true);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public static float __mul__(aiVector2D v1, aiVector2D v2) {
float ret = AssimpPINVOKE.__mul____SWIG_0(aiVector2D.getCPtr(v1), aiVector2D.getCPtr(v2));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public static aiVector2D __mul__(float f, aiVector2D v) {
aiVector2D ret = new aiVector2D(AssimpPINVOKE.__mul____SWIG_1(f, aiVector2D.getCPtr(v)), true);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public static aiVector2D __mul__(aiVector2D v, float f) {
aiVector2D ret = new aiVector2D(AssimpPINVOKE.__mul____SWIG_2(aiVector2D.getCPtr(v), f), true);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public static aiVector2D __div__(aiVector2D v, float f) {
aiVector2D ret = new aiVector2D(AssimpPINVOKE.__div____SWIG_0(aiVector2D.getCPtr(v), f), true);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public static aiVector2D __div__(aiVector2D v, aiVector2D v2) {
aiVector2D ret = new aiVector2D(AssimpPINVOKE.__div____SWIG_1(aiVector2D.getCPtr(v), aiVector2D.getCPtr(v2)), true);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public static aiVector2D __sub__(aiVector2D v) {
aiVector2D ret = new aiVector2D(AssimpPINVOKE.__sub____SWIG_1(aiVector2D.getCPtr(v)), true);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public static aiScene aiImportFileFromMemory(string arg0, uint arg1, uint arg2, string arg3) {
IntPtr cPtr = AssimpPINVOKE.aiImportFileFromMemory(arg0, arg1, arg2, arg3);
aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false);
return ret;
}
public static readonly double AI_MATH_PI = AssimpPINVOKE.AI_MATH_PI_get();
public static readonly double AI_MATH_TWO_PI = AssimpPINVOKE.AI_MATH_TWO_PI_get();
public static readonly double AI_MATH_HALF_PI = AssimpPINVOKE.AI_MATH_HALF_PI_get();
public static readonly double AI_MATH_PI_F = AssimpPINVOKE.AI_MATH_PI_F_get();
public static readonly double AI_MATH_TWO_PI_F = AssimpPINVOKE.AI_MATH_TWO_PI_F_get();
public static readonly double AI_MATH_HALF_PI_F = AssimpPINVOKE.AI_MATH_HALF_PI_F_get();
public static readonly string AI_CONFIG_PP_CT_MAX_SMOOTHING_ANGLE = AssimpPINVOKE.AI_CONFIG_PP_CT_MAX_SMOOTHING_ANGLE_get();
public static readonly string AI_CONFIG_PP_GSN_MAX_SMOOTHING_ANGLE = AssimpPINVOKE.AI_CONFIG_PP_GSN_MAX_SMOOTHING_ANGLE_get();
public static readonly string AI_CONFIG_IMPORT_MDL_COLORMAP = AssimpPINVOKE.AI_CONFIG_IMPORT_MDL_COLORMAP_get();
public static readonly string AI_CONFIG_PP_RRM_EXCLUDE_LIST = AssimpPINVOKE.AI_CONFIG_PP_RRM_EXCLUDE_LIST_get();
public static readonly string AI_CONFIG_PP_PTV_KEEP_HIERARCHY = AssimpPINVOKE.AI_CONFIG_PP_PTV_KEEP_HIERARCHY_get();
public static readonly string AI_CONFIG_PP_PTV_NORMALIZE = AssimpPINVOKE.AI_CONFIG_PP_PTV_NORMALIZE_get();
public static readonly string AI_CONFIG_PP_FD_REMOVE = AssimpPINVOKE.AI_CONFIG_PP_FD_REMOVE_get();
public static readonly string AI_CONFIG_PP_OG_EXCLUDE_LIST = AssimpPINVOKE.AI_CONFIG_PP_OG_EXCLUDE_LIST_get();
public static readonly string AI_CONFIG_PP_SLM_TRIANGLE_LIMIT = AssimpPINVOKE.AI_CONFIG_PP_SLM_TRIANGLE_LIMIT_get();
public static readonly int AI_SLM_DEFAULT_MAX_TRIANGLES = AssimpPINVOKE.AI_SLM_DEFAULT_MAX_TRIANGLES_get();
public static readonly string AI_CONFIG_PP_SLM_VERTEX_LIMIT = AssimpPINVOKE.AI_CONFIG_PP_SLM_VERTEX_LIMIT_get();
public static readonly int AI_SLM_DEFAULT_MAX_VERTICES = AssimpPINVOKE.AI_SLM_DEFAULT_MAX_VERTICES_get();
public static readonly string AI_CONFIG_PP_LBW_MAX_WEIGHTS = AssimpPINVOKE.AI_CONFIG_PP_LBW_MAX_WEIGHTS_get();
public static readonly int AI_LMW_MAX_WEIGHTS = AssimpPINVOKE.AI_LMW_MAX_WEIGHTS_get();
public static readonly int PP_ICL_PTCACHE_SIZE = AssimpPINVOKE.PP_ICL_PTCACHE_SIZE_get();
public static readonly string AI_CONFIG_PP_ICL_PTCACHE_SIZE = AssimpPINVOKE.AI_CONFIG_PP_ICL_PTCACHE_SIZE_get();
public static readonly string AI_CONFIG_PP_RVC_FLAGS = AssimpPINVOKE.AI_CONFIG_PP_RVC_FLAGS_get();
public static readonly string AI_CONFIG_PP_SBP_REMOVE = AssimpPINVOKE.AI_CONFIG_PP_SBP_REMOVE_get();
public static readonly string AI_CONFIG_PP_FID_ANIM_ACCURACY = AssimpPINVOKE.AI_CONFIG_PP_FID_ANIM_ACCURACY_get();
public static readonly int AI_UVTRAFO_SCALING = AssimpPINVOKE.AI_UVTRAFO_SCALING_get();
public static readonly int AI_UVTRAFO_ROTATION = AssimpPINVOKE.AI_UVTRAFO_ROTATION_get();
public static readonly int AI_UVTRAFO_TRANSLATION = AssimpPINVOKE.AI_UVTRAFO_TRANSLATION_get();
public static readonly int AI_UVTRAFO_ALL = AssimpPINVOKE.AI_UVTRAFO_ALL_get();
public static readonly string AI_CONFIG_PP_TUV_EVALUATE = AssimpPINVOKE.AI_CONFIG_PP_TUV_EVALUATE_get();
public static readonly string AI_CONFIG_FAVOUR_SPEED = AssimpPINVOKE.AI_CONFIG_FAVOUR_SPEED_get();
public static readonly string AI_CONFIG_IMPORT_GLOBAL_KEYFRAME = AssimpPINVOKE.AI_CONFIG_IMPORT_GLOBAL_KEYFRAME_get();
public static readonly string AI_CONFIG_IMPORT_MD3_KEYFRAME = AssimpPINVOKE.AI_CONFIG_IMPORT_MD3_KEYFRAME_get();
public static readonly string AI_CONFIG_IMPORT_MD2_KEYFRAME = AssimpPINVOKE.AI_CONFIG_IMPORT_MD2_KEYFRAME_get();
public static readonly string AI_CONFIG_IMPORT_MDL_KEYFRAME = AssimpPINVOKE.AI_CONFIG_IMPORT_MDL_KEYFRAME_get();
public static readonly string AI_CONFIG_IMPORT_MDC_KEYFRAME = AssimpPINVOKE.AI_CONFIG_IMPORT_MDC_KEYFRAME_get();
public static readonly string AI_CONFIG_IMPORT_SMD_KEYFRAME = AssimpPINVOKE.AI_CONFIG_IMPORT_SMD_KEYFRAME_get();
public static readonly string AI_CONFIG_IMPORT_UNREAL_KEYFRAME = AssimpPINVOKE.AI_CONFIG_IMPORT_UNREAL_KEYFRAME_get();
public static readonly string AI_CONFIG_IMPORT_AC_SEPARATE_BFCULL = AssimpPINVOKE.AI_CONFIG_IMPORT_AC_SEPARATE_BFCULL_get();
public static readonly string AI_CONFIG_IMPORT_AC_EVAL_SUBDIVISION = AssimpPINVOKE.AI_CONFIG_IMPORT_AC_EVAL_SUBDIVISION_get();
public static readonly string AI_CONFIG_IMPORT_UNREAL_HANDLE_FLAGS = AssimpPINVOKE.AI_CONFIG_IMPORT_UNREAL_HANDLE_FLAGS_get();
public static readonly string AI_CONFIG_IMPORT_TER_MAKE_UVS = AssimpPINVOKE.AI_CONFIG_IMPORT_TER_MAKE_UVS_get();
public static readonly string AI_CONFIG_IMPORT_ASE_RECONSTRUCT_NORMALS = AssimpPINVOKE.AI_CONFIG_IMPORT_ASE_RECONSTRUCT_NORMALS_get();
public static readonly string AI_CONFIG_IMPORT_MD3_HANDLE_MULTIPART = AssimpPINVOKE.AI_CONFIG_IMPORT_MD3_HANDLE_MULTIPART_get();
public static readonly string AI_CONFIG_IMPORT_MD3_SKIN_NAME = AssimpPINVOKE.AI_CONFIG_IMPORT_MD3_SKIN_NAME_get();
public static readonly string AI_CONFIG_IMPORT_MD3_SHADER_SRC = AssimpPINVOKE.AI_CONFIG_IMPORT_MD3_SHADER_SRC_get();
public static readonly string AI_CONFIG_IMPORT_LWO_ONE_LAYER_ONLY = AssimpPINVOKE.AI_CONFIG_IMPORT_LWO_ONE_LAYER_ONLY_get();
public static readonly string AI_CONFIG_IMPORT_MD5_NO_ANIM_AUTOLOAD = AssimpPINVOKE.AI_CONFIG_IMPORT_MD5_NO_ANIM_AUTOLOAD_get();
public static readonly string AI_CONFIG_IMPORT_LWS_ANIM_START = AssimpPINVOKE.AI_CONFIG_IMPORT_LWS_ANIM_START_get();
public static readonly string AI_CONFIG_IMPORT_LWS_ANIM_END = AssimpPINVOKE.AI_CONFIG_IMPORT_LWS_ANIM_END_get();
public static readonly string AI_CONFIG_IMPORT_IRR_ANIM_FPS = AssimpPINVOKE.AI_CONFIG_IMPORT_IRR_ANIM_FPS_get();
public static readonly string AI_CONFIG_IMPORT_OGRE_MATERIAL_FILE = AssimpPINVOKE.AI_CONFIG_IMPORT_OGRE_MATERIAL_FILE_get();
public static readonly int ASSIMP_CFLAGS_SHARED = AssimpPINVOKE.ASSIMP_CFLAGS_SHARED_get();
public static readonly int ASSIMP_CFLAGS_STLPORT = AssimpPINVOKE.ASSIMP_CFLAGS_STLPORT_get();
public static readonly int ASSIMP_CFLAGS_DEBUG = AssimpPINVOKE.ASSIMP_CFLAGS_DEBUG_get();
public static readonly int ASSIMP_CFLAGS_NOBOOST = AssimpPINVOKE.ASSIMP_CFLAGS_NOBOOST_get();
public static readonly int ASSIMP_CFLAGS_SINGLETHREADED = AssimpPINVOKE.ASSIMP_CFLAGS_SINGLETHREADED_get();
public static readonly int AI_MAX_NUMBER_OF_COLOR_SETS = AssimpPINVOKE.AI_MAX_NUMBER_OF_COLOR_SETS_get();
public static readonly int AI_MAX_NUMBER_OF_TEXTURECOORDS = AssimpPINVOKE.AI_MAX_NUMBER_OF_TEXTURECOORDS_get();
public static readonly string AI_DEFAULT_MATERIAL_NAME = AssimpPINVOKE.AI_DEFAULT_MATERIAL_NAME_get();
public static readonly string AI_DEFAULT_TEXTURED_MATERIAL_NAME = AssimpPINVOKE.AI_DEFAULT_TEXTURED_MATERIAL_NAME_get();
public static readonly string _AI_MATKEY_TEXTURE_BASE = AssimpPINVOKE._AI_MATKEY_TEXTURE_BASE_get();
public static readonly string _AI_MATKEY_UVWSRC_BASE = AssimpPINVOKE._AI_MATKEY_UVWSRC_BASE_get();
public static readonly string _AI_MATKEY_TEXOP_BASE = AssimpPINVOKE._AI_MATKEY_TEXOP_BASE_get();
public static readonly string _AI_MATKEY_MAPPING_BASE = AssimpPINVOKE._AI_MATKEY_MAPPING_BASE_get();
public static readonly string _AI_MATKEY_TEXBLEND_BASE = AssimpPINVOKE._AI_MATKEY_TEXBLEND_BASE_get();
public static readonly string _AI_MATKEY_MAPPINGMODE_U_BASE = AssimpPINVOKE._AI_MATKEY_MAPPINGMODE_U_BASE_get();
public static readonly string _AI_MATKEY_MAPPINGMODE_V_BASE = AssimpPINVOKE._AI_MATKEY_MAPPINGMODE_V_BASE_get();
public static readonly string _AI_MATKEY_TEXMAP_AXIS_BASE = AssimpPINVOKE._AI_MATKEY_TEXMAP_AXIS_BASE_get();
public static readonly string _AI_MATKEY_UVTRANSFORM_BASE = AssimpPINVOKE._AI_MATKEY_UVTRANSFORM_BASE_get();
public static readonly string _AI_MATKEY_TEXFLAGS_BASE = AssimpPINVOKE._AI_MATKEY_TEXFLAGS_BASE_get();
public static readonly int AI_SCENE_FLAGS_INCOMPLETE = AssimpPINVOKE.AI_SCENE_FLAGS_INCOMPLETE_get();
public static readonly int AI_SCENE_FLAGS_VALIDATED = AssimpPINVOKE.AI_SCENE_FLAGS_VALIDATED_get();
public static readonly int AI_SCENE_FLAGS_VALIDATION_WARNING = AssimpPINVOKE.AI_SCENE_FLAGS_VALIDATION_WARNING_get();
public static readonly int AI_SCENE_FLAGS_NON_VERBOSE_FORMAT = AssimpPINVOKE.AI_SCENE_FLAGS_NON_VERBOSE_FORMAT_get();
public static readonly int AI_SCENE_FLAGS_TERRAIN = AssimpPINVOKE.AI_SCENE_FLAGS_TERRAIN_get();
public static readonly int AI_PROPERTY_WAS_NOT_EXISTING = AssimpPINVOKE.AI_PROPERTY_WAS_NOT_EXISTING_get();
}

File diff suppressed because it is too large Load Diff

View File

@ -1,199 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class Assimp_NET {
public static uint MAXLEN {
get {
uint ret = Assimp_NETPINVOKE.MAXLEN_get();
return ret;
}
}
public static aiVector2D __add__(aiVector2D v1, aiVector2D v2) {
aiVector2D ret = new aiVector2D(Assimp_NETPINVOKE.__add__(aiVector2D.getCPtr(v1), aiVector2D.getCPtr(v2)), true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public static aiVector2D __sub__(aiVector2D v1, aiVector2D v2) {
aiVector2D ret = new aiVector2D(Assimp_NETPINVOKE.__sub____SWIG_0(aiVector2D.getCPtr(v1), aiVector2D.getCPtr(v2)), true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public static float __mul__(aiVector2D v1, aiVector2D v2) {
float ret = Assimp_NETPINVOKE.__mul____SWIG_0(aiVector2D.getCPtr(v1), aiVector2D.getCPtr(v2));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public static aiVector2D __mul__(float f, aiVector2D v) {
aiVector2D ret = new aiVector2D(Assimp_NETPINVOKE.__mul____SWIG_1(f, aiVector2D.getCPtr(v)), true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public static aiVector2D __mul__(aiVector2D v, float f) {
aiVector2D ret = new aiVector2D(Assimp_NETPINVOKE.__mul____SWIG_2(aiVector2D.getCPtr(v), f), true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public static aiVector2D __div__(aiVector2D v, float f) {
aiVector2D ret = new aiVector2D(Assimp_NETPINVOKE.__div____SWIG_0(aiVector2D.getCPtr(v), f), true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public static aiVector2D __div__(aiVector2D v, aiVector2D v2) {
aiVector2D ret = new aiVector2D(Assimp_NETPINVOKE.__div____SWIG_1(aiVector2D.getCPtr(v), aiVector2D.getCPtr(v2)), true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public static aiVector2D __sub__(aiVector2D v) {
aiVector2D ret = new aiVector2D(Assimp_NETPINVOKE.__sub____SWIG_1(aiVector2D.getCPtr(v)), true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public static aiReturn aiGetMaterialProperty(aiMaterial pMat, string pKey, uint type, uint index, SWIGTYPE_p_p_aiMaterialProperty pPropOut) {
aiReturn ret = (aiReturn)Assimp_NETPINVOKE.aiGetMaterialProperty(aiMaterial.getCPtr(pMat), pKey, type, index, SWIGTYPE_p_p_aiMaterialProperty.getCPtr(pPropOut));
return ret;
}
public static aiReturn aiGetMaterialFloatArray(aiMaterial pMat, string pKey, uint type, uint index, SWIGTYPE_p_float pOut, SWIGTYPE_p_unsigned_int pMax) {
aiReturn ret = (aiReturn)Assimp_NETPINVOKE.aiGetMaterialFloatArray(aiMaterial.getCPtr(pMat), pKey, type, index, SWIGTYPE_p_float.getCPtr(pOut), SWIGTYPE_p_unsigned_int.getCPtr(pMax));
return ret;
}
public static aiReturn aiGetMaterialFloat(aiMaterial pMat, string pKey, uint type, uint index, SWIGTYPE_p_float pOut) {
aiReturn ret = (aiReturn)Assimp_NETPINVOKE.aiGetMaterialFloat(aiMaterial.getCPtr(pMat), pKey, type, index, SWIGTYPE_p_float.getCPtr(pOut));
return ret;
}
public static aiReturn aiGetMaterialIntegerArray(aiMaterial pMat, string pKey, uint type, uint index, SWIGTYPE_p_int pOut, SWIGTYPE_p_unsigned_int pMax) {
aiReturn ret = (aiReturn)Assimp_NETPINVOKE.aiGetMaterialIntegerArray(aiMaterial.getCPtr(pMat), pKey, type, index, SWIGTYPE_p_int.getCPtr(pOut), SWIGTYPE_p_unsigned_int.getCPtr(pMax));
return ret;
}
public static aiReturn aiGetMaterialInteger(aiMaterial pMat, string pKey, uint type, uint index, SWIGTYPE_p_int pOut) {
aiReturn ret = (aiReturn)Assimp_NETPINVOKE.aiGetMaterialInteger(aiMaterial.getCPtr(pMat), pKey, type, index, SWIGTYPE_p_int.getCPtr(pOut));
return ret;
}
public static aiReturn aiGetMaterialColor(aiMaterial pMat, string pKey, uint type, uint index, SWIGTYPE_p_aiColor4D pOut) {
aiReturn ret = (aiReturn)Assimp_NETPINVOKE.aiGetMaterialColor(aiMaterial.getCPtr(pMat), pKey, type, index, SWIGTYPE_p_aiColor4D.getCPtr(pOut));
return ret;
}
public static aiReturn aiGetMaterialString(aiMaterial pMat, string pKey, uint type, uint index, aiString pOut) {
aiReturn ret = (aiReturn)Assimp_NETPINVOKE.aiGetMaterialString(aiMaterial.getCPtr(pMat), pKey, type, index, aiString.getCPtr(pOut));
return ret;
}
public static uint aiGetMaterialTextureCount(aiMaterial pMat, aiTextureType type) {
uint ret = Assimp_NETPINVOKE.aiGetMaterialTextureCount(aiMaterial.getCPtr(pMat), (int)type);
return ret;
}
public static aiReturn aiGetMaterialTexture(aiMaterial mat, aiTextureType type, uint index, aiString path, SWIGTYPE_p_aiTextureMapping mapping, SWIGTYPE_p_unsigned_int uvindex, SWIGTYPE_p_float blend, SWIGTYPE_p_aiTextureOp op, SWIGTYPE_p_aiTextureMapMode mapmode, SWIGTYPE_p_unsigned_int flags) {
aiReturn ret = (aiReturn)Assimp_NETPINVOKE.aiGetMaterialTexture(aiMaterial.getCPtr(mat), (int)type, index, aiString.getCPtr(path), SWIGTYPE_p_aiTextureMapping.getCPtr(mapping), SWIGTYPE_p_unsigned_int.getCPtr(uvindex), SWIGTYPE_p_float.getCPtr(blend), SWIGTYPE_p_aiTextureOp.getCPtr(op), SWIGTYPE_p_aiTextureMapMode.getCPtr(mapmode), SWIGTYPE_p_unsigned_int.getCPtr(flags));
return ret;
}
public static aiScene aiImportFileEx(string arg0, uint arg1, aiFileIO arg2) {
IntPtr cPtr = Assimp_NETPINVOKE.aiImportFileEx(arg0, arg1, aiFileIO.getCPtr(arg2));
aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false);
return ret;
}
public static aiScene aiImportFileFromMemory(string arg0, uint arg1, uint arg2, string arg3) {
IntPtr cPtr = Assimp_NETPINVOKE.aiImportFileFromMemory(arg0, arg1, arg2, arg3);
aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false);
return ret;
}
public static readonly double AI_MATH_PI = Assimp_NETPINVOKE.AI_MATH_PI_get();
public static readonly double AI_MATH_TWO_PI = Assimp_NETPINVOKE.AI_MATH_TWO_PI_get();
public static readonly double AI_MATH_HALF_PI = Assimp_NETPINVOKE.AI_MATH_HALF_PI_get();
public static readonly double AI_MATH_PI_F = Assimp_NETPINVOKE.AI_MATH_PI_F_get();
public static readonly double AI_MATH_TWO_PI_F = Assimp_NETPINVOKE.AI_MATH_TWO_PI_F_get();
public static readonly double AI_MATH_HALF_PI_F = Assimp_NETPINVOKE.AI_MATH_HALF_PI_F_get();
public static readonly string AI_CONFIG_PP_CT_MAX_SMOOTHING_ANGLE = Assimp_NETPINVOKE.AI_CONFIG_PP_CT_MAX_SMOOTHING_ANGLE_get();
public static readonly string AI_CONFIG_PP_GSN_MAX_SMOOTHING_ANGLE = Assimp_NETPINVOKE.AI_CONFIG_PP_GSN_MAX_SMOOTHING_ANGLE_get();
public static readonly string AI_CONFIG_IMPORT_MDL_COLORMAP = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_MDL_COLORMAP_get();
public static readonly string AI_CONFIG_PP_RRM_EXCLUDE_LIST = Assimp_NETPINVOKE.AI_CONFIG_PP_RRM_EXCLUDE_LIST_get();
public static readonly string AI_CONFIG_PP_PTV_KEEP_HIERARCHY = Assimp_NETPINVOKE.AI_CONFIG_PP_PTV_KEEP_HIERARCHY_get();
public static readonly string AI_CONFIG_PP_PTV_NORMALIZE = Assimp_NETPINVOKE.AI_CONFIG_PP_PTV_NORMALIZE_get();
public static readonly string AI_CONFIG_PP_FD_REMOVE = Assimp_NETPINVOKE.AI_CONFIG_PP_FD_REMOVE_get();
public static readonly string AI_CONFIG_PP_OG_EXCLUDE_LIST = Assimp_NETPINVOKE.AI_CONFIG_PP_OG_EXCLUDE_LIST_get();
public static readonly string AI_CONFIG_PP_SLM_TRIANGLE_LIMIT = Assimp_NETPINVOKE.AI_CONFIG_PP_SLM_TRIANGLE_LIMIT_get();
public static readonly int AI_SLM_DEFAULT_MAX_TRIANGLES = Assimp_NETPINVOKE.AI_SLM_DEFAULT_MAX_TRIANGLES_get();
public static readonly string AI_CONFIG_PP_SLM_VERTEX_LIMIT = Assimp_NETPINVOKE.AI_CONFIG_PP_SLM_VERTEX_LIMIT_get();
public static readonly int AI_SLM_DEFAULT_MAX_VERTICES = Assimp_NETPINVOKE.AI_SLM_DEFAULT_MAX_VERTICES_get();
public static readonly string AI_CONFIG_PP_LBW_MAX_WEIGHTS = Assimp_NETPINVOKE.AI_CONFIG_PP_LBW_MAX_WEIGHTS_get();
public static readonly int AI_LMW_MAX_WEIGHTS = Assimp_NETPINVOKE.AI_LMW_MAX_WEIGHTS_get();
public static readonly int PP_ICL_PTCACHE_SIZE = Assimp_NETPINVOKE.PP_ICL_PTCACHE_SIZE_get();
public static readonly string AI_CONFIG_PP_ICL_PTCACHE_SIZE = Assimp_NETPINVOKE.AI_CONFIG_PP_ICL_PTCACHE_SIZE_get();
public static readonly string AI_CONFIG_PP_RVC_FLAGS = Assimp_NETPINVOKE.AI_CONFIG_PP_RVC_FLAGS_get();
public static readonly string AI_CONFIG_PP_SBP_REMOVE = Assimp_NETPINVOKE.AI_CONFIG_PP_SBP_REMOVE_get();
public static readonly string AI_CONFIG_PP_FID_ANIM_ACCURACY = Assimp_NETPINVOKE.AI_CONFIG_PP_FID_ANIM_ACCURACY_get();
public static readonly int AI_UVTRAFO_SCALING = Assimp_NETPINVOKE.AI_UVTRAFO_SCALING_get();
public static readonly int AI_UVTRAFO_ROTATION = Assimp_NETPINVOKE.AI_UVTRAFO_ROTATION_get();
public static readonly int AI_UVTRAFO_TRANSLATION = Assimp_NETPINVOKE.AI_UVTRAFO_TRANSLATION_get();
public static readonly int AI_UVTRAFO_ALL = Assimp_NETPINVOKE.AI_UVTRAFO_ALL_get();
public static readonly string AI_CONFIG_PP_TUV_EVALUATE = Assimp_NETPINVOKE.AI_CONFIG_PP_TUV_EVALUATE_get();
public static readonly string AI_CONFIG_FAVOUR_SPEED = Assimp_NETPINVOKE.AI_CONFIG_FAVOUR_SPEED_get();
public static readonly string AI_CONFIG_IMPORT_GLOBAL_KEYFRAME = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_GLOBAL_KEYFRAME_get();
public static readonly string AI_CONFIG_IMPORT_MD3_KEYFRAME = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_MD3_KEYFRAME_get();
public static readonly string AI_CONFIG_IMPORT_MD2_KEYFRAME = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_MD2_KEYFRAME_get();
public static readonly string AI_CONFIG_IMPORT_MDL_KEYFRAME = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_MDL_KEYFRAME_get();
public static readonly string AI_CONFIG_IMPORT_MDC_KEYFRAME = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_MDC_KEYFRAME_get();
public static readonly string AI_CONFIG_IMPORT_SMD_KEYFRAME = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_SMD_KEYFRAME_get();
public static readonly string AI_CONFIG_IMPORT_UNREAL_KEYFRAME = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_UNREAL_KEYFRAME_get();
public static readonly string AI_CONFIG_IMPORT_AC_SEPARATE_BFCULL = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_AC_SEPARATE_BFCULL_get();
public static readonly string AI_CONFIG_IMPORT_AC_EVAL_SUBDIVISION = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_AC_EVAL_SUBDIVISION_get();
public static readonly string AI_CONFIG_IMPORT_UNREAL_HANDLE_FLAGS = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_UNREAL_HANDLE_FLAGS_get();
public static readonly string AI_CONFIG_IMPORT_TER_MAKE_UVS = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_TER_MAKE_UVS_get();
public static readonly string AI_CONFIG_IMPORT_ASE_RECONSTRUCT_NORMALS = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_ASE_RECONSTRUCT_NORMALS_get();
public static readonly string AI_CONFIG_IMPORT_MD3_HANDLE_MULTIPART = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_MD3_HANDLE_MULTIPART_get();
public static readonly string AI_CONFIG_IMPORT_MD3_SKIN_NAME = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_MD3_SKIN_NAME_get();
public static readonly string AI_CONFIG_IMPORT_MD3_SHADER_SRC = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_MD3_SHADER_SRC_get();
public static readonly string AI_CONFIG_IMPORT_LWO_ONE_LAYER_ONLY = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_LWO_ONE_LAYER_ONLY_get();
public static readonly string AI_CONFIG_IMPORT_MD5_NO_ANIM_AUTOLOAD = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_MD5_NO_ANIM_AUTOLOAD_get();
public static readonly string AI_CONFIG_IMPORT_LWS_ANIM_START = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_LWS_ANIM_START_get();
public static readonly string AI_CONFIG_IMPORT_LWS_ANIM_END = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_LWS_ANIM_END_get();
public static readonly string AI_CONFIG_IMPORT_IRR_ANIM_FPS = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_IRR_ANIM_FPS_get();
public static readonly string AI_CONFIG_IMPORT_OGRE_MATERIAL_FILE = Assimp_NETPINVOKE.AI_CONFIG_IMPORT_OGRE_MATERIAL_FILE_get();
public static readonly int AI_MAX_NUMBER_OF_COLOR_SETS = Assimp_NETPINVOKE.AI_MAX_NUMBER_OF_COLOR_SETS_get();
public static readonly int AI_MAX_NUMBER_OF_TEXTURECOORDS = Assimp_NETPINVOKE.AI_MAX_NUMBER_OF_TEXTURECOORDS_get();
public static readonly string AI_DEFAULT_MATERIAL_NAME = Assimp_NETPINVOKE.AI_DEFAULT_MATERIAL_NAME_get();
public static readonly string AI_DEFAULT_TEXTURED_MATERIAL_NAME = Assimp_NETPINVOKE.AI_DEFAULT_TEXTURED_MATERIAL_NAME_get();
public static readonly string _AI_MATKEY_TEXTURE_BASE = Assimp_NETPINVOKE._AI_MATKEY_TEXTURE_BASE_get();
public static readonly string _AI_MATKEY_UVWSRC_BASE = Assimp_NETPINVOKE._AI_MATKEY_UVWSRC_BASE_get();
public static readonly string _AI_MATKEY_TEXOP_BASE = Assimp_NETPINVOKE._AI_MATKEY_TEXOP_BASE_get();
public static readonly string _AI_MATKEY_MAPPING_BASE = Assimp_NETPINVOKE._AI_MATKEY_MAPPING_BASE_get();
public static readonly string _AI_MATKEY_TEXBLEND_BASE = Assimp_NETPINVOKE._AI_MATKEY_TEXBLEND_BASE_get();
public static readonly string _AI_MATKEY_MAPPINGMODE_U_BASE = Assimp_NETPINVOKE._AI_MATKEY_MAPPINGMODE_U_BASE_get();
public static readonly string _AI_MATKEY_MAPPINGMODE_V_BASE = Assimp_NETPINVOKE._AI_MATKEY_MAPPINGMODE_V_BASE_get();
public static readonly string _AI_MATKEY_TEXMAP_AXIS_BASE = Assimp_NETPINVOKE._AI_MATKEY_TEXMAP_AXIS_BASE_get();
public static readonly string _AI_MATKEY_UVTRANSFORM_BASE = Assimp_NETPINVOKE._AI_MATKEY_UVTRANSFORM_BASE_get();
public static readonly string _AI_MATKEY_TEXFLAGS_BASE = Assimp_NETPINVOKE._AI_MATKEY_TEXFLAGS_BASE_get();
public static readonly int AI_SCENE_FLAGS_INCOMPLETE = Assimp_NETPINVOKE.AI_SCENE_FLAGS_INCOMPLETE_get();
public static readonly int AI_SCENE_FLAGS_VALIDATED = Assimp_NETPINVOKE.AI_SCENE_FLAGS_VALIDATED_get();
public static readonly int AI_SCENE_FLAGS_VALIDATION_WARNING = Assimp_NETPINVOKE.AI_SCENE_FLAGS_VALIDATION_WARNING_get();
public static readonly int AI_SCENE_FLAGS_NON_VERBOSE_FORMAT = Assimp_NETPINVOKE.AI_SCENE_FLAGS_NON_VERBOSE_FORMAT_get();
public static readonly int AI_SCENE_FLAGS_TERRAIN = Assimp_NETPINVOKE.AI_SCENE_FLAGS_TERRAIN_get();
public static readonly int AI_PROPERTY_WAS_NOT_EXISTING = Assimp_NETPINVOKE.AI_PROPERTY_WAS_NOT_EXISTING_get();
public static readonly uint MAX_LOG_MESSAGE_LENGTH = Assimp_NETPINVOKE.MAX_LOG_MESSAGE_LENGTH_get();
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,346 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.0
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class FloatVector : IDisposable, System.Collections.IEnumerable
#if !SWIG_DOTNET_1
, System.Collections.Generic.IList<float>
#endif
{
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal FloatVector(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(FloatVector obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~FloatVector() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
AssimpPINVOKE.delete_FloatVector(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public FloatVector(System.Collections.ICollection c) : this() {
if (c == null)
throw new ArgumentNullException("c");
foreach (float element in c) {
this.Add(element);
}
}
public bool IsFixedSize {
get {
return false;
}
}
public bool IsReadOnly {
get {
return false;
}
}
public float this[int index] {
get {
return getitem(index);
}
set {
setitem(index, value);
}
}
public int Capacity {
get {
return (int)capacity();
}
set {
if (value < size())
throw new ArgumentOutOfRangeException("Capacity");
reserve((uint)value);
}
}
public int Count {
get {
return (int)size();
}
}
public bool IsSynchronized {
get {
return false;
}
}
#if SWIG_DOTNET_1
public void CopyTo(System.Array array)
#else
public void CopyTo(float[] array)
#endif
{
CopyTo(0, array, 0, this.Count);
}
#if SWIG_DOTNET_1
public void CopyTo(System.Array array, int arrayIndex)
#else
public void CopyTo(float[] array, int arrayIndex)
#endif
{
CopyTo(0, array, arrayIndex, this.Count);
}
#if SWIG_DOTNET_1
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
#else
public void CopyTo(int index, float[] array, int arrayIndex, int count)
#endif
{
if (array == null)
throw new ArgumentNullException("array");
if (index < 0)
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
if (arrayIndex < 0)
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
if (count < 0)
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
if (array.Rank > 1)
throw new ArgumentException("Multi dimensional array.", "array");
if (index+count > this.Count || arrayIndex+count > array.Length)
throw new ArgumentException("Number of elements to copy is too large.");
for (int i=0; i<count; i++)
array.SetValue(getitemcopy(index+i), arrayIndex+i);
}
#if !SWIG_DOTNET_1
System.Collections.Generic.IEnumerator<float> System.Collections.Generic.IEnumerable<float>.GetEnumerator() {
return new FloatVectorEnumerator(this);
}
#endif
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
return new FloatVectorEnumerator(this);
}
public FloatVectorEnumerator GetEnumerator() {
return new FloatVectorEnumerator(this);
}
// Type-safe enumerator
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
/// whenever the collection is modified. This has been done for changes in the size of the
/// collection but not when one of the elements of the collection is modified as it is a bit
/// tricky to detect unmanaged code that modifies the collection under our feet.
public sealed class FloatVectorEnumerator : System.Collections.IEnumerator
#if !SWIG_DOTNET_1
, System.Collections.Generic.IEnumerator<float>
#endif
{
private FloatVector collectionRef;
private int currentIndex;
private object currentObject;
private int currentSize;
public FloatVectorEnumerator(FloatVector collection) {
collectionRef = collection;
currentIndex = -1;
currentObject = null;
currentSize = collectionRef.Count;
}
// Type-safe iterator Current
public float Current {
get {
if (currentIndex == -1)
throw new InvalidOperationException("Enumeration not started.");
if (currentIndex > currentSize - 1)
throw new InvalidOperationException("Enumeration finished.");
if (currentObject == null)
throw new InvalidOperationException("Collection modified.");
return (float)currentObject;
}
}
// Type-unsafe IEnumerator.Current
object System.Collections.IEnumerator.Current {
get {
return Current;
}
}
public bool MoveNext() {
int size = collectionRef.Count;
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
if (moveOkay) {
currentIndex++;
currentObject = collectionRef[currentIndex];
} else {
currentObject = null;
}
return moveOkay;
}
public void Reset() {
currentIndex = -1;
currentObject = null;
if (collectionRef.Count != currentSize) {
throw new InvalidOperationException("Collection modified.");
}
}
#if !SWIG_DOTNET_1
public void Dispose() {
currentIndex = -1;
currentObject = null;
}
#endif
}
public void Clear() {
AssimpPINVOKE.FloatVector_Clear(swigCPtr);
}
public void Add(float x) {
AssimpPINVOKE.FloatVector_Add(swigCPtr, x);
}
private uint size() {
uint ret = AssimpPINVOKE.FloatVector_size(swigCPtr);
return ret;
}
private uint capacity() {
uint ret = AssimpPINVOKE.FloatVector_capacity(swigCPtr);
return ret;
}
private void reserve(uint n) {
AssimpPINVOKE.FloatVector_reserve(swigCPtr, n);
}
public FloatVector() : this(AssimpPINVOKE.new_FloatVector__SWIG_0(), true) {
}
public FloatVector(FloatVector other) : this(AssimpPINVOKE.new_FloatVector__SWIG_1(FloatVector.getCPtr(other)), true) {
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public FloatVector(int capacity) : this(AssimpPINVOKE.new_FloatVector__SWIG_2(capacity), true) {
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
private float getitemcopy(int index) {
float ret = AssimpPINVOKE.FloatVector_getitemcopy(swigCPtr, index);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private float getitem(int index) {
float ret = AssimpPINVOKE.FloatVector_getitem(swigCPtr, index);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private void setitem(int index, float val) {
AssimpPINVOKE.FloatVector_setitem(swigCPtr, index, val);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void AddRange(FloatVector values) {
AssimpPINVOKE.FloatVector_AddRange(swigCPtr, FloatVector.getCPtr(values));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public FloatVector GetRange(int index, int count) {
IntPtr cPtr = AssimpPINVOKE.FloatVector_GetRange(swigCPtr, index, count);
FloatVector ret = (cPtr == IntPtr.Zero) ? null : new FloatVector(cPtr, true);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void Insert(int index, float x) {
AssimpPINVOKE.FloatVector_Insert(swigCPtr, index, x);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void InsertRange(int index, FloatVector values) {
AssimpPINVOKE.FloatVector_InsertRange(swigCPtr, index, FloatVector.getCPtr(values));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void RemoveAt(int index) {
AssimpPINVOKE.FloatVector_RemoveAt(swigCPtr, index);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void RemoveRange(int index, int count) {
AssimpPINVOKE.FloatVector_RemoveRange(swigCPtr, index, count);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public static FloatVector Repeat(float value, int count) {
IntPtr cPtr = AssimpPINVOKE.FloatVector_Repeat(value, count);
FloatVector ret = (cPtr == IntPtr.Zero) ? null : new FloatVector(cPtr, true);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void Reverse() {
AssimpPINVOKE.FloatVector_Reverse__SWIG_0(swigCPtr);
}
public void Reverse(int index, int count) {
AssimpPINVOKE.FloatVector_Reverse__SWIG_1(swigCPtr, index, count);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void SetRange(int index, FloatVector values) {
AssimpPINVOKE.FloatVector_SetRange(swigCPtr, index, FloatVector.getCPtr(values));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public bool Contains(float value) {
bool ret = AssimpPINVOKE.FloatVector_Contains(swigCPtr, value);
return ret;
}
public int IndexOf(float value) {
int ret = AssimpPINVOKE.FloatVector_IndexOf(swigCPtr, value);
return ret;
}
public int LastIndexOf(float value) {
int ret = AssimpPINVOKE.FloatVector_LastIndexOf(swigCPtr, value);
return ret;
}
public bool Remove(float value) {
bool ret = AssimpPINVOKE.FloatVector_Remove(swigCPtr, value);
return ret;
}
}

View File

@ -1,72 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class IOStream : IDisposable {
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal IOStream(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(IOStream obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~IOStream() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
Assimp_NETPINVOKE.delete_IOStream(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public virtual uint Read(SWIGTYPE_p_void pvBuffer, uint pSize, uint pCount) {
uint ret = Assimp_NETPINVOKE.IOStream_Read(swigCPtr, SWIGTYPE_p_void.getCPtr(pvBuffer), pSize, pCount);
return ret;
}
public virtual uint Write(SWIGTYPE_p_void pvBuffer, uint pSize, uint pCount) {
uint ret = Assimp_NETPINVOKE.IOStream_Write(swigCPtr, SWIGTYPE_p_void.getCPtr(pvBuffer), pSize, pCount);
return ret;
}
public virtual aiReturn Seek(uint pOffset, aiOrigin pOrigin) {
aiReturn ret = (aiReturn)Assimp_NETPINVOKE.IOStream_Seek(swigCPtr, pOffset, (int)pOrigin);
return ret;
}
public virtual uint Tell() {
uint ret = Assimp_NETPINVOKE.IOStream_Tell(swigCPtr);
return ret;
}
public virtual uint FileSize() {
uint ret = Assimp_NETPINVOKE.IOStream_FileSize(swigCPtr);
return ret;
}
public virtual void Flush() {
Assimp_NETPINVOKE.IOStream_Flush(swigCPtr);
}
}

View File

@ -1,75 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class IOSystem : IDisposable {
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal IOSystem(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(IOSystem obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~IOSystem() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
Assimp_NETPINVOKE.delete_IOSystem(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public bool Exists(string pFile) {
bool ret = Assimp_NETPINVOKE.IOSystem_Exists__SWIG_0(swigCPtr, pFile);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public virtual char getOsSeparator() {
char ret = Assimp_NETPINVOKE.IOSystem_getOsSeparator(swigCPtr);
return ret;
}
public virtual IOStream Open(string pFile, string pMode) {
IntPtr cPtr = Assimp_NETPINVOKE.IOSystem_Open__SWIG_0(swigCPtr, pFile, pMode);
IOStream ret = (cPtr == IntPtr.Zero) ? null : new IOStream(cPtr, false);
return ret;
}
public virtual IOStream Open(string pFile) {
IntPtr cPtr = Assimp_NETPINVOKE.IOSystem_Open__SWIG_1(swigCPtr, pFile);
IOStream ret = (cPtr == IntPtr.Zero) ? null : new IOStream(cPtr, false);
return ret;
}
public virtual void Close(IOStream pFile) {
Assimp_NETPINVOKE.IOSystem_Close(swigCPtr, IOStream.getCPtr(pFile));
}
public virtual bool ComparePaths(string one, string second) {
bool ret = Assimp_NETPINVOKE.IOSystem_ComparePaths__SWIG_0(swigCPtr, one, second);
return ret;
}
}

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class Importer : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_Importer(swigCPtr); AssimpPINVOKE.delete_Importer(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -40,190 +40,98 @@ public class Importer : IDisposable {
} }
} }
public Importer() : this(Assimp_NETPINVOKE.new_Importer__SWIG_0(), true) { public Importer() : this(AssimpPINVOKE.new_Importer__SWIG_0(), true) {
} }
public Importer(Importer other) : this(Assimp_NETPINVOKE.new_Importer__SWIG_1(Importer.getCPtr(other)), true) { public Importer(Importer other) : this(AssimpPINVOKE.new_Importer__SWIG_1(Importer.getCPtr(other)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public aiReturn RegisterLoader(SWIGTYPE_p_Assimp__BaseImporter pImp) {
aiReturn ret = (aiReturn)Assimp_NETPINVOKE.Importer_RegisterLoader(swigCPtr, SWIGTYPE_p_Assimp__BaseImporter.getCPtr(pImp));
return ret;
}
public aiReturn UnregisterLoader(SWIGTYPE_p_Assimp__BaseImporter pImp) {
aiReturn ret = (aiReturn)Assimp_NETPINVOKE.Importer_UnregisterLoader(swigCPtr, SWIGTYPE_p_Assimp__BaseImporter.getCPtr(pImp));
return ret;
}
public aiReturn RegisterPPStep(SWIGTYPE_p_Assimp__BaseProcess pImp) {
aiReturn ret = (aiReturn)Assimp_NETPINVOKE.Importer_RegisterPPStep(swigCPtr, SWIGTYPE_p_Assimp__BaseProcess.getCPtr(pImp));
return ret;
}
public aiReturn UnregisterPPStep(SWIGTYPE_p_Assimp__BaseProcess pImp) {
aiReturn ret = (aiReturn)Assimp_NETPINVOKE.Importer_UnregisterPPStep(swigCPtr, SWIGTYPE_p_Assimp__BaseProcess.getCPtr(pImp));
return ret;
}
public void SetPropertyInteger(string szName, int iValue, SWIGTYPE_p_bool bWasExisting) {
Assimp_NETPINVOKE.Importer_SetPropertyInteger__SWIG_0(swigCPtr, szName, iValue, SWIGTYPE_p_bool.getCPtr(bWasExisting));
}
public void SetPropertyInteger(string szName, int iValue) {
Assimp_NETPINVOKE.Importer_SetPropertyInteger__SWIG_1(swigCPtr, szName, iValue);
}
public void SetPropertyFloat(string szName, float fValue, SWIGTYPE_p_bool bWasExisting) {
Assimp_NETPINVOKE.Importer_SetPropertyFloat__SWIG_0(swigCPtr, szName, fValue, SWIGTYPE_p_bool.getCPtr(bWasExisting));
}
public void SetPropertyFloat(string szName, float fValue) {
Assimp_NETPINVOKE.Importer_SetPropertyFloat__SWIG_1(swigCPtr, szName, fValue);
}
public void SetPropertyString(string szName, string sValue, SWIGTYPE_p_bool bWasExisting) {
Assimp_NETPINVOKE.Importer_SetPropertyString__SWIG_0(swigCPtr, szName, sValue, SWIGTYPE_p_bool.getCPtr(bWasExisting));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
}
public void SetPropertyString(string szName, string sValue) {
Assimp_NETPINVOKE.Importer_SetPropertyString__SWIG_1(swigCPtr, szName, sValue);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
} }
public int GetPropertyInteger(string szName, int iErrorReturn) { public int GetPropertyInteger(string szName, int iErrorReturn) {
int ret = Assimp_NETPINVOKE.Importer_GetPropertyInteger__SWIG_0(swigCPtr, szName, iErrorReturn); int ret = AssimpPINVOKE.Importer_GetPropertyInteger__SWIG_0(swigCPtr, szName, iErrorReturn);
return ret; return ret;
} }
public int GetPropertyInteger(string szName) { public int GetPropertyInteger(string szName) {
int ret = Assimp_NETPINVOKE.Importer_GetPropertyInteger__SWIG_1(swigCPtr, szName); int ret = AssimpPINVOKE.Importer_GetPropertyInteger__SWIG_1(swigCPtr, szName);
return ret; return ret;
} }
public float GetPropertyFloat(string szName, float fErrorReturn) { public float GetPropertyFloat(string szName, float fErrorReturn) {
float ret = Assimp_NETPINVOKE.Importer_GetPropertyFloat__SWIG_0(swigCPtr, szName, fErrorReturn); float ret = AssimpPINVOKE.Importer_GetPropertyFloat__SWIG_0(swigCPtr, szName, fErrorReturn);
return ret; return ret;
} }
public float GetPropertyFloat(string szName) { public float GetPropertyFloat(string szName) {
float ret = Assimp_NETPINVOKE.Importer_GetPropertyFloat__SWIG_1(swigCPtr, szName); float ret = AssimpPINVOKE.Importer_GetPropertyFloat__SWIG_1(swigCPtr, szName);
return ret; return ret;
} }
public string GetPropertyString(string szName, string sErrorReturn) { public string GetPropertyString(string szName, string sErrorReturn) {
string ret = Assimp_NETPINVOKE.Importer_GetPropertyString__SWIG_0(swigCPtr, szName, sErrorReturn); string ret = AssimpPINVOKE.Importer_GetPropertyString__SWIG_0(swigCPtr, szName, sErrorReturn);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public string GetPropertyString(string szName) { public string GetPropertyString(string szName) {
string ret = Assimp_NETPINVOKE.Importer_GetPropertyString__SWIG_1(swigCPtr, szName); string ret = AssimpPINVOKE.Importer_GetPropertyString__SWIG_1(swigCPtr, szName);
return ret;
}
public void SetIOHandler(IOSystem pIOHandler) {
Assimp_NETPINVOKE.Importer_SetIOHandler(swigCPtr, IOSystem.getCPtr(pIOHandler));
}
public IOSystem GetIOHandler() {
IntPtr cPtr = Assimp_NETPINVOKE.Importer_GetIOHandler(swigCPtr);
IOSystem ret = (cPtr == IntPtr.Zero) ? null : new IOSystem(cPtr, false);
return ret; return ret;
} }
public bool IsDefaultIOHandler() { public bool IsDefaultIOHandler() {
bool ret = Assimp_NETPINVOKE.Importer_IsDefaultIOHandler(swigCPtr); bool ret = AssimpPINVOKE.Importer_IsDefaultIOHandler(swigCPtr);
return ret; return ret;
} }
public bool ValidateFlags(uint pFlags) { public bool ValidateFlags(aiPostProcessSteps pFlags) {
bool ret = Assimp_NETPINVOKE.Importer_ValidateFlags(swigCPtr, pFlags); bool ret = AssimpPINVOKE.Importer_ValidateFlags(swigCPtr, (uint)pFlags);
return ret; return ret;
} }
public aiScene ReadFile(string pFile, uint pFlags) { public aiScene ReadFile(string pFile, aiPostProcessSteps pFlags) {
IntPtr cPtr = Assimp_NETPINVOKE.Importer_ReadFile(swigCPtr, pFile, pFlags); IntPtr cPtr = AssimpPINVOKE.Importer_ReadFile__SWIG_0(swigCPtr, pFile, (uint)pFlags);
aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false); aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false);
return ret; return ret;
} }
public aiScene ReadFileFromMemory(SWIGTYPE_p_void pBuffer, uint pLength, uint pFlags, string pHint) {
IntPtr cPtr = Assimp_NETPINVOKE.Importer_ReadFileFromMemory__SWIG_0(swigCPtr, SWIGTYPE_p_void.getCPtr(pBuffer), pLength, pFlags, pHint);
aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false);
return ret;
}
public aiScene ReadFileFromMemory(SWIGTYPE_p_void pBuffer, uint pLength, uint pFlags) {
IntPtr cPtr = Assimp_NETPINVOKE.Importer_ReadFileFromMemory__SWIG_1(swigCPtr, SWIGTYPE_p_void.getCPtr(pBuffer), pLength, pFlags);
aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false);
return ret;
}
public aiScene ApplyPostProcessing(uint pFlags) {
IntPtr cPtr = Assimp_NETPINVOKE.Importer_ApplyPostProcessing(swigCPtr, pFlags);
aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false);
return ret;
}
public aiScene ReadFile_s(string pFile, uint pFlags) {
IntPtr cPtr = Assimp_NETPINVOKE.Importer_ReadFile_s(swigCPtr, pFile, pFlags);
aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void FreeScene() { public void FreeScene() {
Assimp_NETPINVOKE.Importer_FreeScene(swigCPtr); AssimpPINVOKE.Importer_FreeScene(swigCPtr);
} }
public string GetErrorString() { public string GetErrorString() {
string ret = Assimp_NETPINVOKE.Importer_GetErrorString(swigCPtr); string ret = AssimpPINVOKE.Importer_GetErrorString(swigCPtr);
return ret; return ret;
} }
public bool IsExtensionSupported(string szExtension) { public bool IsExtensionSupported(string szExtension) {
bool ret = Assimp_NETPINVOKE.Importer_IsExtensionSupported__SWIG_0(swigCPtr, szExtension); bool ret = AssimpPINVOKE.Importer_IsExtensionSupported__SWIG_0(swigCPtr, szExtension);
return ret;
}
public void GetExtensionList(aiString szOut) {
Assimp_NETPINVOKE.Importer_GetExtensionList__SWIG_0(swigCPtr, aiString.getCPtr(szOut));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
}
public void GetExtensionList(SWIGTYPE_p_std__string szOut) {
Assimp_NETPINVOKE.Importer_GetExtensionList__SWIG_1(swigCPtr, SWIGTYPE_p_std__string.getCPtr(szOut));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
}
public SWIGTYPE_p_Assimp__BaseImporter FindLoader(string szExtension) {
IntPtr cPtr = Assimp_NETPINVOKE.Importer_FindLoader(swigCPtr, szExtension);
SWIGTYPE_p_Assimp__BaseImporter ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_Assimp__BaseImporter(cPtr, false);
return ret; return ret;
} }
public aiScene GetScene() { public aiScene GetScene() {
IntPtr cPtr = Assimp_NETPINVOKE.Importer_GetScene(swigCPtr); IntPtr cPtr = AssimpPINVOKE.Importer_GetScene(swigCPtr);
aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false); aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false);
return ret; return ret;
} }
public aiScene GetOrphanedScene() { public aiScene GetOrphanedScene() {
IntPtr cPtr = Assimp_NETPINVOKE.Importer_GetOrphanedScene(swigCPtr); IntPtr cPtr = AssimpPINVOKE.Importer_GetOrphanedScene(swigCPtr);
aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false); aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false);
return ret; return ret;
} }
public void GetMemoryRequirements(aiMemoryInfo arg0) { public void GetMemoryRequirements(aiMemoryInfo arg0) {
Assimp_NETPINVOKE.Importer_GetMemoryRequirements(swigCPtr, aiMemoryInfo.getCPtr(arg0)); AssimpPINVOKE.Importer_GetMemoryRequirements(swigCPtr, aiMemoryInfo.getCPtr(arg0));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void SetExtraVerbose(bool bDo) { public void SetExtraVerbose(bool bDo) {
Assimp_NETPINVOKE.Importer_SetExtraVerbose(swigCPtr, bDo); AssimpPINVOKE.Importer_SetExtraVerbose(swigCPtr, bDo);
}
public string GetExtensionList() {
string ret = AssimpPINVOKE.Importer_GetExtensionList(swigCPtr);
return ret;
} }
} }

View File

@ -1,65 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class LogStream : IDisposable {
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal LogStream(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(LogStream obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~LogStream() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
Assimp_NETPINVOKE.delete_LogStream(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public virtual void write(string message) {
Assimp_NETPINVOKE.LogStream_write(swigCPtr, message);
}
public static LogStream createDefaultStream(aiDefaultLogStream stream, string name, IOSystem io) {
IntPtr cPtr = Assimp_NETPINVOKE.LogStream_createDefaultStream__SWIG_0((int)stream, name, IOSystem.getCPtr(io));
LogStream ret = (cPtr == IntPtr.Zero) ? null : new LogStream(cPtr, false);
return ret;
}
public static LogStream createDefaultStream(aiDefaultLogStream stream, string name) {
IntPtr cPtr = Assimp_NETPINVOKE.LogStream_createDefaultStream__SWIG_1((int)stream, name);
LogStream ret = (cPtr == IntPtr.Zero) ? null : new LogStream(cPtr, false);
return ret;
}
public static LogStream createDefaultStream(aiDefaultLogStream stream) {
IntPtr cPtr = Assimp_NETPINVOKE.LogStream_createDefaultStream__SWIG_2((int)stream);
LogStream ret = (cPtr == IntPtr.Zero) ? null : new LogStream(cPtr, false);
return ret;
}
}

View File

@ -1,104 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class Logger : IDisposable {
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal Logger(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(Logger obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~Logger() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
Assimp_NETPINVOKE.delete_Logger(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public void debug(string message) {
Assimp_NETPINVOKE.Logger_debug(swigCPtr, message);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
}
public void info(string message) {
Assimp_NETPINVOKE.Logger_info(swigCPtr, message);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
}
public void warn(string message) {
Assimp_NETPINVOKE.Logger_warn(swigCPtr, message);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
}
public void error(string message) {
Assimp_NETPINVOKE.Logger_error(swigCPtr, message);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
}
public void setLogSeverity(Logger.LogSeverity log_severity) {
Assimp_NETPINVOKE.Logger_setLogSeverity(swigCPtr, (int)log_severity);
}
public Logger.LogSeverity getLogSeverity() {
Logger.LogSeverity ret = (Logger.LogSeverity)Assimp_NETPINVOKE.Logger_getLogSeverity(swigCPtr);
return ret;
}
public virtual bool attachStream(LogStream pStream, uint severity) {
bool ret = Assimp_NETPINVOKE.Logger_attachStream__SWIG_0(swigCPtr, LogStream.getCPtr(pStream), severity);
return ret;
}
public virtual bool attachStream(LogStream pStream) {
bool ret = Assimp_NETPINVOKE.Logger_attachStream__SWIG_1(swigCPtr, LogStream.getCPtr(pStream));
return ret;
}
public virtual bool detatchStream(LogStream pStream, uint severity) {
bool ret = Assimp_NETPINVOKE.Logger_detatchStream__SWIG_0(swigCPtr, LogStream.getCPtr(pStream), severity);
return ret;
}
public virtual bool detatchStream(LogStream pStream) {
bool ret = Assimp_NETPINVOKE.Logger_detatchStream__SWIG_1(swigCPtr, LogStream.getCPtr(pStream));
return ret;
}
public enum LogSeverity {
NORMAL,
VERBOSE
}
public enum ErrorSeverity {
DEBUGGING = 1,
INFO = 2,
WARN = 4,
ERR = 8
}
}

View File

@ -1,68 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class NullLogger : Logger {
private HandleRef swigCPtr;
internal NullLogger(IntPtr cPtr, bool cMemoryOwn) : base(Assimp_NETPINVOKE.NullLoggerUpcast(cPtr), cMemoryOwn) {
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(NullLogger obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~NullLogger() {
Dispose();
}
public override void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
Assimp_NETPINVOKE.delete_NullLogger(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
base.Dispose();
}
}
public virtual void OnDebug(string message) {
Assimp_NETPINVOKE.NullLogger_OnDebug(swigCPtr, message);
}
public virtual void OnInfo(string message) {
Assimp_NETPINVOKE.NullLogger_OnInfo(swigCPtr, message);
}
public virtual void OnWarn(string message) {
Assimp_NETPINVOKE.NullLogger_OnWarn(swigCPtr, message);
}
public virtual void OnError(string message) {
Assimp_NETPINVOKE.NullLogger_OnError(swigCPtr, message);
}
public override bool attachStream(LogStream pStream, uint severity) {
bool ret = Assimp_NETPINVOKE.NullLogger_attachStream(swigCPtr, LogStream.getCPtr(pStream), severity);
return ret;
}
public override bool detatchStream(LogStream pStream, uint severity) {
bool ret = Assimp_NETPINVOKE.NullLogger_detatchStream(swigCPtr, LogStream.getCPtr(pStream), severity);
return ret;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_Assimp__BaseImporter {
private HandleRef swigCPtr;
internal SWIGTYPE_p_Assimp__BaseImporter(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_Assimp__BaseImporter() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_Assimp__BaseImporter obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_Assimp__BaseProcess {
private HandleRef swigCPtr;
internal SWIGTYPE_p_Assimp__BaseProcess(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_Assimp__BaseProcess() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_Assimp__BaseProcess obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_aiColor4D {
private HandleRef swigCPtr;
internal SWIGTYPE_p_aiColor4D(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_aiColor4D() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_aiColor4D obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_aiTextureMapMode {
private HandleRef swigCPtr;
internal SWIGTYPE_p_aiTextureMapMode(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_aiTextureMapMode() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_aiTextureMapMode obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_aiTextureMapping {
private HandleRef swigCPtr;
internal SWIGTYPE_p_aiTextureMapping(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_aiTextureMapping() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_aiTextureMapping obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_aiTextureOp {
private HandleRef swigCPtr;
internal SWIGTYPE_p_aiTextureOp(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_aiTextureOp() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_aiTextureOp obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_bool {
private HandleRef swigCPtr;
internal SWIGTYPE_p_bool(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_bool() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_bool obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_f_p_aiFileIO_p_aiFile__void {
private HandleRef swigCPtr;
internal SWIGTYPE_p_f_p_aiFileIO_p_aiFile__void(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_f_p_aiFileIO_p_aiFile__void() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_f_p_aiFileIO_p_aiFile__void obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_f_p_aiFileIO_p_q_const__char_p_q_const__char__p_aiFile {
private HandleRef swigCPtr;
internal SWIGTYPE_p_f_p_aiFileIO_p_q_const__char_p_q_const__char__p_aiFile(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_f_p_aiFileIO_p_q_const__char_p_q_const__char__p_aiFile() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_f_p_aiFileIO_p_q_const__char_p_q_const__char__p_aiFile obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_f_p_aiFile__size_t {
private HandleRef swigCPtr;
internal SWIGTYPE_p_f_p_aiFile__size_t(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_f_p_aiFile__size_t() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_f_p_aiFile__size_t obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_f_p_aiFile__void {
private HandleRef swigCPtr;
internal SWIGTYPE_p_f_p_aiFile__void(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_f_p_aiFile__void() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_f_p_aiFile__void obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_f_p_aiFile_p_char_size_t_size_t__size_t {
private HandleRef swigCPtr;
internal SWIGTYPE_p_f_p_aiFile_p_char_size_t_size_t__size_t(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_f_p_aiFile_p_char_size_t_size_t__size_t() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_f_p_aiFile_p_char_size_t_size_t__size_t obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_f_p_aiFile_p_q_const__char_size_t_size_t__size_t {
private HandleRef swigCPtr;
internal SWIGTYPE_p_f_p_aiFile_p_q_const__char_size_t_size_t__size_t(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_f_p_aiFile_p_q_const__char_size_t_size_t__size_t() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_f_p_aiFile_p_q_const__char_size_t_size_t__size_t obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_f_p_aiFile_size_t_enum_aiOrigin__aiReturn {
private HandleRef swigCPtr;
internal SWIGTYPE_p_f_p_aiFile_size_t_enum_aiOrigin__aiReturn(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_f_p_aiFile_size_t_enum_aiOrigin__aiReturn() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_f_p_aiFile_size_t_enum_aiOrigin__aiReturn obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_float {
private HandleRef swigCPtr;
internal SWIGTYPE_p_float(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_float() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_float obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_int {
private HandleRef swigCPtr;
internal SWIGTYPE_p_int(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_int() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_int obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_p_aiAnimMesh {
private HandleRef swigCPtr;
internal SWIGTYPE_p_p_aiAnimMesh(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_p_aiAnimMesh() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_p_aiAnimMesh obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_p_aiAnimation {
private HandleRef swigCPtr;
internal SWIGTYPE_p_p_aiAnimation(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_p_aiAnimation() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_p_aiAnimation obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_p_aiBone {
private HandleRef swigCPtr;
internal SWIGTYPE_p_p_aiBone(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_p_aiBone() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_p_aiBone obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_p_aiCamera {
private HandleRef swigCPtr;
internal SWIGTYPE_p_p_aiCamera(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_p_aiCamera() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_p_aiCamera obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_p_aiColor4D {
private HandleRef swigCPtr;
internal SWIGTYPE_p_p_aiColor4D(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_p_aiColor4D() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_p_aiColor4D obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_p_aiLight {
private HandleRef swigCPtr;
internal SWIGTYPE_p_p_aiLight(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_p_aiLight() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_p_aiLight obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_p_aiMaterial {
private HandleRef swigCPtr;
internal SWIGTYPE_p_p_aiMaterial(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_p_aiMaterial() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_p_aiMaterial obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_p_aiMaterialProperty {
private HandleRef swigCPtr;
internal SWIGTYPE_p_p_aiMaterialProperty(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_p_aiMaterialProperty() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_p_aiMaterialProperty obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_p_aiMesh {
private HandleRef swigCPtr;
internal SWIGTYPE_p_p_aiMesh(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_p_aiMesh() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_p_aiMesh obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_p_aiMeshAnim {
private HandleRef swigCPtr;
internal SWIGTYPE_p_p_aiMeshAnim(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_p_aiMeshAnim() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_p_aiMeshAnim obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_p_aiNode {
private HandleRef swigCPtr;
internal SWIGTYPE_p_p_aiNode(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_p_aiNode() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_p_aiNode obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_p_aiNodeAnim {
private HandleRef swigCPtr;
internal SWIGTYPE_p_p_aiNodeAnim(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_p_aiNodeAnim() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_p_aiNodeAnim obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_p_aiTexture {
private HandleRef swigCPtr;
internal SWIGTYPE_p_p_aiTexture(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_p_aiTexture() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_p_aiTexture obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_p_aiVector3D {
private HandleRef swigCPtr;
internal SWIGTYPE_p_p_aiVector3D(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_p_aiVector3D() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_p_aiVector3D obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_std__string {
private HandleRef swigCPtr;
internal SWIGTYPE_p_std__string(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_std__string() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_std__string obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_unsigned_int {
private HandleRef swigCPtr;
internal SWIGTYPE_p_unsigned_int(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_unsigned_int() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_unsigned_int obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,27 +0,0 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_void {
private HandleRef swigCPtr;
internal SWIGTYPE_p_void(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_void() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_void obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -36,7 +36,7 @@ public class UintVector : IDisposable, System.Collections.IEnumerable
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_UintVector(swigCPtr); AssimpPINVOKE.delete_UintVector(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -221,125 +221,125 @@ public class UintVector : IDisposable, System.Collections.IEnumerable
} }
public void Clear() { public void Clear() {
Assimp_NETPINVOKE.UintVector_Clear(swigCPtr); AssimpPINVOKE.UintVector_Clear(swigCPtr);
} }
public void Add(uint x) { public void Add(uint x) {
Assimp_NETPINVOKE.UintVector_Add(swigCPtr, x); AssimpPINVOKE.UintVector_Add(swigCPtr, x);
} }
private uint size() { private uint size() {
uint ret = Assimp_NETPINVOKE.UintVector_size(swigCPtr); uint ret = AssimpPINVOKE.UintVector_size(swigCPtr);
return ret; return ret;
} }
private uint capacity() { private uint capacity() {
uint ret = Assimp_NETPINVOKE.UintVector_capacity(swigCPtr); uint ret = AssimpPINVOKE.UintVector_capacity(swigCPtr);
return ret; return ret;
} }
private void reserve(uint n) { private void reserve(uint n) {
Assimp_NETPINVOKE.UintVector_reserve(swigCPtr, n); AssimpPINVOKE.UintVector_reserve(swigCPtr, n);
} }
public UintVector() : this(Assimp_NETPINVOKE.new_UintVector__SWIG_0(), true) { public UintVector() : this(AssimpPINVOKE.new_UintVector__SWIG_0(), true) {
} }
public UintVector(UintVector other) : this(Assimp_NETPINVOKE.new_UintVector__SWIG_1(UintVector.getCPtr(other)), true) { public UintVector(UintVector other) : this(AssimpPINVOKE.new_UintVector__SWIG_1(UintVector.getCPtr(other)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public UintVector(int capacity) : this(Assimp_NETPINVOKE.new_UintVector__SWIG_2(capacity), true) { public UintVector(int capacity) : this(AssimpPINVOKE.new_UintVector__SWIG_2(capacity), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
private uint getitemcopy(int index) { private uint getitemcopy(int index) {
uint ret = Assimp_NETPINVOKE.UintVector_getitemcopy(swigCPtr, index); uint ret = AssimpPINVOKE.UintVector_getitemcopy(swigCPtr, index);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private uint getitem(int index) { private uint getitem(int index) {
uint ret = Assimp_NETPINVOKE.UintVector_getitem(swigCPtr, index); uint ret = AssimpPINVOKE.UintVector_getitem(swigCPtr, index);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private void setitem(int index, uint val) { private void setitem(int index, uint val) {
Assimp_NETPINVOKE.UintVector_setitem(swigCPtr, index, val); AssimpPINVOKE.UintVector_setitem(swigCPtr, index, val);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void AddRange(UintVector values) { public void AddRange(UintVector values) {
Assimp_NETPINVOKE.UintVector_AddRange(swigCPtr, UintVector.getCPtr(values)); AssimpPINVOKE.UintVector_AddRange(swigCPtr, UintVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public UintVector GetRange(int index, int count) { public UintVector GetRange(int index, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.UintVector_GetRange(swigCPtr, index, count); IntPtr cPtr = AssimpPINVOKE.UintVector_GetRange(swigCPtr, index, count);
UintVector ret = (cPtr == IntPtr.Zero) ? null : new UintVector(cPtr, true); UintVector ret = (cPtr == IntPtr.Zero) ? null : new UintVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Insert(int index, uint x) { public void Insert(int index, uint x) {
Assimp_NETPINVOKE.UintVector_Insert(swigCPtr, index, x); AssimpPINVOKE.UintVector_Insert(swigCPtr, index, x);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void InsertRange(int index, UintVector values) { public void InsertRange(int index, UintVector values) {
Assimp_NETPINVOKE.UintVector_InsertRange(swigCPtr, index, UintVector.getCPtr(values)); AssimpPINVOKE.UintVector_InsertRange(swigCPtr, index, UintVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveAt(int index) { public void RemoveAt(int index) {
Assimp_NETPINVOKE.UintVector_RemoveAt(swigCPtr, index); AssimpPINVOKE.UintVector_RemoveAt(swigCPtr, index);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveRange(int index, int count) { public void RemoveRange(int index, int count) {
Assimp_NETPINVOKE.UintVector_RemoveRange(swigCPtr, index, count); AssimpPINVOKE.UintVector_RemoveRange(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public static UintVector Repeat(uint value, int count) { public static UintVector Repeat(uint value, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.UintVector_Repeat(value, count); IntPtr cPtr = AssimpPINVOKE.UintVector_Repeat(value, count);
UintVector ret = (cPtr == IntPtr.Zero) ? null : new UintVector(cPtr, true); UintVector ret = (cPtr == IntPtr.Zero) ? null : new UintVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Reverse() { public void Reverse() {
Assimp_NETPINVOKE.UintVector_Reverse__SWIG_0(swigCPtr); AssimpPINVOKE.UintVector_Reverse__SWIG_0(swigCPtr);
} }
public void Reverse(int index, int count) { public void Reverse(int index, int count) {
Assimp_NETPINVOKE.UintVector_Reverse__SWIG_1(swigCPtr, index, count); AssimpPINVOKE.UintVector_Reverse__SWIG_1(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void SetRange(int index, UintVector values) { public void SetRange(int index, UintVector values) {
Assimp_NETPINVOKE.UintVector_SetRange(swigCPtr, index, UintVector.getCPtr(values)); AssimpPINVOKE.UintVector_SetRange(swigCPtr, index, UintVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public bool Contains(uint value) { public bool Contains(uint value) {
bool ret = Assimp_NETPINVOKE.UintVector_Contains(swigCPtr, value); bool ret = AssimpPINVOKE.UintVector_Contains(swigCPtr, value);
return ret; return ret;
} }
public int IndexOf(uint value) { public int IndexOf(uint value) {
int ret = Assimp_NETPINVOKE.UintVector_IndexOf(swigCPtr, value); int ret = AssimpPINVOKE.UintVector_IndexOf(swigCPtr, value);
return ret; return ret;
} }
public int LastIndexOf(uint value) { public int LastIndexOf(uint value) {
int ret = Assimp_NETPINVOKE.UintVector_LastIndexOf(swigCPtr, value); int ret = AssimpPINVOKE.UintVector_LastIndexOf(swigCPtr, value);
return ret; return ret;
} }
public bool Remove(uint value) { public bool Remove(uint value) {
bool ret = Assimp_NETPINVOKE.UintVector_Remove(swigCPtr, value); bool ret = AssimpPINVOKE.UintVector_Remove(swigCPtr, value);
return ret; return ret;
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiAnimMesh : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiAnimMesh(swigCPtr); AssimpPINVOKE.delete_aiAnimMesh(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -40,97 +40,42 @@ public class aiAnimMesh : IDisposable {
} }
} }
public aiVector3D mVertices {
set {
Assimp_NETPINVOKE.aiAnimMesh_mVertices_set(swigCPtr, aiVector3D.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiAnimMesh_mVertices_get(swigCPtr);
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
return ret;
}
}
public aiVector3D mNormals {
set {
Assimp_NETPINVOKE.aiAnimMesh_mNormals_set(swigCPtr, aiVector3D.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiAnimMesh_mNormals_get(swigCPtr);
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
return ret;
}
}
public aiVector3D mTangents {
set {
Assimp_NETPINVOKE.aiAnimMesh_mTangents_set(swigCPtr, aiVector3D.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiAnimMesh_mTangents_get(swigCPtr);
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
return ret;
}
}
public aiVector3D mBitangents { public aiVector3D mBitangents {
set { set {
Assimp_NETPINVOKE.aiAnimMesh_mBitangents_set(swigCPtr, aiVector3D.getCPtr(value)); AssimpPINVOKE.aiAnimMesh_mBitangents_set(swigCPtr, aiVector3D.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiAnimMesh_mBitangents_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiAnimMesh_mBitangents_get(swigCPtr);
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false); aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
return ret; return ret;
} }
} }
public SWIGTYPE_p_p_aiColor4D mColors { public aiAnimMesh() : this(AssimpPINVOKE.new_aiAnimMesh(), true) {
set {
Assimp_NETPINVOKE.aiAnimMesh_mColors_set(swigCPtr, SWIGTYPE_p_p_aiColor4D.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiAnimMesh_mColors_get(swigCPtr);
SWIGTYPE_p_p_aiColor4D ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_aiColor4D(cPtr, false);
return ret;
}
}
public SWIGTYPE_p_p_aiVector3D mTextureCoords {
set {
Assimp_NETPINVOKE.aiAnimMesh_mTextureCoords_set(swigCPtr, SWIGTYPE_p_p_aiVector3D.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiAnimMesh_mTextureCoords_get(swigCPtr);
SWIGTYPE_p_p_aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_aiVector3D(cPtr, false);
return ret;
}
}
public aiAnimMesh() : this(Assimp_NETPINVOKE.new_aiAnimMesh(), true) {
} }
public bool HasPositions() { public bool HasPositions() {
bool ret = Assimp_NETPINVOKE.aiAnimMesh_HasPositions(swigCPtr); bool ret = AssimpPINVOKE.aiAnimMesh_HasPositions(swigCPtr);
return ret; return ret;
} }
public bool HasNormals() { public bool HasNormals() {
bool ret = Assimp_NETPINVOKE.aiAnimMesh_HasNormals(swigCPtr); bool ret = AssimpPINVOKE.aiAnimMesh_HasNormals(swigCPtr);
return ret; return ret;
} }
public bool HasTangentsAndBitangents() { public bool HasTangentsAndBitangents() {
bool ret = Assimp_NETPINVOKE.aiAnimMesh_HasTangentsAndBitangents(swigCPtr); bool ret = AssimpPINVOKE.aiAnimMesh_HasTangentsAndBitangents(swigCPtr);
return ret; return ret;
} }
public bool HasVertexColors(uint pIndex) { public bool HasVertexColors(uint pIndex) {
bool ret = Assimp_NETPINVOKE.aiAnimMesh_HasVertexColors(swigCPtr, pIndex); bool ret = AssimpPINVOKE.aiAnimMesh_HasVertexColors(swigCPtr, pIndex);
return ret; return ret;
} }
public bool HasTextureCoords(uint pIndex) { public bool HasTextureCoords(uint pIndex) {
bool ret = Assimp_NETPINVOKE.aiAnimMesh_HasTextureCoords(swigCPtr, pIndex); bool ret = AssimpPINVOKE.aiAnimMesh_HasTextureCoords(swigCPtr, pIndex);
return ret; return ret;
} }

View File

@ -0,0 +1,348 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.0
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class aiAnimMeshVector : IDisposable, System.Collections.IEnumerable
#if !SWIG_DOTNET_1
, System.Collections.Generic.IList<aiAnimMesh>
#endif
{
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal aiAnimMeshVector(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(aiAnimMeshVector obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~aiAnimMeshVector() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
AssimpPINVOKE.delete_aiAnimMeshVector(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public aiAnimMeshVector(System.Collections.ICollection c) : this() {
if (c == null)
throw new ArgumentNullException("c");
foreach (aiAnimMesh element in c) {
this.Add(element);
}
}
public bool IsFixedSize {
get {
return false;
}
}
public bool IsReadOnly {
get {
return false;
}
}
public aiAnimMesh this[int index] {
get {
return getitem(index);
}
set {
setitem(index, value);
}
}
public int Capacity {
get {
return (int)capacity();
}
set {
if (value < size())
throw new ArgumentOutOfRangeException("Capacity");
reserve((uint)value);
}
}
public int Count {
get {
return (int)size();
}
}
public bool IsSynchronized {
get {
return false;
}
}
#if SWIG_DOTNET_1
public void CopyTo(System.Array array)
#else
public void CopyTo(aiAnimMesh[] array)
#endif
{
CopyTo(0, array, 0, this.Count);
}
#if SWIG_DOTNET_1
public void CopyTo(System.Array array, int arrayIndex)
#else
public void CopyTo(aiAnimMesh[] array, int arrayIndex)
#endif
{
CopyTo(0, array, arrayIndex, this.Count);
}
#if SWIG_DOTNET_1
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
#else
public void CopyTo(int index, aiAnimMesh[] array, int arrayIndex, int count)
#endif
{
if (array == null)
throw new ArgumentNullException("array");
if (index < 0)
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
if (arrayIndex < 0)
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
if (count < 0)
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
if (array.Rank > 1)
throw new ArgumentException("Multi dimensional array.", "array");
if (index+count > this.Count || arrayIndex+count > array.Length)
throw new ArgumentException("Number of elements to copy is too large.");
for (int i=0; i<count; i++)
array.SetValue(getitemcopy(index+i), arrayIndex+i);
}
#if !SWIG_DOTNET_1
System.Collections.Generic.IEnumerator<aiAnimMesh> System.Collections.Generic.IEnumerable<aiAnimMesh>.GetEnumerator() {
return new aiAnimMeshVectorEnumerator(this);
}
#endif
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
return new aiAnimMeshVectorEnumerator(this);
}
public aiAnimMeshVectorEnumerator GetEnumerator() {
return new aiAnimMeshVectorEnumerator(this);
}
// Type-safe enumerator
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
/// whenever the collection is modified. This has been done for changes in the size of the
/// collection but not when one of the elements of the collection is modified as it is a bit
/// tricky to detect unmanaged code that modifies the collection under our feet.
public sealed class aiAnimMeshVectorEnumerator : System.Collections.IEnumerator
#if !SWIG_DOTNET_1
, System.Collections.Generic.IEnumerator<aiAnimMesh>
#endif
{
private aiAnimMeshVector collectionRef;
private int currentIndex;
private object currentObject;
private int currentSize;
public aiAnimMeshVectorEnumerator(aiAnimMeshVector collection) {
collectionRef = collection;
currentIndex = -1;
currentObject = null;
currentSize = collectionRef.Count;
}
// Type-safe iterator Current
public aiAnimMesh Current {
get {
if (currentIndex == -1)
throw new InvalidOperationException("Enumeration not started.");
if (currentIndex > currentSize - 1)
throw new InvalidOperationException("Enumeration finished.");
if (currentObject == null)
throw new InvalidOperationException("Collection modified.");
return (aiAnimMesh)currentObject;
}
}
// Type-unsafe IEnumerator.Current
object System.Collections.IEnumerator.Current {
get {
return Current;
}
}
public bool MoveNext() {
int size = collectionRef.Count;
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
if (moveOkay) {
currentIndex++;
currentObject = collectionRef[currentIndex];
} else {
currentObject = null;
}
return moveOkay;
}
public void Reset() {
currentIndex = -1;
currentObject = null;
if (collectionRef.Count != currentSize) {
throw new InvalidOperationException("Collection modified.");
}
}
#if !SWIG_DOTNET_1
public void Dispose() {
currentIndex = -1;
currentObject = null;
}
#endif
}
public void Clear() {
AssimpPINVOKE.aiAnimMeshVector_Clear(swigCPtr);
}
public void Add(aiAnimMesh x) {
AssimpPINVOKE.aiAnimMeshVector_Add(swigCPtr, aiAnimMesh.getCPtr(x));
}
private uint size() {
uint ret = AssimpPINVOKE.aiAnimMeshVector_size(swigCPtr);
return ret;
}
private uint capacity() {
uint ret = AssimpPINVOKE.aiAnimMeshVector_capacity(swigCPtr);
return ret;
}
private void reserve(uint n) {
AssimpPINVOKE.aiAnimMeshVector_reserve(swigCPtr, n);
}
public aiAnimMeshVector() : this(AssimpPINVOKE.new_aiAnimMeshVector__SWIG_0(), true) {
}
public aiAnimMeshVector(aiAnimMeshVector other) : this(AssimpPINVOKE.new_aiAnimMeshVector__SWIG_1(aiAnimMeshVector.getCPtr(other)), true) {
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public aiAnimMeshVector(int capacity) : this(AssimpPINVOKE.new_aiAnimMeshVector__SWIG_2(capacity), true) {
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
private aiAnimMesh getitemcopy(int index) {
IntPtr cPtr = AssimpPINVOKE.aiAnimMeshVector_getitemcopy(swigCPtr, index);
aiAnimMesh ret = (cPtr == IntPtr.Zero) ? null : new aiAnimMesh(cPtr, false);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private aiAnimMesh getitem(int index) {
IntPtr cPtr = AssimpPINVOKE.aiAnimMeshVector_getitem(swigCPtr, index);
aiAnimMesh ret = (cPtr == IntPtr.Zero) ? null : new aiAnimMesh(cPtr, false);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private void setitem(int index, aiAnimMesh val) {
AssimpPINVOKE.aiAnimMeshVector_setitem(swigCPtr, index, aiAnimMesh.getCPtr(val));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void AddRange(aiAnimMeshVector values) {
AssimpPINVOKE.aiAnimMeshVector_AddRange(swigCPtr, aiAnimMeshVector.getCPtr(values));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public aiAnimMeshVector GetRange(int index, int count) {
IntPtr cPtr = AssimpPINVOKE.aiAnimMeshVector_GetRange(swigCPtr, index, count);
aiAnimMeshVector ret = (cPtr == IntPtr.Zero) ? null : new aiAnimMeshVector(cPtr, true);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void Insert(int index, aiAnimMesh x) {
AssimpPINVOKE.aiAnimMeshVector_Insert(swigCPtr, index, aiAnimMesh.getCPtr(x));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void InsertRange(int index, aiAnimMeshVector values) {
AssimpPINVOKE.aiAnimMeshVector_InsertRange(swigCPtr, index, aiAnimMeshVector.getCPtr(values));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void RemoveAt(int index) {
AssimpPINVOKE.aiAnimMeshVector_RemoveAt(swigCPtr, index);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void RemoveRange(int index, int count) {
AssimpPINVOKE.aiAnimMeshVector_RemoveRange(swigCPtr, index, count);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public static aiAnimMeshVector Repeat(aiAnimMesh value, int count) {
IntPtr cPtr = AssimpPINVOKE.aiAnimMeshVector_Repeat(aiAnimMesh.getCPtr(value), count);
aiAnimMeshVector ret = (cPtr == IntPtr.Zero) ? null : new aiAnimMeshVector(cPtr, true);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void Reverse() {
AssimpPINVOKE.aiAnimMeshVector_Reverse__SWIG_0(swigCPtr);
}
public void Reverse(int index, int count) {
AssimpPINVOKE.aiAnimMeshVector_Reverse__SWIG_1(swigCPtr, index, count);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void SetRange(int index, aiAnimMeshVector values) {
AssimpPINVOKE.aiAnimMeshVector_SetRange(swigCPtr, index, aiAnimMeshVector.getCPtr(values));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public bool Contains(aiAnimMesh value) {
bool ret = AssimpPINVOKE.aiAnimMeshVector_Contains(swigCPtr, aiAnimMesh.getCPtr(value));
return ret;
}
public int IndexOf(aiAnimMesh value) {
int ret = AssimpPINVOKE.aiAnimMeshVector_IndexOf(swigCPtr, aiAnimMesh.getCPtr(value));
return ret;
}
public int LastIndexOf(aiAnimMesh value) {
int ret = AssimpPINVOKE.aiAnimMeshVector_LastIndexOf(swigCPtr, aiAnimMesh.getCPtr(value));
return ret;
}
public bool Remove(aiAnimMesh value) {
bool ret = AssimpPINVOKE.aiAnimMeshVector_Remove(swigCPtr, aiAnimMesh.getCPtr(value));
return ret;
}
}

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiAnimation : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiAnimation(swigCPtr); AssimpPINVOKE.delete_aiAnimation(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -40,12 +40,15 @@ public class aiAnimation : IDisposable {
} }
} }
public aiNodeAnimVector mChannels { get { return GetmChannels(); } }
public aiMeshAnimVector mMeshChannels { get { return GetmMeshChannels(); } }
public aiString mName { public aiString mName {
set { set {
Assimp_NETPINVOKE.aiAnimation_mName_set(swigCPtr, aiString.getCPtr(value)); AssimpPINVOKE.aiAnimation_mName_set(swigCPtr, aiString.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiAnimation_mName_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiAnimation_mName_get(swigCPtr);
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false); aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
return ret; return ret;
} }
@ -53,67 +56,57 @@ public class aiAnimation : IDisposable {
public double mDuration { public double mDuration {
set { set {
Assimp_NETPINVOKE.aiAnimation_mDuration_set(swigCPtr, value); AssimpPINVOKE.aiAnimation_mDuration_set(swigCPtr, value);
} }
get { get {
double ret = Assimp_NETPINVOKE.aiAnimation_mDuration_get(swigCPtr); double ret = AssimpPINVOKE.aiAnimation_mDuration_get(swigCPtr);
return ret; return ret;
} }
} }
public double mTicksPerSecond { public double mTicksPerSecond {
set { set {
Assimp_NETPINVOKE.aiAnimation_mTicksPerSecond_set(swigCPtr, value); AssimpPINVOKE.aiAnimation_mTicksPerSecond_set(swigCPtr, value);
} }
get { get {
double ret = Assimp_NETPINVOKE.aiAnimation_mTicksPerSecond_get(swigCPtr); double ret = AssimpPINVOKE.aiAnimation_mTicksPerSecond_get(swigCPtr);
return ret; return ret;
} }
} }
public uint mNumChannels { public uint mNumChannels {
set { set {
Assimp_NETPINVOKE.aiAnimation_mNumChannels_set(swigCPtr, value); AssimpPINVOKE.aiAnimation_mNumChannels_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiAnimation_mNumChannels_get(swigCPtr); uint ret = AssimpPINVOKE.aiAnimation_mNumChannels_get(swigCPtr);
return ret;
}
}
public SWIGTYPE_p_p_aiNodeAnim mChannels {
set {
Assimp_NETPINVOKE.aiAnimation_mChannels_set(swigCPtr, SWIGTYPE_p_p_aiNodeAnim.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiAnimation_mChannels_get(swigCPtr);
SWIGTYPE_p_p_aiNodeAnim ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_aiNodeAnim(cPtr, false);
return ret; return ret;
} }
} }
public uint mNumMeshChannels { public uint mNumMeshChannels {
set { set {
Assimp_NETPINVOKE.aiAnimation_mNumMeshChannels_set(swigCPtr, value); AssimpPINVOKE.aiAnimation_mNumMeshChannels_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiAnimation_mNumMeshChannels_get(swigCPtr); uint ret = AssimpPINVOKE.aiAnimation_mNumMeshChannels_get(swigCPtr);
return ret; return ret;
} }
} }
public SWIGTYPE_p_p_aiMeshAnim mMeshChannels { public aiAnimation() : this(AssimpPINVOKE.new_aiAnimation(), true) {
set {
Assimp_NETPINVOKE.aiAnimation_mMeshChannels_set(swigCPtr, SWIGTYPE_p_p_aiMeshAnim.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiAnimation_mMeshChannels_get(swigCPtr);
SWIGTYPE_p_p_aiMeshAnim ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_aiMeshAnim(cPtr, false);
return ret;
}
} }
public aiAnimation() : this(Assimp_NETPINVOKE.new_aiAnimation(), true) { private aiNodeAnimVector GetmChannels() {
IntPtr cPtr = AssimpPINVOKE.aiAnimation_GetmChannels(swigCPtr);
aiNodeAnimVector ret = (cPtr == IntPtr.Zero) ? null : new aiNodeAnimVector(cPtr, true);
return ret;
}
private aiMeshAnimVector GetmMeshChannels() {
IntPtr cPtr = AssimpPINVOKE.aiAnimation_GetmMeshChannels(swigCPtr);
aiMeshAnimVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshAnimVector(cPtr, true);
return ret;
} }
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -36,7 +36,7 @@ public class aiAnimationVector : IDisposable, System.Collections.IEnumerable
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiAnimationVector(swigCPtr); AssimpPINVOKE.delete_aiAnimationVector(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -221,127 +221,127 @@ public class aiAnimationVector : IDisposable, System.Collections.IEnumerable
} }
public void Clear() { public void Clear() {
Assimp_NETPINVOKE.aiAnimationVector_Clear(swigCPtr); AssimpPINVOKE.aiAnimationVector_Clear(swigCPtr);
} }
public void Add(aiAnimation x) { public void Add(aiAnimation x) {
Assimp_NETPINVOKE.aiAnimationVector_Add(swigCPtr, aiAnimation.getCPtr(x)); AssimpPINVOKE.aiAnimationVector_Add(swigCPtr, aiAnimation.getCPtr(x));
} }
private uint size() { private uint size() {
uint ret = Assimp_NETPINVOKE.aiAnimationVector_size(swigCPtr); uint ret = AssimpPINVOKE.aiAnimationVector_size(swigCPtr);
return ret; return ret;
} }
private uint capacity() { private uint capacity() {
uint ret = Assimp_NETPINVOKE.aiAnimationVector_capacity(swigCPtr); uint ret = AssimpPINVOKE.aiAnimationVector_capacity(swigCPtr);
return ret; return ret;
} }
private void reserve(uint n) { private void reserve(uint n) {
Assimp_NETPINVOKE.aiAnimationVector_reserve(swigCPtr, n); AssimpPINVOKE.aiAnimationVector_reserve(swigCPtr, n);
} }
public aiAnimationVector() : this(Assimp_NETPINVOKE.new_aiAnimationVector__SWIG_0(), true) { public aiAnimationVector() : this(AssimpPINVOKE.new_aiAnimationVector__SWIG_0(), true) {
} }
public aiAnimationVector(aiAnimationVector other) : this(Assimp_NETPINVOKE.new_aiAnimationVector__SWIG_1(aiAnimationVector.getCPtr(other)), true) { public aiAnimationVector(aiAnimationVector other) : this(AssimpPINVOKE.new_aiAnimationVector__SWIG_1(aiAnimationVector.getCPtr(other)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiAnimationVector(int capacity) : this(Assimp_NETPINVOKE.new_aiAnimationVector__SWIG_2(capacity), true) { public aiAnimationVector(int capacity) : this(AssimpPINVOKE.new_aiAnimationVector__SWIG_2(capacity), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
private aiAnimation getitemcopy(int index) { private aiAnimation getitemcopy(int index) {
IntPtr cPtr = Assimp_NETPINVOKE.aiAnimationVector_getitemcopy(swigCPtr, index); IntPtr cPtr = AssimpPINVOKE.aiAnimationVector_getitemcopy(swigCPtr, index);
aiAnimation ret = (cPtr == IntPtr.Zero) ? null : new aiAnimation(cPtr, false); aiAnimation ret = (cPtr == IntPtr.Zero) ? null : new aiAnimation(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private aiAnimation getitem(int index) { private aiAnimation getitem(int index) {
IntPtr cPtr = Assimp_NETPINVOKE.aiAnimationVector_getitem(swigCPtr, index); IntPtr cPtr = AssimpPINVOKE.aiAnimationVector_getitem(swigCPtr, index);
aiAnimation ret = (cPtr == IntPtr.Zero) ? null : new aiAnimation(cPtr, false); aiAnimation ret = (cPtr == IntPtr.Zero) ? null : new aiAnimation(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private void setitem(int index, aiAnimation val) { private void setitem(int index, aiAnimation val) {
Assimp_NETPINVOKE.aiAnimationVector_setitem(swigCPtr, index, aiAnimation.getCPtr(val)); AssimpPINVOKE.aiAnimationVector_setitem(swigCPtr, index, aiAnimation.getCPtr(val));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void AddRange(aiAnimationVector values) { public void AddRange(aiAnimationVector values) {
Assimp_NETPINVOKE.aiAnimationVector_AddRange(swigCPtr, aiAnimationVector.getCPtr(values)); AssimpPINVOKE.aiAnimationVector_AddRange(swigCPtr, aiAnimationVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiAnimationVector GetRange(int index, int count) { public aiAnimationVector GetRange(int index, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.aiAnimationVector_GetRange(swigCPtr, index, count); IntPtr cPtr = AssimpPINVOKE.aiAnimationVector_GetRange(swigCPtr, index, count);
aiAnimationVector ret = (cPtr == IntPtr.Zero) ? null : new aiAnimationVector(cPtr, true); aiAnimationVector ret = (cPtr == IntPtr.Zero) ? null : new aiAnimationVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Insert(int index, aiAnimation x) { public void Insert(int index, aiAnimation x) {
Assimp_NETPINVOKE.aiAnimationVector_Insert(swigCPtr, index, aiAnimation.getCPtr(x)); AssimpPINVOKE.aiAnimationVector_Insert(swigCPtr, index, aiAnimation.getCPtr(x));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void InsertRange(int index, aiAnimationVector values) { public void InsertRange(int index, aiAnimationVector values) {
Assimp_NETPINVOKE.aiAnimationVector_InsertRange(swigCPtr, index, aiAnimationVector.getCPtr(values)); AssimpPINVOKE.aiAnimationVector_InsertRange(swigCPtr, index, aiAnimationVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveAt(int index) { public void RemoveAt(int index) {
Assimp_NETPINVOKE.aiAnimationVector_RemoveAt(swigCPtr, index); AssimpPINVOKE.aiAnimationVector_RemoveAt(swigCPtr, index);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveRange(int index, int count) { public void RemoveRange(int index, int count) {
Assimp_NETPINVOKE.aiAnimationVector_RemoveRange(swigCPtr, index, count); AssimpPINVOKE.aiAnimationVector_RemoveRange(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public static aiAnimationVector Repeat(aiAnimation value, int count) { public static aiAnimationVector Repeat(aiAnimation value, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.aiAnimationVector_Repeat(aiAnimation.getCPtr(value), count); IntPtr cPtr = AssimpPINVOKE.aiAnimationVector_Repeat(aiAnimation.getCPtr(value), count);
aiAnimationVector ret = (cPtr == IntPtr.Zero) ? null : new aiAnimationVector(cPtr, true); aiAnimationVector ret = (cPtr == IntPtr.Zero) ? null : new aiAnimationVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Reverse() { public void Reverse() {
Assimp_NETPINVOKE.aiAnimationVector_Reverse__SWIG_0(swigCPtr); AssimpPINVOKE.aiAnimationVector_Reverse__SWIG_0(swigCPtr);
} }
public void Reverse(int index, int count) { public void Reverse(int index, int count) {
Assimp_NETPINVOKE.aiAnimationVector_Reverse__SWIG_1(swigCPtr, index, count); AssimpPINVOKE.aiAnimationVector_Reverse__SWIG_1(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void SetRange(int index, aiAnimationVector values) { public void SetRange(int index, aiAnimationVector values) {
Assimp_NETPINVOKE.aiAnimationVector_SetRange(swigCPtr, index, aiAnimationVector.getCPtr(values)); AssimpPINVOKE.aiAnimationVector_SetRange(swigCPtr, index, aiAnimationVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public bool Contains(aiAnimation value) { public bool Contains(aiAnimation value) {
bool ret = Assimp_NETPINVOKE.aiAnimationVector_Contains(swigCPtr, aiAnimation.getCPtr(value)); bool ret = AssimpPINVOKE.aiAnimationVector_Contains(swigCPtr, aiAnimation.getCPtr(value));
return ret; return ret;
} }
public int IndexOf(aiAnimation value) { public int IndexOf(aiAnimation value) {
int ret = Assimp_NETPINVOKE.aiAnimationVector_IndexOf(swigCPtr, aiAnimation.getCPtr(value)); int ret = AssimpPINVOKE.aiAnimationVector_IndexOf(swigCPtr, aiAnimation.getCPtr(value));
return ret; return ret;
} }
public int LastIndexOf(aiAnimation value) { public int LastIndexOf(aiAnimation value) {
int ret = Assimp_NETPINVOKE.aiAnimationVector_LastIndexOf(swigCPtr, aiAnimation.getCPtr(value)); int ret = AssimpPINVOKE.aiAnimationVector_LastIndexOf(swigCPtr, aiAnimation.getCPtr(value));
return ret; return ret;
} }
public bool Remove(aiAnimation value) { public bool Remove(aiAnimation value) {
bool ret = Assimp_NETPINVOKE.aiAnimationVector_Remove(swigCPtr, aiAnimation.getCPtr(value)); bool ret = AssimpPINVOKE.aiAnimationVector_Remove(swigCPtr, aiAnimation.getCPtr(value));
return ret; return ret;
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiBone : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiBone(swigCPtr); AssimpPINVOKE.delete_aiBone(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -42,10 +42,10 @@ public class aiBone : IDisposable {
public aiString mName { public aiString mName {
set { set {
Assimp_NETPINVOKE.aiBone_mName_set(swigCPtr, aiString.getCPtr(value)); AssimpPINVOKE.aiBone_mName_set(swigCPtr, aiString.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiBone_mName_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiBone_mName_get(swigCPtr);
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false); aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
return ret; return ret;
} }
@ -53,41 +53,36 @@ public class aiBone : IDisposable {
public uint mNumWeights { public uint mNumWeights {
set { set {
Assimp_NETPINVOKE.aiBone_mNumWeights_set(swigCPtr, value); AssimpPINVOKE.aiBone_mNumWeights_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiBone_mNumWeights_get(swigCPtr); uint ret = AssimpPINVOKE.aiBone_mNumWeights_get(swigCPtr);
return ret;
}
}
public aiVertexWeight mWeights {
set {
Assimp_NETPINVOKE.aiBone_mWeights_set(swigCPtr, aiVertexWeight.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiBone_mWeights_get(swigCPtr);
aiVertexWeight ret = (cPtr == IntPtr.Zero) ? null : new aiVertexWeight(cPtr, false);
return ret; return ret;
} }
} }
public aiMatrix4x4 mOffsetMatrix { public aiMatrix4x4 mOffsetMatrix {
set { set {
Assimp_NETPINVOKE.aiBone_mOffsetMatrix_set(swigCPtr, aiMatrix4x4.getCPtr(value)); AssimpPINVOKE.aiBone_mOffsetMatrix_set(swigCPtr, aiMatrix4x4.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiBone_mOffsetMatrix_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiBone_mOffsetMatrix_get(swigCPtr);
aiMatrix4x4 ret = (cPtr == IntPtr.Zero) ? null : new aiMatrix4x4(cPtr, false); aiMatrix4x4 ret = (cPtr == IntPtr.Zero) ? null : new aiMatrix4x4(cPtr, false);
return ret; return ret;
} }
} }
public aiBone() : this(Assimp_NETPINVOKE.new_aiBone__SWIG_0(), true) { public aiBone() : this(AssimpPINVOKE.new_aiBone__SWIG_0(), true) {
} }
public aiBone(aiBone other) : this(Assimp_NETPINVOKE.new_aiBone__SWIG_1(aiBone.getCPtr(other)), true) { public aiBone(aiBone other) : this(AssimpPINVOKE.new_aiBone__SWIG_1(aiBone.getCPtr(other)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
private aiVertexWeightVector GetmWeights() {
IntPtr cPtr = AssimpPINVOKE.aiBone_GetmWeights(swigCPtr);
aiVertexWeightVector ret = (cPtr == IntPtr.Zero) ? null : new aiVertexWeightVector(cPtr, true);
return ret;
} }
} }

View File

@ -0,0 +1,348 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.0
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class aiBoneVector : IDisposable, System.Collections.IEnumerable
#if !SWIG_DOTNET_1
, System.Collections.Generic.IList<aiBone>
#endif
{
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal aiBoneVector(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(aiBoneVector obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~aiBoneVector() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
AssimpPINVOKE.delete_aiBoneVector(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public aiBoneVector(System.Collections.ICollection c) : this() {
if (c == null)
throw new ArgumentNullException("c");
foreach (aiBone element in c) {
this.Add(element);
}
}
public bool IsFixedSize {
get {
return false;
}
}
public bool IsReadOnly {
get {
return false;
}
}
public aiBone this[int index] {
get {
return getitem(index);
}
set {
setitem(index, value);
}
}
public int Capacity {
get {
return (int)capacity();
}
set {
if (value < size())
throw new ArgumentOutOfRangeException("Capacity");
reserve((uint)value);
}
}
public int Count {
get {
return (int)size();
}
}
public bool IsSynchronized {
get {
return false;
}
}
#if SWIG_DOTNET_1
public void CopyTo(System.Array array)
#else
public void CopyTo(aiBone[] array)
#endif
{
CopyTo(0, array, 0, this.Count);
}
#if SWIG_DOTNET_1
public void CopyTo(System.Array array, int arrayIndex)
#else
public void CopyTo(aiBone[] array, int arrayIndex)
#endif
{
CopyTo(0, array, arrayIndex, this.Count);
}
#if SWIG_DOTNET_1
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
#else
public void CopyTo(int index, aiBone[] array, int arrayIndex, int count)
#endif
{
if (array == null)
throw new ArgumentNullException("array");
if (index < 0)
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
if (arrayIndex < 0)
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
if (count < 0)
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
if (array.Rank > 1)
throw new ArgumentException("Multi dimensional array.", "array");
if (index+count > this.Count || arrayIndex+count > array.Length)
throw new ArgumentException("Number of elements to copy is too large.");
for (int i=0; i<count; i++)
array.SetValue(getitemcopy(index+i), arrayIndex+i);
}
#if !SWIG_DOTNET_1
System.Collections.Generic.IEnumerator<aiBone> System.Collections.Generic.IEnumerable<aiBone>.GetEnumerator() {
return new aiBoneVectorEnumerator(this);
}
#endif
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
return new aiBoneVectorEnumerator(this);
}
public aiBoneVectorEnumerator GetEnumerator() {
return new aiBoneVectorEnumerator(this);
}
// Type-safe enumerator
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
/// whenever the collection is modified. This has been done for changes in the size of the
/// collection but not when one of the elements of the collection is modified as it is a bit
/// tricky to detect unmanaged code that modifies the collection under our feet.
public sealed class aiBoneVectorEnumerator : System.Collections.IEnumerator
#if !SWIG_DOTNET_1
, System.Collections.Generic.IEnumerator<aiBone>
#endif
{
private aiBoneVector collectionRef;
private int currentIndex;
private object currentObject;
private int currentSize;
public aiBoneVectorEnumerator(aiBoneVector collection) {
collectionRef = collection;
currentIndex = -1;
currentObject = null;
currentSize = collectionRef.Count;
}
// Type-safe iterator Current
public aiBone Current {
get {
if (currentIndex == -1)
throw new InvalidOperationException("Enumeration not started.");
if (currentIndex > currentSize - 1)
throw new InvalidOperationException("Enumeration finished.");
if (currentObject == null)
throw new InvalidOperationException("Collection modified.");
return (aiBone)currentObject;
}
}
// Type-unsafe IEnumerator.Current
object System.Collections.IEnumerator.Current {
get {
return Current;
}
}
public bool MoveNext() {
int size = collectionRef.Count;
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
if (moveOkay) {
currentIndex++;
currentObject = collectionRef[currentIndex];
} else {
currentObject = null;
}
return moveOkay;
}
public void Reset() {
currentIndex = -1;
currentObject = null;
if (collectionRef.Count != currentSize) {
throw new InvalidOperationException("Collection modified.");
}
}
#if !SWIG_DOTNET_1
public void Dispose() {
currentIndex = -1;
currentObject = null;
}
#endif
}
public void Clear() {
AssimpPINVOKE.aiBoneVector_Clear(swigCPtr);
}
public void Add(aiBone x) {
AssimpPINVOKE.aiBoneVector_Add(swigCPtr, aiBone.getCPtr(x));
}
private uint size() {
uint ret = AssimpPINVOKE.aiBoneVector_size(swigCPtr);
return ret;
}
private uint capacity() {
uint ret = AssimpPINVOKE.aiBoneVector_capacity(swigCPtr);
return ret;
}
private void reserve(uint n) {
AssimpPINVOKE.aiBoneVector_reserve(swigCPtr, n);
}
public aiBoneVector() : this(AssimpPINVOKE.new_aiBoneVector__SWIG_0(), true) {
}
public aiBoneVector(aiBoneVector other) : this(AssimpPINVOKE.new_aiBoneVector__SWIG_1(aiBoneVector.getCPtr(other)), true) {
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public aiBoneVector(int capacity) : this(AssimpPINVOKE.new_aiBoneVector__SWIG_2(capacity), true) {
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
private aiBone getitemcopy(int index) {
IntPtr cPtr = AssimpPINVOKE.aiBoneVector_getitemcopy(swigCPtr, index);
aiBone ret = (cPtr == IntPtr.Zero) ? null : new aiBone(cPtr, false);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private aiBone getitem(int index) {
IntPtr cPtr = AssimpPINVOKE.aiBoneVector_getitem(swigCPtr, index);
aiBone ret = (cPtr == IntPtr.Zero) ? null : new aiBone(cPtr, false);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private void setitem(int index, aiBone val) {
AssimpPINVOKE.aiBoneVector_setitem(swigCPtr, index, aiBone.getCPtr(val));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void AddRange(aiBoneVector values) {
AssimpPINVOKE.aiBoneVector_AddRange(swigCPtr, aiBoneVector.getCPtr(values));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public aiBoneVector GetRange(int index, int count) {
IntPtr cPtr = AssimpPINVOKE.aiBoneVector_GetRange(swigCPtr, index, count);
aiBoneVector ret = (cPtr == IntPtr.Zero) ? null : new aiBoneVector(cPtr, true);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void Insert(int index, aiBone x) {
AssimpPINVOKE.aiBoneVector_Insert(swigCPtr, index, aiBone.getCPtr(x));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void InsertRange(int index, aiBoneVector values) {
AssimpPINVOKE.aiBoneVector_InsertRange(swigCPtr, index, aiBoneVector.getCPtr(values));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void RemoveAt(int index) {
AssimpPINVOKE.aiBoneVector_RemoveAt(swigCPtr, index);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void RemoveRange(int index, int count) {
AssimpPINVOKE.aiBoneVector_RemoveRange(swigCPtr, index, count);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public static aiBoneVector Repeat(aiBone value, int count) {
IntPtr cPtr = AssimpPINVOKE.aiBoneVector_Repeat(aiBone.getCPtr(value), count);
aiBoneVector ret = (cPtr == IntPtr.Zero) ? null : new aiBoneVector(cPtr, true);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void Reverse() {
AssimpPINVOKE.aiBoneVector_Reverse__SWIG_0(swigCPtr);
}
public void Reverse(int index, int count) {
AssimpPINVOKE.aiBoneVector_Reverse__SWIG_1(swigCPtr, index, count);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void SetRange(int index, aiBoneVector values) {
AssimpPINVOKE.aiBoneVector_SetRange(swigCPtr, index, aiBoneVector.getCPtr(values));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public bool Contains(aiBone value) {
bool ret = AssimpPINVOKE.aiBoneVector_Contains(swigCPtr, aiBone.getCPtr(value));
return ret;
}
public int IndexOf(aiBone value) {
int ret = AssimpPINVOKE.aiBoneVector_IndexOf(swigCPtr, aiBone.getCPtr(value));
return ret;
}
public int LastIndexOf(aiBone value) {
int ret = AssimpPINVOKE.aiBoneVector_LastIndexOf(swigCPtr, aiBone.getCPtr(value));
return ret;
}
public bool Remove(aiBone value) {
bool ret = AssimpPINVOKE.aiBoneVector_Remove(swigCPtr, aiBone.getCPtr(value));
return ret;
}
}

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiCamera : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiCamera(swigCPtr); AssimpPINVOKE.delete_aiCamera(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -42,10 +42,10 @@ public class aiCamera : IDisposable {
public aiString mName { public aiString mName {
set { set {
Assimp_NETPINVOKE.aiCamera_mName_set(swigCPtr, aiString.getCPtr(value)); AssimpPINVOKE.aiCamera_mName_set(swigCPtr, aiString.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiCamera_mName_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiCamera_mName_get(swigCPtr);
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false); aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
return ret; return ret;
} }
@ -53,10 +53,10 @@ public class aiCamera : IDisposable {
public aiVector3D mPosition { public aiVector3D mPosition {
set { set {
Assimp_NETPINVOKE.aiCamera_mPosition_set(swigCPtr, aiVector3D.getCPtr(value)); AssimpPINVOKE.aiCamera_mPosition_set(swigCPtr, aiVector3D.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiCamera_mPosition_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiCamera_mPosition_get(swigCPtr);
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false); aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
return ret; return ret;
} }
@ -64,10 +64,10 @@ public class aiCamera : IDisposable {
public aiVector3D mUp { public aiVector3D mUp {
set { set {
Assimp_NETPINVOKE.aiCamera_mUp_set(swigCPtr, aiVector3D.getCPtr(value)); AssimpPINVOKE.aiCamera_mUp_set(swigCPtr, aiVector3D.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiCamera_mUp_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiCamera_mUp_get(swigCPtr);
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false); aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
return ret; return ret;
} }
@ -75,10 +75,10 @@ public class aiCamera : IDisposable {
public aiVector3D mLookAt { public aiVector3D mLookAt {
set { set {
Assimp_NETPINVOKE.aiCamera_mLookAt_set(swigCPtr, aiVector3D.getCPtr(value)); AssimpPINVOKE.aiCamera_mLookAt_set(swigCPtr, aiVector3D.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiCamera_mLookAt_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiCamera_mLookAt_get(swigCPtr);
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false); aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
return ret; return ret;
} }
@ -86,50 +86,50 @@ public class aiCamera : IDisposable {
public float mHorizontalFOV { public float mHorizontalFOV {
set { set {
Assimp_NETPINVOKE.aiCamera_mHorizontalFOV_set(swigCPtr, value); AssimpPINVOKE.aiCamera_mHorizontalFOV_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiCamera_mHorizontalFOV_get(swigCPtr); float ret = AssimpPINVOKE.aiCamera_mHorizontalFOV_get(swigCPtr);
return ret; return ret;
} }
} }
public float mClipPlaneNear { public float mClipPlaneNear {
set { set {
Assimp_NETPINVOKE.aiCamera_mClipPlaneNear_set(swigCPtr, value); AssimpPINVOKE.aiCamera_mClipPlaneNear_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiCamera_mClipPlaneNear_get(swigCPtr); float ret = AssimpPINVOKE.aiCamera_mClipPlaneNear_get(swigCPtr);
return ret; return ret;
} }
} }
public float mClipPlaneFar { public float mClipPlaneFar {
set { set {
Assimp_NETPINVOKE.aiCamera_mClipPlaneFar_set(swigCPtr, value); AssimpPINVOKE.aiCamera_mClipPlaneFar_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiCamera_mClipPlaneFar_get(swigCPtr); float ret = AssimpPINVOKE.aiCamera_mClipPlaneFar_get(swigCPtr);
return ret; return ret;
} }
} }
public float mAspect { public float mAspect {
set { set {
Assimp_NETPINVOKE.aiCamera_mAspect_set(swigCPtr, value); AssimpPINVOKE.aiCamera_mAspect_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiCamera_mAspect_get(swigCPtr); float ret = AssimpPINVOKE.aiCamera_mAspect_get(swigCPtr);
return ret; return ret;
} }
} }
public aiCamera() : this(Assimp_NETPINVOKE.new_aiCamera(), true) { public aiCamera() : this(AssimpPINVOKE.new_aiCamera(), true) {
} }
public void GetCameraMatrix(aiMatrix4x4 arg0) { public void GetCameraMatrix(aiMatrix4x4 arg0) {
Assimp_NETPINVOKE.aiCamera_GetCameraMatrix(swigCPtr, aiMatrix4x4.getCPtr(arg0)); AssimpPINVOKE.aiCamera_GetCameraMatrix(swigCPtr, aiMatrix4x4.getCPtr(arg0));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -36,7 +36,7 @@ public class aiCameraVector : IDisposable, System.Collections.IEnumerable
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiCameraVector(swigCPtr); AssimpPINVOKE.delete_aiCameraVector(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -221,127 +221,127 @@ public class aiCameraVector : IDisposable, System.Collections.IEnumerable
} }
public void Clear() { public void Clear() {
Assimp_NETPINVOKE.aiCameraVector_Clear(swigCPtr); AssimpPINVOKE.aiCameraVector_Clear(swigCPtr);
} }
public void Add(aiCamera x) { public void Add(aiCamera x) {
Assimp_NETPINVOKE.aiCameraVector_Add(swigCPtr, aiCamera.getCPtr(x)); AssimpPINVOKE.aiCameraVector_Add(swigCPtr, aiCamera.getCPtr(x));
} }
private uint size() { private uint size() {
uint ret = Assimp_NETPINVOKE.aiCameraVector_size(swigCPtr); uint ret = AssimpPINVOKE.aiCameraVector_size(swigCPtr);
return ret; return ret;
} }
private uint capacity() { private uint capacity() {
uint ret = Assimp_NETPINVOKE.aiCameraVector_capacity(swigCPtr); uint ret = AssimpPINVOKE.aiCameraVector_capacity(swigCPtr);
return ret; return ret;
} }
private void reserve(uint n) { private void reserve(uint n) {
Assimp_NETPINVOKE.aiCameraVector_reserve(swigCPtr, n); AssimpPINVOKE.aiCameraVector_reserve(swigCPtr, n);
} }
public aiCameraVector() : this(Assimp_NETPINVOKE.new_aiCameraVector__SWIG_0(), true) { public aiCameraVector() : this(AssimpPINVOKE.new_aiCameraVector__SWIG_0(), true) {
} }
public aiCameraVector(aiCameraVector other) : this(Assimp_NETPINVOKE.new_aiCameraVector__SWIG_1(aiCameraVector.getCPtr(other)), true) { public aiCameraVector(aiCameraVector other) : this(AssimpPINVOKE.new_aiCameraVector__SWIG_1(aiCameraVector.getCPtr(other)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiCameraVector(int capacity) : this(Assimp_NETPINVOKE.new_aiCameraVector__SWIG_2(capacity), true) { public aiCameraVector(int capacity) : this(AssimpPINVOKE.new_aiCameraVector__SWIG_2(capacity), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
private aiCamera getitemcopy(int index) { private aiCamera getitemcopy(int index) {
IntPtr cPtr = Assimp_NETPINVOKE.aiCameraVector_getitemcopy(swigCPtr, index); IntPtr cPtr = AssimpPINVOKE.aiCameraVector_getitemcopy(swigCPtr, index);
aiCamera ret = (cPtr == IntPtr.Zero) ? null : new aiCamera(cPtr, false); aiCamera ret = (cPtr == IntPtr.Zero) ? null : new aiCamera(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private aiCamera getitem(int index) { private aiCamera getitem(int index) {
IntPtr cPtr = Assimp_NETPINVOKE.aiCameraVector_getitem(swigCPtr, index); IntPtr cPtr = AssimpPINVOKE.aiCameraVector_getitem(swigCPtr, index);
aiCamera ret = (cPtr == IntPtr.Zero) ? null : new aiCamera(cPtr, false); aiCamera ret = (cPtr == IntPtr.Zero) ? null : new aiCamera(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private void setitem(int index, aiCamera val) { private void setitem(int index, aiCamera val) {
Assimp_NETPINVOKE.aiCameraVector_setitem(swigCPtr, index, aiCamera.getCPtr(val)); AssimpPINVOKE.aiCameraVector_setitem(swigCPtr, index, aiCamera.getCPtr(val));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void AddRange(aiCameraVector values) { public void AddRange(aiCameraVector values) {
Assimp_NETPINVOKE.aiCameraVector_AddRange(swigCPtr, aiCameraVector.getCPtr(values)); AssimpPINVOKE.aiCameraVector_AddRange(swigCPtr, aiCameraVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiCameraVector GetRange(int index, int count) { public aiCameraVector GetRange(int index, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.aiCameraVector_GetRange(swigCPtr, index, count); IntPtr cPtr = AssimpPINVOKE.aiCameraVector_GetRange(swigCPtr, index, count);
aiCameraVector ret = (cPtr == IntPtr.Zero) ? null : new aiCameraVector(cPtr, true); aiCameraVector ret = (cPtr == IntPtr.Zero) ? null : new aiCameraVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Insert(int index, aiCamera x) { public void Insert(int index, aiCamera x) {
Assimp_NETPINVOKE.aiCameraVector_Insert(swigCPtr, index, aiCamera.getCPtr(x)); AssimpPINVOKE.aiCameraVector_Insert(swigCPtr, index, aiCamera.getCPtr(x));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void InsertRange(int index, aiCameraVector values) { public void InsertRange(int index, aiCameraVector values) {
Assimp_NETPINVOKE.aiCameraVector_InsertRange(swigCPtr, index, aiCameraVector.getCPtr(values)); AssimpPINVOKE.aiCameraVector_InsertRange(swigCPtr, index, aiCameraVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveAt(int index) { public void RemoveAt(int index) {
Assimp_NETPINVOKE.aiCameraVector_RemoveAt(swigCPtr, index); AssimpPINVOKE.aiCameraVector_RemoveAt(swigCPtr, index);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveRange(int index, int count) { public void RemoveRange(int index, int count) {
Assimp_NETPINVOKE.aiCameraVector_RemoveRange(swigCPtr, index, count); AssimpPINVOKE.aiCameraVector_RemoveRange(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public static aiCameraVector Repeat(aiCamera value, int count) { public static aiCameraVector Repeat(aiCamera value, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.aiCameraVector_Repeat(aiCamera.getCPtr(value), count); IntPtr cPtr = AssimpPINVOKE.aiCameraVector_Repeat(aiCamera.getCPtr(value), count);
aiCameraVector ret = (cPtr == IntPtr.Zero) ? null : new aiCameraVector(cPtr, true); aiCameraVector ret = (cPtr == IntPtr.Zero) ? null : new aiCameraVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Reverse() { public void Reverse() {
Assimp_NETPINVOKE.aiCameraVector_Reverse__SWIG_0(swigCPtr); AssimpPINVOKE.aiCameraVector_Reverse__SWIG_0(swigCPtr);
} }
public void Reverse(int index, int count) { public void Reverse(int index, int count) {
Assimp_NETPINVOKE.aiCameraVector_Reverse__SWIG_1(swigCPtr, index, count); AssimpPINVOKE.aiCameraVector_Reverse__SWIG_1(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void SetRange(int index, aiCameraVector values) { public void SetRange(int index, aiCameraVector values) {
Assimp_NETPINVOKE.aiCameraVector_SetRange(swigCPtr, index, aiCameraVector.getCPtr(values)); AssimpPINVOKE.aiCameraVector_SetRange(swigCPtr, index, aiCameraVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public bool Contains(aiCamera value) { public bool Contains(aiCamera value) {
bool ret = Assimp_NETPINVOKE.aiCameraVector_Contains(swigCPtr, aiCamera.getCPtr(value)); bool ret = AssimpPINVOKE.aiCameraVector_Contains(swigCPtr, aiCamera.getCPtr(value));
return ret; return ret;
} }
public int IndexOf(aiCamera value) { public int IndexOf(aiCamera value) {
int ret = Assimp_NETPINVOKE.aiCameraVector_IndexOf(swigCPtr, aiCamera.getCPtr(value)); int ret = AssimpPINVOKE.aiCameraVector_IndexOf(swigCPtr, aiCamera.getCPtr(value));
return ret; return ret;
} }
public int LastIndexOf(aiCamera value) { public int LastIndexOf(aiCamera value) {
int ret = Assimp_NETPINVOKE.aiCameraVector_LastIndexOf(swigCPtr, aiCamera.getCPtr(value)); int ret = AssimpPINVOKE.aiCameraVector_LastIndexOf(swigCPtr, aiCamera.getCPtr(value));
return ret; return ret;
} }
public bool Remove(aiCamera value) { public bool Remove(aiCamera value) {
bool ret = Assimp_NETPINVOKE.aiCameraVector_Remove(swigCPtr, aiCamera.getCPtr(value)); bool ret = AssimpPINVOKE.aiCameraVector_Remove(swigCPtr, aiCamera.getCPtr(value));
return ret; return ret;
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiColor3D : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiColor3D(swigCPtr); AssimpPINVOKE.delete_aiColor3D(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -40,90 +40,90 @@ public class aiColor3D : IDisposable {
} }
} }
public aiColor3D() : this(Assimp_NETPINVOKE.new_aiColor3D__SWIG_0(), true) { public aiColor3D() : this(AssimpPINVOKE.new_aiColor3D__SWIG_0(), true) {
} }
public aiColor3D(float _r, float _g, float _b) : this(Assimp_NETPINVOKE.new_aiColor3D__SWIG_1(_r, _g, _b), true) { public aiColor3D(float _r, float _g, float _b) : this(AssimpPINVOKE.new_aiColor3D__SWIG_1(_r, _g, _b), true) {
} }
public aiColor3D(float _r) : this(Assimp_NETPINVOKE.new_aiColor3D__SWIG_2(_r), true) { public aiColor3D(float _r) : this(AssimpPINVOKE.new_aiColor3D__SWIG_2(_r), true) {
} }
public aiColor3D(aiColor3D o) : this(Assimp_NETPINVOKE.new_aiColor3D__SWIG_3(aiColor3D.getCPtr(o)), true) { public aiColor3D(aiColor3D o) : this(AssimpPINVOKE.new_aiColor3D__SWIG_3(aiColor3D.getCPtr(o)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public bool __equal__(aiColor3D other) { public bool __equal__(aiColor3D other) {
bool ret = Assimp_NETPINVOKE.aiColor3D___equal__(swigCPtr, aiColor3D.getCPtr(other)); bool ret = AssimpPINVOKE.aiColor3D___equal__(swigCPtr, aiColor3D.getCPtr(other));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public bool __nequal__(aiColor3D other) { public bool __nequal__(aiColor3D other) {
bool ret = Assimp_NETPINVOKE.aiColor3D___nequal__(swigCPtr, aiColor3D.getCPtr(other)); bool ret = AssimpPINVOKE.aiColor3D___nequal__(swigCPtr, aiColor3D.getCPtr(other));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public aiColor3D __add__(aiColor3D c) { public aiColor3D __add__(aiColor3D c) {
aiColor3D ret = new aiColor3D(Assimp_NETPINVOKE.aiColor3D___add__(swigCPtr, aiColor3D.getCPtr(c)), true); aiColor3D ret = new aiColor3D(AssimpPINVOKE.aiColor3D___add__(swigCPtr, aiColor3D.getCPtr(c)), true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public aiColor3D __sub__(aiColor3D c) { public aiColor3D __sub__(aiColor3D c) {
aiColor3D ret = new aiColor3D(Assimp_NETPINVOKE.aiColor3D___sub__(swigCPtr, aiColor3D.getCPtr(c)), true); aiColor3D ret = new aiColor3D(AssimpPINVOKE.aiColor3D___sub__(swigCPtr, aiColor3D.getCPtr(c)), true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public aiColor3D __mul__(aiColor3D c) { public aiColor3D __mul__(aiColor3D c) {
aiColor3D ret = new aiColor3D(Assimp_NETPINVOKE.aiColor3D___mul____SWIG_0(swigCPtr, aiColor3D.getCPtr(c)), true); aiColor3D ret = new aiColor3D(AssimpPINVOKE.aiColor3D___mul____SWIG_0(swigCPtr, aiColor3D.getCPtr(c)), true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public aiColor3D __mul__(float f) { public aiColor3D __mul__(float f) {
aiColor3D ret = new aiColor3D(Assimp_NETPINVOKE.aiColor3D___mul____SWIG_1(swigCPtr, f), true); aiColor3D ret = new aiColor3D(AssimpPINVOKE.aiColor3D___mul____SWIG_1(swigCPtr, f), true);
return ret; return ret;
} }
public float __idx__(uint i) { public float __idx__(uint i) {
float ret = Assimp_NETPINVOKE.aiColor3D___idx____SWIG_0(swigCPtr, i); float ret = AssimpPINVOKE.aiColor3D___idx____SWIG_0(swigCPtr, i);
return ret; return ret;
} }
public bool IsBlack() { public bool IsBlack() {
bool ret = Assimp_NETPINVOKE.aiColor3D_IsBlack(swigCPtr); bool ret = AssimpPINVOKE.aiColor3D_IsBlack(swigCPtr);
return ret; return ret;
} }
public float r { public float r {
set { set {
Assimp_NETPINVOKE.aiColor3D_r_set(swigCPtr, value); AssimpPINVOKE.aiColor3D_r_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiColor3D_r_get(swigCPtr); float ret = AssimpPINVOKE.aiColor3D_r_get(swigCPtr);
return ret; return ret;
} }
} }
public float g { public float g {
set { set {
Assimp_NETPINVOKE.aiColor3D_g_set(swigCPtr, value); AssimpPINVOKE.aiColor3D_g_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiColor3D_g_get(swigCPtr); float ret = AssimpPINVOKE.aiColor3D_g_get(swigCPtr);
return ret; return ret;
} }
} }
public float b { public float b {
set { set {
Assimp_NETPINVOKE.aiColor3D_b_set(swigCPtr, value); AssimpPINVOKE.aiColor3D_b_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiColor3D_b_get(swigCPtr); float ret = AssimpPINVOKE.aiColor3D_b_get(swigCPtr);
return ret; return ret;
} }
} }

View File

@ -0,0 +1,140 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.0
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class aiColor4D : IDisposable {
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal aiColor4D(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(aiColor4D obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~aiColor4D() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
AssimpPINVOKE.delete_aiColor4D(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public aiColor4D() : this(AssimpPINVOKE.new_aiColor4D__SWIG_0(), true) {
}
public aiColor4D(float _r, float _g, float _b, float _a) : this(AssimpPINVOKE.new_aiColor4D__SWIG_1(_r, _g, _b, _a), true) {
}
public aiColor4D(float _r) : this(AssimpPINVOKE.new_aiColor4D__SWIG_2(_r), true) {
}
public aiColor4D(aiColor4D o) : this(AssimpPINVOKE.new_aiColor4D__SWIG_3(aiColor4D.getCPtr(o)), true) {
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public aiColor4D __addnset__(aiColor4D o) {
aiColor4D ret = new aiColor4D(AssimpPINVOKE.aiColor4D___addnset__(swigCPtr, aiColor4D.getCPtr(o)), false);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public aiColor4D __subnset__(aiColor4D o) {
aiColor4D ret = new aiColor4D(AssimpPINVOKE.aiColor4D___subnset__(swigCPtr, aiColor4D.getCPtr(o)), false);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public aiColor4D __mulnset__(float f) {
aiColor4D ret = new aiColor4D(AssimpPINVOKE.aiColor4D___mulnset__(swigCPtr, f), false);
return ret;
}
public aiColor4D __divnset__(float f) {
aiColor4D ret = new aiColor4D(AssimpPINVOKE.aiColor4D___divnset__(swigCPtr, f), false);
return ret;
}
public bool __equal__(aiColor4D other) {
bool ret = AssimpPINVOKE.aiColor4D___equal__(swigCPtr, aiColor4D.getCPtr(other));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public bool __nequal__(aiColor4D other) {
bool ret = AssimpPINVOKE.aiColor4D___nequal__(swigCPtr, aiColor4D.getCPtr(other));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public float __idx__(uint i) {
float ret = AssimpPINVOKE.aiColor4D___idx____SWIG_0(swigCPtr, i);
return ret;
}
public bool IsBlack() {
bool ret = AssimpPINVOKE.aiColor4D_IsBlack(swigCPtr);
return ret;
}
public float r {
set {
AssimpPINVOKE.aiColor4D_r_set(swigCPtr, value);
}
get {
float ret = AssimpPINVOKE.aiColor4D_r_get(swigCPtr);
return ret;
}
}
public float g {
set {
AssimpPINVOKE.aiColor4D_g_set(swigCPtr, value);
}
get {
float ret = AssimpPINVOKE.aiColor4D_g_get(swigCPtr);
return ret;
}
}
public float b {
set {
AssimpPINVOKE.aiColor4D_b_set(swigCPtr, value);
}
get {
float ret = AssimpPINVOKE.aiColor4D_b_get(swigCPtr);
return ret;
}
}
public float a {
set {
AssimpPINVOKE.aiColor4D_a_set(swigCPtr, value);
}
get {
float ret = AssimpPINVOKE.aiColor4D_a_get(swigCPtr);
return ret;
}
}
}

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -12,7 +12,7 @@ using System.Runtime.InteropServices;
public class aiColor4DVector : IDisposable, System.Collections.IEnumerable public class aiColor4DVector : IDisposable, System.Collections.IEnumerable
#if !SWIG_DOTNET_1 #if !SWIG_DOTNET_1
, System.Collections.Generic.IList<SWIGTYPE_p_aiColor4D> , System.Collections.Generic.IList<aiColor4D>
#endif #endif
{ {
private HandleRef swigCPtr; private HandleRef swigCPtr;
@ -36,7 +36,7 @@ public class aiColor4DVector : IDisposable, System.Collections.IEnumerable
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiColor4DVector(swigCPtr); AssimpPINVOKE.delete_aiColor4DVector(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -47,7 +47,7 @@ public class aiColor4DVector : IDisposable, System.Collections.IEnumerable
public aiColor4DVector(System.Collections.ICollection c) : this() { public aiColor4DVector(System.Collections.ICollection c) : this() {
if (c == null) if (c == null)
throw new ArgumentNullException("c"); throw new ArgumentNullException("c");
foreach (SWIGTYPE_p_aiColor4D element in c) { foreach (aiColor4D element in c) {
this.Add(element); this.Add(element);
} }
} }
@ -64,7 +64,7 @@ public class aiColor4DVector : IDisposable, System.Collections.IEnumerable
} }
} }
public SWIGTYPE_p_aiColor4D this[int index] { public aiColor4D this[int index] {
get { get {
return getitem(index); return getitem(index);
} }
@ -99,7 +99,7 @@ public class aiColor4DVector : IDisposable, System.Collections.IEnumerable
#if SWIG_DOTNET_1 #if SWIG_DOTNET_1
public void CopyTo(System.Array array) public void CopyTo(System.Array array)
#else #else
public void CopyTo(SWIGTYPE_p_aiColor4D[] array) public void CopyTo(aiColor4D[] array)
#endif #endif
{ {
CopyTo(0, array, 0, this.Count); CopyTo(0, array, 0, this.Count);
@ -108,7 +108,7 @@ public class aiColor4DVector : IDisposable, System.Collections.IEnumerable
#if SWIG_DOTNET_1 #if SWIG_DOTNET_1
public void CopyTo(System.Array array, int arrayIndex) public void CopyTo(System.Array array, int arrayIndex)
#else #else
public void CopyTo(SWIGTYPE_p_aiColor4D[] array, int arrayIndex) public void CopyTo(aiColor4D[] array, int arrayIndex)
#endif #endif
{ {
CopyTo(0, array, arrayIndex, this.Count); CopyTo(0, array, arrayIndex, this.Count);
@ -117,7 +117,7 @@ public class aiColor4DVector : IDisposable, System.Collections.IEnumerable
#if SWIG_DOTNET_1 #if SWIG_DOTNET_1
public void CopyTo(int index, System.Array array, int arrayIndex, int count) public void CopyTo(int index, System.Array array, int arrayIndex, int count)
#else #else
public void CopyTo(int index, SWIGTYPE_p_aiColor4D[] array, int arrayIndex, int count) public void CopyTo(int index, aiColor4D[] array, int arrayIndex, int count)
#endif #endif
{ {
if (array == null) if (array == null)
@ -137,7 +137,7 @@ public class aiColor4DVector : IDisposable, System.Collections.IEnumerable
} }
#if !SWIG_DOTNET_1 #if !SWIG_DOTNET_1
System.Collections.Generic.IEnumerator<SWIGTYPE_p_aiColor4D> System.Collections.Generic.IEnumerable<SWIGTYPE_p_aiColor4D>.GetEnumerator() { System.Collections.Generic.IEnumerator<aiColor4D> System.Collections.Generic.IEnumerable<aiColor4D>.GetEnumerator() {
return new aiColor4DVectorEnumerator(this); return new aiColor4DVectorEnumerator(this);
} }
#endif #endif
@ -157,7 +157,7 @@ public class aiColor4DVector : IDisposable, System.Collections.IEnumerable
/// tricky to detect unmanaged code that modifies the collection under our feet. /// tricky to detect unmanaged code that modifies the collection under our feet.
public sealed class aiColor4DVectorEnumerator : System.Collections.IEnumerator public sealed class aiColor4DVectorEnumerator : System.Collections.IEnumerator
#if !SWIG_DOTNET_1 #if !SWIG_DOTNET_1
, System.Collections.Generic.IEnumerator<SWIGTYPE_p_aiColor4D> , System.Collections.Generic.IEnumerator<aiColor4D>
#endif #endif
{ {
private aiColor4DVector collectionRef; private aiColor4DVector collectionRef;
@ -173,7 +173,7 @@ public class aiColor4DVector : IDisposable, System.Collections.IEnumerable
} }
// Type-safe iterator Current // Type-safe iterator Current
public SWIGTYPE_p_aiColor4D Current { public aiColor4D Current {
get { get {
if (currentIndex == -1) if (currentIndex == -1)
throw new InvalidOperationException("Enumeration not started."); throw new InvalidOperationException("Enumeration not started.");
@ -181,7 +181,7 @@ public class aiColor4DVector : IDisposable, System.Collections.IEnumerable
throw new InvalidOperationException("Enumeration finished."); throw new InvalidOperationException("Enumeration finished.");
if (currentObject == null) if (currentObject == null)
throw new InvalidOperationException("Collection modified."); throw new InvalidOperationException("Collection modified.");
return (SWIGTYPE_p_aiColor4D)currentObject; return (aiColor4D)currentObject;
} }
} }
@ -221,127 +221,127 @@ public class aiColor4DVector : IDisposable, System.Collections.IEnumerable
} }
public void Clear() { public void Clear() {
Assimp_NETPINVOKE.aiColor4DVector_Clear(swigCPtr); AssimpPINVOKE.aiColor4DVector_Clear(swigCPtr);
} }
public void Add(SWIGTYPE_p_aiColor4D x) { public void Add(aiColor4D x) {
Assimp_NETPINVOKE.aiColor4DVector_Add(swigCPtr, SWIGTYPE_p_aiColor4D.getCPtr(x)); AssimpPINVOKE.aiColor4DVector_Add(swigCPtr, aiColor4D.getCPtr(x));
} }
private uint size() { private uint size() {
uint ret = Assimp_NETPINVOKE.aiColor4DVector_size(swigCPtr); uint ret = AssimpPINVOKE.aiColor4DVector_size(swigCPtr);
return ret; return ret;
} }
private uint capacity() { private uint capacity() {
uint ret = Assimp_NETPINVOKE.aiColor4DVector_capacity(swigCPtr); uint ret = AssimpPINVOKE.aiColor4DVector_capacity(swigCPtr);
return ret; return ret;
} }
private void reserve(uint n) { private void reserve(uint n) {
Assimp_NETPINVOKE.aiColor4DVector_reserve(swigCPtr, n); AssimpPINVOKE.aiColor4DVector_reserve(swigCPtr, n);
} }
public aiColor4DVector() : this(Assimp_NETPINVOKE.new_aiColor4DVector__SWIG_0(), true) { public aiColor4DVector() : this(AssimpPINVOKE.new_aiColor4DVector__SWIG_0(), true) {
} }
public aiColor4DVector(aiColor4DVector other) : this(Assimp_NETPINVOKE.new_aiColor4DVector__SWIG_1(aiColor4DVector.getCPtr(other)), true) { public aiColor4DVector(aiColor4DVector other) : this(AssimpPINVOKE.new_aiColor4DVector__SWIG_1(aiColor4DVector.getCPtr(other)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiColor4DVector(int capacity) : this(Assimp_NETPINVOKE.new_aiColor4DVector__SWIG_2(capacity), true) { public aiColor4DVector(int capacity) : this(AssimpPINVOKE.new_aiColor4DVector__SWIG_2(capacity), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
private SWIGTYPE_p_aiColor4D getitemcopy(int index) { private aiColor4D getitemcopy(int index) {
IntPtr cPtr = Assimp_NETPINVOKE.aiColor4DVector_getitemcopy(swigCPtr, index); IntPtr cPtr = AssimpPINVOKE.aiColor4DVector_getitemcopy(swigCPtr, index);
SWIGTYPE_p_aiColor4D ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_aiColor4D(cPtr, false); aiColor4D ret = (cPtr == IntPtr.Zero) ? null : new aiColor4D(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private SWIGTYPE_p_aiColor4D getitem(int index) { private aiColor4D getitem(int index) {
IntPtr cPtr = Assimp_NETPINVOKE.aiColor4DVector_getitem(swigCPtr, index); IntPtr cPtr = AssimpPINVOKE.aiColor4DVector_getitem(swigCPtr, index);
SWIGTYPE_p_aiColor4D ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_aiColor4D(cPtr, false); aiColor4D ret = (cPtr == IntPtr.Zero) ? null : new aiColor4D(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private void setitem(int index, SWIGTYPE_p_aiColor4D val) { private void setitem(int index, aiColor4D val) {
Assimp_NETPINVOKE.aiColor4DVector_setitem(swigCPtr, index, SWIGTYPE_p_aiColor4D.getCPtr(val)); AssimpPINVOKE.aiColor4DVector_setitem(swigCPtr, index, aiColor4D.getCPtr(val));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void AddRange(aiColor4DVector values) { public void AddRange(aiColor4DVector values) {
Assimp_NETPINVOKE.aiColor4DVector_AddRange(swigCPtr, aiColor4DVector.getCPtr(values)); AssimpPINVOKE.aiColor4DVector_AddRange(swigCPtr, aiColor4DVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiColor4DVector GetRange(int index, int count) { public aiColor4DVector GetRange(int index, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.aiColor4DVector_GetRange(swigCPtr, index, count); IntPtr cPtr = AssimpPINVOKE.aiColor4DVector_GetRange(swigCPtr, index, count);
aiColor4DVector ret = (cPtr == IntPtr.Zero) ? null : new aiColor4DVector(cPtr, true); aiColor4DVector ret = (cPtr == IntPtr.Zero) ? null : new aiColor4DVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Insert(int index, SWIGTYPE_p_aiColor4D x) { public void Insert(int index, aiColor4D x) {
Assimp_NETPINVOKE.aiColor4DVector_Insert(swigCPtr, index, SWIGTYPE_p_aiColor4D.getCPtr(x)); AssimpPINVOKE.aiColor4DVector_Insert(swigCPtr, index, aiColor4D.getCPtr(x));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void InsertRange(int index, aiColor4DVector values) { public void InsertRange(int index, aiColor4DVector values) {
Assimp_NETPINVOKE.aiColor4DVector_InsertRange(swigCPtr, index, aiColor4DVector.getCPtr(values)); AssimpPINVOKE.aiColor4DVector_InsertRange(swigCPtr, index, aiColor4DVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveAt(int index) { public void RemoveAt(int index) {
Assimp_NETPINVOKE.aiColor4DVector_RemoveAt(swigCPtr, index); AssimpPINVOKE.aiColor4DVector_RemoveAt(swigCPtr, index);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveRange(int index, int count) { public void RemoveRange(int index, int count) {
Assimp_NETPINVOKE.aiColor4DVector_RemoveRange(swigCPtr, index, count); AssimpPINVOKE.aiColor4DVector_RemoveRange(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public static aiColor4DVector Repeat(SWIGTYPE_p_aiColor4D value, int count) { public static aiColor4DVector Repeat(aiColor4D value, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.aiColor4DVector_Repeat(SWIGTYPE_p_aiColor4D.getCPtr(value), count); IntPtr cPtr = AssimpPINVOKE.aiColor4DVector_Repeat(aiColor4D.getCPtr(value), count);
aiColor4DVector ret = (cPtr == IntPtr.Zero) ? null : new aiColor4DVector(cPtr, true); aiColor4DVector ret = (cPtr == IntPtr.Zero) ? null : new aiColor4DVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Reverse() { public void Reverse() {
Assimp_NETPINVOKE.aiColor4DVector_Reverse__SWIG_0(swigCPtr); AssimpPINVOKE.aiColor4DVector_Reverse__SWIG_0(swigCPtr);
} }
public void Reverse(int index, int count) { public void Reverse(int index, int count) {
Assimp_NETPINVOKE.aiColor4DVector_Reverse__SWIG_1(swigCPtr, index, count); AssimpPINVOKE.aiColor4DVector_Reverse__SWIG_1(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void SetRange(int index, aiColor4DVector values) { public void SetRange(int index, aiColor4DVector values) {
Assimp_NETPINVOKE.aiColor4DVector_SetRange(swigCPtr, index, aiColor4DVector.getCPtr(values)); AssimpPINVOKE.aiColor4DVector_SetRange(swigCPtr, index, aiColor4DVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public bool Contains(SWIGTYPE_p_aiColor4D value) { public bool Contains(aiColor4D value) {
bool ret = Assimp_NETPINVOKE.aiColor4DVector_Contains(swigCPtr, SWIGTYPE_p_aiColor4D.getCPtr(value)); bool ret = AssimpPINVOKE.aiColor4DVector_Contains(swigCPtr, aiColor4D.getCPtr(value));
return ret; return ret;
} }
public int IndexOf(SWIGTYPE_p_aiColor4D value) { public int IndexOf(aiColor4D value) {
int ret = Assimp_NETPINVOKE.aiColor4DVector_IndexOf(swigCPtr, SWIGTYPE_p_aiColor4D.getCPtr(value)); int ret = AssimpPINVOKE.aiColor4DVector_IndexOf(swigCPtr, aiColor4D.getCPtr(value));
return ret; return ret;
} }
public int LastIndexOf(SWIGTYPE_p_aiColor4D value) { public int LastIndexOf(aiColor4D value) {
int ret = Assimp_NETPINVOKE.aiColor4DVector_LastIndexOf(swigCPtr, SWIGTYPE_p_aiColor4D.getCPtr(value)); int ret = AssimpPINVOKE.aiColor4DVector_LastIndexOf(swigCPtr, aiColor4D.getCPtr(value));
return ret; return ret;
} }
public bool Remove(SWIGTYPE_p_aiColor4D value) { public bool Remove(aiColor4D value) {
bool ret = Assimp_NETPINVOKE.aiColor4DVector_Remove(swigCPtr, SWIGTYPE_p_aiColor4D.getCPtr(value)); bool ret = AssimpPINVOKE.aiColor4DVector_Remove(swigCPtr, aiColor4D.getCPtr(value));
return ret; return ret;
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -36,7 +36,7 @@ public class aiColor4DVectorVector : IDisposable, System.Collections.IEnumerable
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiColor4DVectorVector(swigCPtr); AssimpPINVOKE.delete_aiColor4DVectorVector(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -221,107 +221,107 @@ public class aiColor4DVectorVector : IDisposable, System.Collections.IEnumerable
} }
public void Clear() { public void Clear() {
Assimp_NETPINVOKE.aiColor4DVectorVector_Clear(swigCPtr); AssimpPINVOKE.aiColor4DVectorVector_Clear(swigCPtr);
} }
public void Add(aiColor4DVector x) { public void Add(aiColor4DVector x) {
Assimp_NETPINVOKE.aiColor4DVectorVector_Add(swigCPtr, aiColor4DVector.getCPtr(x)); AssimpPINVOKE.aiColor4DVectorVector_Add(swigCPtr, aiColor4DVector.getCPtr(x));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
private uint size() { private uint size() {
uint ret = Assimp_NETPINVOKE.aiColor4DVectorVector_size(swigCPtr); uint ret = AssimpPINVOKE.aiColor4DVectorVector_size(swigCPtr);
return ret; return ret;
} }
private uint capacity() { private uint capacity() {
uint ret = Assimp_NETPINVOKE.aiColor4DVectorVector_capacity(swigCPtr); uint ret = AssimpPINVOKE.aiColor4DVectorVector_capacity(swigCPtr);
return ret; return ret;
} }
private void reserve(uint n) { private void reserve(uint n) {
Assimp_NETPINVOKE.aiColor4DVectorVector_reserve(swigCPtr, n); AssimpPINVOKE.aiColor4DVectorVector_reserve(swigCPtr, n);
} }
public aiColor4DVectorVector() : this(Assimp_NETPINVOKE.new_aiColor4DVectorVector__SWIG_0(), true) { public aiColor4DVectorVector() : this(AssimpPINVOKE.new_aiColor4DVectorVector__SWIG_0(), true) {
} }
public aiColor4DVectorVector(aiColor4DVectorVector other) : this(Assimp_NETPINVOKE.new_aiColor4DVectorVector__SWIG_1(aiColor4DVectorVector.getCPtr(other)), true) { public aiColor4DVectorVector(aiColor4DVectorVector other) : this(AssimpPINVOKE.new_aiColor4DVectorVector__SWIG_1(aiColor4DVectorVector.getCPtr(other)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiColor4DVectorVector(int capacity) : this(Assimp_NETPINVOKE.new_aiColor4DVectorVector__SWIG_2(capacity), true) { public aiColor4DVectorVector(int capacity) : this(AssimpPINVOKE.new_aiColor4DVectorVector__SWIG_2(capacity), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
private aiColor4DVector getitemcopy(int index) { private aiColor4DVector getitemcopy(int index) {
aiColor4DVector ret = new aiColor4DVector(Assimp_NETPINVOKE.aiColor4DVectorVector_getitemcopy(swigCPtr, index), true); aiColor4DVector ret = new aiColor4DVector(AssimpPINVOKE.aiColor4DVectorVector_getitemcopy(swigCPtr, index), true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private aiColor4DVector getitem(int index) { private aiColor4DVector getitem(int index) {
aiColor4DVector ret = new aiColor4DVector(Assimp_NETPINVOKE.aiColor4DVectorVector_getitem(swigCPtr, index), false); aiColor4DVector ret = new aiColor4DVector(AssimpPINVOKE.aiColor4DVectorVector_getitem(swigCPtr, index), false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private void setitem(int index, aiColor4DVector val) { private void setitem(int index, aiColor4DVector val) {
Assimp_NETPINVOKE.aiColor4DVectorVector_setitem(swigCPtr, index, aiColor4DVector.getCPtr(val)); AssimpPINVOKE.aiColor4DVectorVector_setitem(swigCPtr, index, aiColor4DVector.getCPtr(val));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void AddRange(aiColor4DVectorVector values) { public void AddRange(aiColor4DVectorVector values) {
Assimp_NETPINVOKE.aiColor4DVectorVector_AddRange(swigCPtr, aiColor4DVectorVector.getCPtr(values)); AssimpPINVOKE.aiColor4DVectorVector_AddRange(swigCPtr, aiColor4DVectorVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiColor4DVectorVector GetRange(int index, int count) { public aiColor4DVectorVector GetRange(int index, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.aiColor4DVectorVector_GetRange(swigCPtr, index, count); IntPtr cPtr = AssimpPINVOKE.aiColor4DVectorVector_GetRange(swigCPtr, index, count);
aiColor4DVectorVector ret = (cPtr == IntPtr.Zero) ? null : new aiColor4DVectorVector(cPtr, true); aiColor4DVectorVector ret = (cPtr == IntPtr.Zero) ? null : new aiColor4DVectorVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Insert(int index, aiColor4DVector x) { public void Insert(int index, aiColor4DVector x) {
Assimp_NETPINVOKE.aiColor4DVectorVector_Insert(swigCPtr, index, aiColor4DVector.getCPtr(x)); AssimpPINVOKE.aiColor4DVectorVector_Insert(swigCPtr, index, aiColor4DVector.getCPtr(x));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void InsertRange(int index, aiColor4DVectorVector values) { public void InsertRange(int index, aiColor4DVectorVector values) {
Assimp_NETPINVOKE.aiColor4DVectorVector_InsertRange(swigCPtr, index, aiColor4DVectorVector.getCPtr(values)); AssimpPINVOKE.aiColor4DVectorVector_InsertRange(swigCPtr, index, aiColor4DVectorVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveAt(int index) { public void RemoveAt(int index) {
Assimp_NETPINVOKE.aiColor4DVectorVector_RemoveAt(swigCPtr, index); AssimpPINVOKE.aiColor4DVectorVector_RemoveAt(swigCPtr, index);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveRange(int index, int count) { public void RemoveRange(int index, int count) {
Assimp_NETPINVOKE.aiColor4DVectorVector_RemoveRange(swigCPtr, index, count); AssimpPINVOKE.aiColor4DVectorVector_RemoveRange(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public static aiColor4DVectorVector Repeat(aiColor4DVector value, int count) { public static aiColor4DVectorVector Repeat(aiColor4DVector value, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.aiColor4DVectorVector_Repeat(aiColor4DVector.getCPtr(value), count); IntPtr cPtr = AssimpPINVOKE.aiColor4DVectorVector_Repeat(aiColor4DVector.getCPtr(value), count);
aiColor4DVectorVector ret = (cPtr == IntPtr.Zero) ? null : new aiColor4DVectorVector(cPtr, true); aiColor4DVectorVector ret = (cPtr == IntPtr.Zero) ? null : new aiColor4DVectorVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Reverse() { public void Reverse() {
Assimp_NETPINVOKE.aiColor4DVectorVector_Reverse__SWIG_0(swigCPtr); AssimpPINVOKE.aiColor4DVectorVector_Reverse__SWIG_0(swigCPtr);
} }
public void Reverse(int index, int count) { public void Reverse(int index, int count) {
Assimp_NETPINVOKE.aiColor4DVectorVector_Reverse__SWIG_1(swigCPtr, index, count); AssimpPINVOKE.aiColor4DVectorVector_Reverse__SWIG_1(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void SetRange(int index, aiColor4DVectorVector values) { public void SetRange(int index, aiColor4DVectorVector values) {
Assimp_NETPINVOKE.aiColor4DVectorVector_SetRange(swigCPtr, index, aiColor4DVectorVector.getCPtr(values)); AssimpPINVOKE.aiColor4DVectorVector_SetRange(swigCPtr, index, aiColor4DVectorVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiFace : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiFace(swigCPtr); AssimpPINVOKE.delete_aiFace(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -40,49 +40,46 @@ public class aiFace : IDisposable {
} }
} }
public UintVector mIndices { get { return GetmIndices(); } }
public uint mNumIndices { public uint mNumIndices {
set { set {
Assimp_NETPINVOKE.aiFace_mNumIndices_set(swigCPtr, value); AssimpPINVOKE.aiFace_mNumIndices_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiFace_mNumIndices_get(swigCPtr); uint ret = AssimpPINVOKE.aiFace_mNumIndices_get(swigCPtr);
return ret; return ret;
} }
} }
public SWIGTYPE_p_unsigned_int mIndices { public aiFace() : this(AssimpPINVOKE.new_aiFace__SWIG_0(), true) {
set {
Assimp_NETPINVOKE.aiFace_mIndices_set(swigCPtr, SWIGTYPE_p_unsigned_int.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiFace_mIndices_get(swigCPtr);
SWIGTYPE_p_unsigned_int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_int(cPtr, false);
return ret;
}
} }
public aiFace() : this(Assimp_NETPINVOKE.new_aiFace__SWIG_0(), true) { public aiFace(aiFace o) : this(AssimpPINVOKE.new_aiFace__SWIG_1(aiFace.getCPtr(o)), true) {
} if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
public aiFace(aiFace o) : this(Assimp_NETPINVOKE.new_aiFace__SWIG_1(aiFace.getCPtr(o)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
} }
public aiFace __set__(aiFace o) { public aiFace __set__(aiFace o) {
aiFace ret = new aiFace(Assimp_NETPINVOKE.aiFace___set__(swigCPtr, aiFace.getCPtr(o)), false); aiFace ret = new aiFace(AssimpPINVOKE.aiFace___set__(swigCPtr, aiFace.getCPtr(o)), false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public bool __equal__(aiFace o) { public bool __equal__(aiFace o) {
bool ret = Assimp_NETPINVOKE.aiFace___equal__(swigCPtr, aiFace.getCPtr(o)); bool ret = AssimpPINVOKE.aiFace___equal__(swigCPtr, aiFace.getCPtr(o));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public bool __nequal__(aiFace o) { public bool __nequal__(aiFace o) {
bool ret = Assimp_NETPINVOKE.aiFace___nequal__(swigCPtr, aiFace.getCPtr(o)); bool ret = AssimpPINVOKE.aiFace___nequal__(swigCPtr, aiFace.getCPtr(o));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private UintVector GetmIndices() {
IntPtr cPtr = AssimpPINVOKE.aiFace_GetmIndices(swigCPtr);
UintVector ret = (cPtr == IntPtr.Zero) ? null : new UintVector(cPtr, true);
return ret; return ret;
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -36,7 +36,7 @@ public class aiFaceVector : IDisposable, System.Collections.IEnumerable
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiFaceVector(swigCPtr); AssimpPINVOKE.delete_aiFaceVector(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -221,127 +221,127 @@ public class aiFaceVector : IDisposable, System.Collections.IEnumerable
} }
public void Clear() { public void Clear() {
Assimp_NETPINVOKE.aiFaceVector_Clear(swigCPtr); AssimpPINVOKE.aiFaceVector_Clear(swigCPtr);
} }
public void Add(aiFace x) { public void Add(aiFace x) {
Assimp_NETPINVOKE.aiFaceVector_Add(swigCPtr, aiFace.getCPtr(x)); AssimpPINVOKE.aiFaceVector_Add(swigCPtr, aiFace.getCPtr(x));
} }
private uint size() { private uint size() {
uint ret = Assimp_NETPINVOKE.aiFaceVector_size(swigCPtr); uint ret = AssimpPINVOKE.aiFaceVector_size(swigCPtr);
return ret; return ret;
} }
private uint capacity() { private uint capacity() {
uint ret = Assimp_NETPINVOKE.aiFaceVector_capacity(swigCPtr); uint ret = AssimpPINVOKE.aiFaceVector_capacity(swigCPtr);
return ret; return ret;
} }
private void reserve(uint n) { private void reserve(uint n) {
Assimp_NETPINVOKE.aiFaceVector_reserve(swigCPtr, n); AssimpPINVOKE.aiFaceVector_reserve(swigCPtr, n);
} }
public aiFaceVector() : this(Assimp_NETPINVOKE.new_aiFaceVector__SWIG_0(), true) { public aiFaceVector() : this(AssimpPINVOKE.new_aiFaceVector__SWIG_0(), true) {
} }
public aiFaceVector(aiFaceVector other) : this(Assimp_NETPINVOKE.new_aiFaceVector__SWIG_1(aiFaceVector.getCPtr(other)), true) { public aiFaceVector(aiFaceVector other) : this(AssimpPINVOKE.new_aiFaceVector__SWIG_1(aiFaceVector.getCPtr(other)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiFaceVector(int capacity) : this(Assimp_NETPINVOKE.new_aiFaceVector__SWIG_2(capacity), true) { public aiFaceVector(int capacity) : this(AssimpPINVOKE.new_aiFaceVector__SWIG_2(capacity), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
private aiFace getitemcopy(int index) { private aiFace getitemcopy(int index) {
IntPtr cPtr = Assimp_NETPINVOKE.aiFaceVector_getitemcopy(swigCPtr, index); IntPtr cPtr = AssimpPINVOKE.aiFaceVector_getitemcopy(swigCPtr, index);
aiFace ret = (cPtr == IntPtr.Zero) ? null : new aiFace(cPtr, false); aiFace ret = (cPtr == IntPtr.Zero) ? null : new aiFace(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private aiFace getitem(int index) { private aiFace getitem(int index) {
IntPtr cPtr = Assimp_NETPINVOKE.aiFaceVector_getitem(swigCPtr, index); IntPtr cPtr = AssimpPINVOKE.aiFaceVector_getitem(swigCPtr, index);
aiFace ret = (cPtr == IntPtr.Zero) ? null : new aiFace(cPtr, false); aiFace ret = (cPtr == IntPtr.Zero) ? null : new aiFace(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private void setitem(int index, aiFace val) { private void setitem(int index, aiFace val) {
Assimp_NETPINVOKE.aiFaceVector_setitem(swigCPtr, index, aiFace.getCPtr(val)); AssimpPINVOKE.aiFaceVector_setitem(swigCPtr, index, aiFace.getCPtr(val));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void AddRange(aiFaceVector values) { public void AddRange(aiFaceVector values) {
Assimp_NETPINVOKE.aiFaceVector_AddRange(swigCPtr, aiFaceVector.getCPtr(values)); AssimpPINVOKE.aiFaceVector_AddRange(swigCPtr, aiFaceVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiFaceVector GetRange(int index, int count) { public aiFaceVector GetRange(int index, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.aiFaceVector_GetRange(swigCPtr, index, count); IntPtr cPtr = AssimpPINVOKE.aiFaceVector_GetRange(swigCPtr, index, count);
aiFaceVector ret = (cPtr == IntPtr.Zero) ? null : new aiFaceVector(cPtr, true); aiFaceVector ret = (cPtr == IntPtr.Zero) ? null : new aiFaceVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Insert(int index, aiFace x) { public void Insert(int index, aiFace x) {
Assimp_NETPINVOKE.aiFaceVector_Insert(swigCPtr, index, aiFace.getCPtr(x)); AssimpPINVOKE.aiFaceVector_Insert(swigCPtr, index, aiFace.getCPtr(x));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void InsertRange(int index, aiFaceVector values) { public void InsertRange(int index, aiFaceVector values) {
Assimp_NETPINVOKE.aiFaceVector_InsertRange(swigCPtr, index, aiFaceVector.getCPtr(values)); AssimpPINVOKE.aiFaceVector_InsertRange(swigCPtr, index, aiFaceVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveAt(int index) { public void RemoveAt(int index) {
Assimp_NETPINVOKE.aiFaceVector_RemoveAt(swigCPtr, index); AssimpPINVOKE.aiFaceVector_RemoveAt(swigCPtr, index);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveRange(int index, int count) { public void RemoveRange(int index, int count) {
Assimp_NETPINVOKE.aiFaceVector_RemoveRange(swigCPtr, index, count); AssimpPINVOKE.aiFaceVector_RemoveRange(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public static aiFaceVector Repeat(aiFace value, int count) { public static aiFaceVector Repeat(aiFace value, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.aiFaceVector_Repeat(aiFace.getCPtr(value), count); IntPtr cPtr = AssimpPINVOKE.aiFaceVector_Repeat(aiFace.getCPtr(value), count);
aiFaceVector ret = (cPtr == IntPtr.Zero) ? null : new aiFaceVector(cPtr, true); aiFaceVector ret = (cPtr == IntPtr.Zero) ? null : new aiFaceVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Reverse() { public void Reverse() {
Assimp_NETPINVOKE.aiFaceVector_Reverse__SWIG_0(swigCPtr); AssimpPINVOKE.aiFaceVector_Reverse__SWIG_0(swigCPtr);
} }
public void Reverse(int index, int count) { public void Reverse(int index, int count) {
Assimp_NETPINVOKE.aiFaceVector_Reverse__SWIG_1(swigCPtr, index, count); AssimpPINVOKE.aiFaceVector_Reverse__SWIG_1(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void SetRange(int index, aiFaceVector values) { public void SetRange(int index, aiFaceVector values) {
Assimp_NETPINVOKE.aiFaceVector_SetRange(swigCPtr, index, aiFaceVector.getCPtr(values)); AssimpPINVOKE.aiFaceVector_SetRange(swigCPtr, index, aiFaceVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public bool Contains(aiFace value) { public bool Contains(aiFace value) {
bool ret = Assimp_NETPINVOKE.aiFaceVector_Contains(swigCPtr, aiFace.getCPtr(value)); bool ret = AssimpPINVOKE.aiFaceVector_Contains(swigCPtr, aiFace.getCPtr(value));
return ret; return ret;
} }
public int IndexOf(aiFace value) { public int IndexOf(aiFace value) {
int ret = Assimp_NETPINVOKE.aiFaceVector_IndexOf(swigCPtr, aiFace.getCPtr(value)); int ret = AssimpPINVOKE.aiFaceVector_IndexOf(swigCPtr, aiFace.getCPtr(value));
return ret; return ret;
} }
public int LastIndexOf(aiFace value) { public int LastIndexOf(aiFace value) {
int ret = Assimp_NETPINVOKE.aiFaceVector_LastIndexOf(swigCPtr, aiFace.getCPtr(value)); int ret = AssimpPINVOKE.aiFaceVector_LastIndexOf(swigCPtr, aiFace.getCPtr(value));
return ret; return ret;
} }
public bool Remove(aiFace value) { public bool Remove(aiFace value) {
bool ret = Assimp_NETPINVOKE.aiFaceVector_Remove(swigCPtr, aiFace.getCPtr(value)); bool ret = AssimpPINVOKE.aiFaceVector_Remove(swigCPtr, aiFace.getCPtr(value));
return ret; return ret;
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiLight : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiLight(swigCPtr); AssimpPINVOKE.delete_aiLight(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -42,10 +42,10 @@ public class aiLight : IDisposable {
public aiString mName { public aiString mName {
set { set {
Assimp_NETPINVOKE.aiLight_mName_set(swigCPtr, aiString.getCPtr(value)); AssimpPINVOKE.aiLight_mName_set(swigCPtr, aiString.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiLight_mName_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiLight_mName_get(swigCPtr);
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false); aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
return ret; return ret;
} }
@ -53,20 +53,20 @@ public class aiLight : IDisposable {
public aiLightSourceType mType { public aiLightSourceType mType {
set { set {
Assimp_NETPINVOKE.aiLight_mType_set(swigCPtr, (int)value); AssimpPINVOKE.aiLight_mType_set(swigCPtr, (int)value);
} }
get { get {
aiLightSourceType ret = (aiLightSourceType)Assimp_NETPINVOKE.aiLight_mType_get(swigCPtr); aiLightSourceType ret = (aiLightSourceType)AssimpPINVOKE.aiLight_mType_get(swigCPtr);
return ret; return ret;
} }
} }
public aiVector3D mPosition { public aiVector3D mPosition {
set { set {
Assimp_NETPINVOKE.aiLight_mPosition_set(swigCPtr, aiVector3D.getCPtr(value)); AssimpPINVOKE.aiLight_mPosition_set(swigCPtr, aiVector3D.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiLight_mPosition_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiLight_mPosition_get(swigCPtr);
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false); aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
return ret; return ret;
} }
@ -74,10 +74,10 @@ public class aiLight : IDisposable {
public aiVector3D mDirection { public aiVector3D mDirection {
set { set {
Assimp_NETPINVOKE.aiLight_mDirection_set(swigCPtr, aiVector3D.getCPtr(value)); AssimpPINVOKE.aiLight_mDirection_set(swigCPtr, aiVector3D.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiLight_mDirection_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiLight_mDirection_get(swigCPtr);
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false); aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
return ret; return ret;
} }
@ -85,40 +85,40 @@ public class aiLight : IDisposable {
public float mAttenuationConstant { public float mAttenuationConstant {
set { set {
Assimp_NETPINVOKE.aiLight_mAttenuationConstant_set(swigCPtr, value); AssimpPINVOKE.aiLight_mAttenuationConstant_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiLight_mAttenuationConstant_get(swigCPtr); float ret = AssimpPINVOKE.aiLight_mAttenuationConstant_get(swigCPtr);
return ret; return ret;
} }
} }
public float mAttenuationLinear { public float mAttenuationLinear {
set { set {
Assimp_NETPINVOKE.aiLight_mAttenuationLinear_set(swigCPtr, value); AssimpPINVOKE.aiLight_mAttenuationLinear_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiLight_mAttenuationLinear_get(swigCPtr); float ret = AssimpPINVOKE.aiLight_mAttenuationLinear_get(swigCPtr);
return ret; return ret;
} }
} }
public float mAttenuationQuadratic { public float mAttenuationQuadratic {
set { set {
Assimp_NETPINVOKE.aiLight_mAttenuationQuadratic_set(swigCPtr, value); AssimpPINVOKE.aiLight_mAttenuationQuadratic_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiLight_mAttenuationQuadratic_get(swigCPtr); float ret = AssimpPINVOKE.aiLight_mAttenuationQuadratic_get(swigCPtr);
return ret; return ret;
} }
} }
public aiColor3D mColorDiffuse { public aiColor3D mColorDiffuse {
set { set {
Assimp_NETPINVOKE.aiLight_mColorDiffuse_set(swigCPtr, aiColor3D.getCPtr(value)); AssimpPINVOKE.aiLight_mColorDiffuse_set(swigCPtr, aiColor3D.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiLight_mColorDiffuse_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiLight_mColorDiffuse_get(swigCPtr);
aiColor3D ret = (cPtr == IntPtr.Zero) ? null : new aiColor3D(cPtr, false); aiColor3D ret = (cPtr == IntPtr.Zero) ? null : new aiColor3D(cPtr, false);
return ret; return ret;
} }
@ -126,10 +126,10 @@ public class aiLight : IDisposable {
public aiColor3D mColorSpecular { public aiColor3D mColorSpecular {
set { set {
Assimp_NETPINVOKE.aiLight_mColorSpecular_set(swigCPtr, aiColor3D.getCPtr(value)); AssimpPINVOKE.aiLight_mColorSpecular_set(swigCPtr, aiColor3D.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiLight_mColorSpecular_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiLight_mColorSpecular_get(swigCPtr);
aiColor3D ret = (cPtr == IntPtr.Zero) ? null : new aiColor3D(cPtr, false); aiColor3D ret = (cPtr == IntPtr.Zero) ? null : new aiColor3D(cPtr, false);
return ret; return ret;
} }
@ -137,10 +137,10 @@ public class aiLight : IDisposable {
public aiColor3D mColorAmbient { public aiColor3D mColorAmbient {
set { set {
Assimp_NETPINVOKE.aiLight_mColorAmbient_set(swigCPtr, aiColor3D.getCPtr(value)); AssimpPINVOKE.aiLight_mColorAmbient_set(swigCPtr, aiColor3D.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiLight_mColorAmbient_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiLight_mColorAmbient_get(swigCPtr);
aiColor3D ret = (cPtr == IntPtr.Zero) ? null : new aiColor3D(cPtr, false); aiColor3D ret = (cPtr == IntPtr.Zero) ? null : new aiColor3D(cPtr, false);
return ret; return ret;
} }
@ -148,25 +148,25 @@ public class aiLight : IDisposable {
public float mAngleInnerCone { public float mAngleInnerCone {
set { set {
Assimp_NETPINVOKE.aiLight_mAngleInnerCone_set(swigCPtr, value); AssimpPINVOKE.aiLight_mAngleInnerCone_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiLight_mAngleInnerCone_get(swigCPtr); float ret = AssimpPINVOKE.aiLight_mAngleInnerCone_get(swigCPtr);
return ret; return ret;
} }
} }
public float mAngleOuterCone { public float mAngleOuterCone {
set { set {
Assimp_NETPINVOKE.aiLight_mAngleOuterCone_set(swigCPtr, value); AssimpPINVOKE.aiLight_mAngleOuterCone_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiLight_mAngleOuterCone_get(swigCPtr); float ret = AssimpPINVOKE.aiLight_mAngleOuterCone_get(swigCPtr);
return ret; return ret;
} }
} }
public aiLight() : this(Assimp_NETPINVOKE.new_aiLight(), true) { public aiLight() : this(AssimpPINVOKE.new_aiLight(), true) {
} }
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -36,7 +36,7 @@ public class aiLightVector : IDisposable, System.Collections.IEnumerable
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiLightVector(swigCPtr); AssimpPINVOKE.delete_aiLightVector(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -221,127 +221,127 @@ public class aiLightVector : IDisposable, System.Collections.IEnumerable
} }
public void Clear() { public void Clear() {
Assimp_NETPINVOKE.aiLightVector_Clear(swigCPtr); AssimpPINVOKE.aiLightVector_Clear(swigCPtr);
} }
public void Add(aiLight x) { public void Add(aiLight x) {
Assimp_NETPINVOKE.aiLightVector_Add(swigCPtr, aiLight.getCPtr(x)); AssimpPINVOKE.aiLightVector_Add(swigCPtr, aiLight.getCPtr(x));
} }
private uint size() { private uint size() {
uint ret = Assimp_NETPINVOKE.aiLightVector_size(swigCPtr); uint ret = AssimpPINVOKE.aiLightVector_size(swigCPtr);
return ret; return ret;
} }
private uint capacity() { private uint capacity() {
uint ret = Assimp_NETPINVOKE.aiLightVector_capacity(swigCPtr); uint ret = AssimpPINVOKE.aiLightVector_capacity(swigCPtr);
return ret; return ret;
} }
private void reserve(uint n) { private void reserve(uint n) {
Assimp_NETPINVOKE.aiLightVector_reserve(swigCPtr, n); AssimpPINVOKE.aiLightVector_reserve(swigCPtr, n);
} }
public aiLightVector() : this(Assimp_NETPINVOKE.new_aiLightVector__SWIG_0(), true) { public aiLightVector() : this(AssimpPINVOKE.new_aiLightVector__SWIG_0(), true) {
} }
public aiLightVector(aiLightVector other) : this(Assimp_NETPINVOKE.new_aiLightVector__SWIG_1(aiLightVector.getCPtr(other)), true) { public aiLightVector(aiLightVector other) : this(AssimpPINVOKE.new_aiLightVector__SWIG_1(aiLightVector.getCPtr(other)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiLightVector(int capacity) : this(Assimp_NETPINVOKE.new_aiLightVector__SWIG_2(capacity), true) { public aiLightVector(int capacity) : this(AssimpPINVOKE.new_aiLightVector__SWIG_2(capacity), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
private aiLight getitemcopy(int index) { private aiLight getitemcopy(int index) {
IntPtr cPtr = Assimp_NETPINVOKE.aiLightVector_getitemcopy(swigCPtr, index); IntPtr cPtr = AssimpPINVOKE.aiLightVector_getitemcopy(swigCPtr, index);
aiLight ret = (cPtr == IntPtr.Zero) ? null : new aiLight(cPtr, false); aiLight ret = (cPtr == IntPtr.Zero) ? null : new aiLight(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private aiLight getitem(int index) { private aiLight getitem(int index) {
IntPtr cPtr = Assimp_NETPINVOKE.aiLightVector_getitem(swigCPtr, index); IntPtr cPtr = AssimpPINVOKE.aiLightVector_getitem(swigCPtr, index);
aiLight ret = (cPtr == IntPtr.Zero) ? null : new aiLight(cPtr, false); aiLight ret = (cPtr == IntPtr.Zero) ? null : new aiLight(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private void setitem(int index, aiLight val) { private void setitem(int index, aiLight val) {
Assimp_NETPINVOKE.aiLightVector_setitem(swigCPtr, index, aiLight.getCPtr(val)); AssimpPINVOKE.aiLightVector_setitem(swigCPtr, index, aiLight.getCPtr(val));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void AddRange(aiLightVector values) { public void AddRange(aiLightVector values) {
Assimp_NETPINVOKE.aiLightVector_AddRange(swigCPtr, aiLightVector.getCPtr(values)); AssimpPINVOKE.aiLightVector_AddRange(swigCPtr, aiLightVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiLightVector GetRange(int index, int count) { public aiLightVector GetRange(int index, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.aiLightVector_GetRange(swigCPtr, index, count); IntPtr cPtr = AssimpPINVOKE.aiLightVector_GetRange(swigCPtr, index, count);
aiLightVector ret = (cPtr == IntPtr.Zero) ? null : new aiLightVector(cPtr, true); aiLightVector ret = (cPtr == IntPtr.Zero) ? null : new aiLightVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Insert(int index, aiLight x) { public void Insert(int index, aiLight x) {
Assimp_NETPINVOKE.aiLightVector_Insert(swigCPtr, index, aiLight.getCPtr(x)); AssimpPINVOKE.aiLightVector_Insert(swigCPtr, index, aiLight.getCPtr(x));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void InsertRange(int index, aiLightVector values) { public void InsertRange(int index, aiLightVector values) {
Assimp_NETPINVOKE.aiLightVector_InsertRange(swigCPtr, index, aiLightVector.getCPtr(values)); AssimpPINVOKE.aiLightVector_InsertRange(swigCPtr, index, aiLightVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveAt(int index) { public void RemoveAt(int index) {
Assimp_NETPINVOKE.aiLightVector_RemoveAt(swigCPtr, index); AssimpPINVOKE.aiLightVector_RemoveAt(swigCPtr, index);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveRange(int index, int count) { public void RemoveRange(int index, int count) {
Assimp_NETPINVOKE.aiLightVector_RemoveRange(swigCPtr, index, count); AssimpPINVOKE.aiLightVector_RemoveRange(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public static aiLightVector Repeat(aiLight value, int count) { public static aiLightVector Repeat(aiLight value, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.aiLightVector_Repeat(aiLight.getCPtr(value), count); IntPtr cPtr = AssimpPINVOKE.aiLightVector_Repeat(aiLight.getCPtr(value), count);
aiLightVector ret = (cPtr == IntPtr.Zero) ? null : new aiLightVector(cPtr, true); aiLightVector ret = (cPtr == IntPtr.Zero) ? null : new aiLightVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Reverse() { public void Reverse() {
Assimp_NETPINVOKE.aiLightVector_Reverse__SWIG_0(swigCPtr); AssimpPINVOKE.aiLightVector_Reverse__SWIG_0(swigCPtr);
} }
public void Reverse(int index, int count) { public void Reverse(int index, int count) {
Assimp_NETPINVOKE.aiLightVector_Reverse__SWIG_1(swigCPtr, index, count); AssimpPINVOKE.aiLightVector_Reverse__SWIG_1(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void SetRange(int index, aiLightVector values) { public void SetRange(int index, aiLightVector values) {
Assimp_NETPINVOKE.aiLightVector_SetRange(swigCPtr, index, aiLightVector.getCPtr(values)); AssimpPINVOKE.aiLightVector_SetRange(swigCPtr, index, aiLightVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public bool Contains(aiLight value) { public bool Contains(aiLight value) {
bool ret = Assimp_NETPINVOKE.aiLightVector_Contains(swigCPtr, aiLight.getCPtr(value)); bool ret = AssimpPINVOKE.aiLightVector_Contains(swigCPtr, aiLight.getCPtr(value));
return ret; return ret;
} }
public int IndexOf(aiLight value) { public int IndexOf(aiLight value) {
int ret = Assimp_NETPINVOKE.aiLightVector_IndexOf(swigCPtr, aiLight.getCPtr(value)); int ret = AssimpPINVOKE.aiLightVector_IndexOf(swigCPtr, aiLight.getCPtr(value));
return ret; return ret;
} }
public int LastIndexOf(aiLight value) { public int LastIndexOf(aiLight value) {
int ret = Assimp_NETPINVOKE.aiLightVector_LastIndexOf(swigCPtr, aiLight.getCPtr(value)); int ret = AssimpPINVOKE.aiLightVector_LastIndexOf(swigCPtr, aiLight.getCPtr(value));
return ret; return ret;
} }
public bool Remove(aiLight value) { public bool Remove(aiLight value) {
bool ret = Assimp_NETPINVOKE.aiLightVector_Remove(swigCPtr, aiLight.getCPtr(value)); bool ret = AssimpPINVOKE.aiLightVector_Remove(swigCPtr, aiLight.getCPtr(value));
return ret; return ret;
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiMaterial : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiMaterial(swigCPtr); AssimpPINVOKE.delete_aiMaterial(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -40,73 +40,145 @@ public class aiMaterial : IDisposable {
} }
} }
public aiMaterial() : this(Assimp_NETPINVOKE.new_aiMaterial(), true) { public aiColor4D Diffuse { get { var v = new aiColor4D(); return GetDiffuse(v)?v:DefaultDiffuse; } }
public aiColor4D Specular { get { var v = new aiColor4D(); return GetSpecular(v)?v:DefaultSpecular; } }
public aiColor4D Ambient { get { var v = new aiColor4D(); return GetAmbient(v)?v:DefaultAmbient; } }
public aiColor4D Emissive { get { var v = new aiColor4D(); return GetEmissive(v)?v:DefaultEmissive; } }
public float Opacity { get { float v = 0; return GetOpacity(ref v)?v:DefaultOpacity; } }
public float ShininessStrength { get { float v = 0; return GetShininessStrength(ref v)?v:DefaultShininessStrength; } }
public aiShadingMode ShadingModel { get { int v = 0; return GetShadingModel(ref v)?((aiShadingMode)v):DefaultShadingModel; } }
public aiTextureFlags TexFlagsDiffuse0 { get { int v = 0; return GetTexFlagsDiffuse0(ref v)?((aiTextureFlags)v):DefaultTexFlagsDiffuse0; } }
public aiTextureMapMode MappingModeUDiffuse0 { get { int v = 0; return GetMappingModeUDiffuse0(ref v)?((aiTextureMapMode)v):DefaultMappingModeUDiffuse0; } }
public aiTextureMapMode MappingModeVDiffuse0 { get { int v = 0; return GetMappingModeVDiffuse0(ref v)?((aiTextureMapMode)v):DefaultMappingModeVDiffuse0; } }
public string TextureDiffuse0 { get { var v = new aiString(); return GetTextureDiffuse0(v)?v.ToString():DefaultTextureDiffuse; } }
public bool TwoSided { get { int v = 0; return GetTwoSided(ref v)?(v!=0):DefaultTwoSided; } }
// These values are returned if the value material property isn't set
// Override these if you don't want to check for null
public static aiColor4D DefaultDiffuse = new aiColor4D(1.0f, 1.0f, 1.0f, 1.0f);
public static aiColor4D DefaultSpecular = new aiColor4D(1.0f, 1.0f, 1.0f, 1.0f);
public static aiColor4D DefaultAmbient = new aiColor4D(0.0f, 0.0f, 0.0f, 1.0f);
public static aiColor4D DefaultEmissive = new aiColor4D(0.0f, 0.0f, 0.0f, 1.0f);
public static float DefaultShininessStrength = 1.0f;
public static float DefaultOpacity = 1.0f;
public static aiShadingMode DefaultShadingModel = (aiShadingMode)0;
public static aiTextureFlags DefaultTexFlagsDiffuse0 = (aiTextureFlags)0;
public static aiTextureMapMode DefaultMappingModeUDiffuse0 = aiTextureMapMode.aiTextureMapMode_Wrap;
public static aiTextureMapMode DefaultMappingModeVDiffuse0 = aiTextureMapMode.aiTextureMapMode_Wrap;
public static string DefaultTextureDiffuse = null;
public static bool DefaultTwoSided = false;
public aiMaterial() : this(AssimpPINVOKE.new_aiMaterial(), true) {
} }
public uint GetTextureCount(aiTextureType type) { public uint GetTextureCount(aiTextureType type) {
uint ret = Assimp_NETPINVOKE.aiMaterial_GetTextureCount(swigCPtr, (int)type); uint ret = AssimpPINVOKE.aiMaterial_GetTextureCount(swigCPtr, (int)type);
return ret; return ret;
} }
public aiReturn GetTexture(aiTextureType type, uint index, aiString path, SWIGTYPE_p_aiTextureMapping mapping, SWIGTYPE_p_unsigned_int uvindex, SWIGTYPE_p_float blend, SWIGTYPE_p_aiTextureOp op, SWIGTYPE_p_aiTextureMapMode mapmode) { public bool GetDiffuse(aiColor4D INOUT) {
aiReturn ret = (aiReturn)Assimp_NETPINVOKE.aiMaterial_GetTexture__SWIG_0(swigCPtr, (int)type, index, aiString.getCPtr(path), SWIGTYPE_p_aiTextureMapping.getCPtr(mapping), SWIGTYPE_p_unsigned_int.getCPtr(uvindex), SWIGTYPE_p_float.getCPtr(blend), SWIGTYPE_p_aiTextureOp.getCPtr(op), SWIGTYPE_p_aiTextureMapMode.getCPtr(mapmode)); bool ret = AssimpPINVOKE.aiMaterial_GetDiffuse(swigCPtr, aiColor4D.getCPtr(INOUT));
return ret; return ret;
} }
public aiReturn GetTexture(aiTextureType type, uint index, aiString path, SWIGTYPE_p_aiTextureMapping mapping, SWIGTYPE_p_unsigned_int uvindex, SWIGTYPE_p_float blend, SWIGTYPE_p_aiTextureOp op) { public bool GetSpecular(aiColor4D INOUT) {
aiReturn ret = (aiReturn)Assimp_NETPINVOKE.aiMaterial_GetTexture__SWIG_1(swigCPtr, (int)type, index, aiString.getCPtr(path), SWIGTYPE_p_aiTextureMapping.getCPtr(mapping), SWIGTYPE_p_unsigned_int.getCPtr(uvindex), SWIGTYPE_p_float.getCPtr(blend), SWIGTYPE_p_aiTextureOp.getCPtr(op)); bool ret = AssimpPINVOKE.aiMaterial_GetSpecular(swigCPtr, aiColor4D.getCPtr(INOUT));
return ret; return ret;
} }
public aiReturn GetTexture(aiTextureType type, uint index, aiString path, SWIGTYPE_p_aiTextureMapping mapping, SWIGTYPE_p_unsigned_int uvindex, SWIGTYPE_p_float blend) { public bool GetAmbient(aiColor4D INOUT) {
aiReturn ret = (aiReturn)Assimp_NETPINVOKE.aiMaterial_GetTexture__SWIG_2(swigCPtr, (int)type, index, aiString.getCPtr(path), SWIGTYPE_p_aiTextureMapping.getCPtr(mapping), SWIGTYPE_p_unsigned_int.getCPtr(uvindex), SWIGTYPE_p_float.getCPtr(blend)); bool ret = AssimpPINVOKE.aiMaterial_GetAmbient(swigCPtr, aiColor4D.getCPtr(INOUT));
return ret; return ret;
} }
public aiReturn GetTexture(aiTextureType type, uint index, aiString path, SWIGTYPE_p_aiTextureMapping mapping, SWIGTYPE_p_unsigned_int uvindex) { public bool GetEmissive(aiColor4D INOUT) {
aiReturn ret = (aiReturn)Assimp_NETPINVOKE.aiMaterial_GetTexture__SWIG_3(swigCPtr, (int)type, index, aiString.getCPtr(path), SWIGTYPE_p_aiTextureMapping.getCPtr(mapping), SWIGTYPE_p_unsigned_int.getCPtr(uvindex)); bool ret = AssimpPINVOKE.aiMaterial_GetEmissive(swigCPtr, aiColor4D.getCPtr(INOUT));
return ret; return ret;
} }
public aiReturn GetTexture(aiTextureType type, uint index, aiString path, SWIGTYPE_p_aiTextureMapping mapping) { public bool GetOpacity(ref float INOUT) {
aiReturn ret = (aiReturn)Assimp_NETPINVOKE.aiMaterial_GetTexture__SWIG_4(swigCPtr, (int)type, index, aiString.getCPtr(path), SWIGTYPE_p_aiTextureMapping.getCPtr(mapping)); bool ret = AssimpPINVOKE.aiMaterial_GetOpacity(swigCPtr, ref INOUT);
return ret; return ret;
} }
public aiReturn GetTexture(aiTextureType type, uint index, aiString path) { public bool GetShininessStrength(ref float INOUT) {
aiReturn ret = (aiReturn)Assimp_NETPINVOKE.aiMaterial_GetTexture__SWIG_5(swigCPtr, (int)type, index, aiString.getCPtr(path)); bool ret = AssimpPINVOKE.aiMaterial_GetShininessStrength(swigCPtr, ref INOUT);
return ret; return ret;
} }
public SWIGTYPE_p_p_aiMaterialProperty mProperties { public bool GetShadingModel(ref int INOUT) {
set { bool ret = AssimpPINVOKE.aiMaterial_GetShadingModel(swigCPtr, ref INOUT);
Assimp_NETPINVOKE.aiMaterial_mProperties_set(swigCPtr, SWIGTYPE_p_p_aiMaterialProperty.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiMaterial_mProperties_get(swigCPtr);
SWIGTYPE_p_p_aiMaterialProperty ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_aiMaterialProperty(cPtr, false);
return ret; return ret;
} }
}
public uint mNumProperties { public bool GetTexFlagsDiffuse0(ref int INOUT) {
set { bool ret = AssimpPINVOKE.aiMaterial_GetTexFlagsDiffuse0(swigCPtr, ref INOUT);
Assimp_NETPINVOKE.aiMaterial_mNumProperties_set(swigCPtr, value);
}
get {
uint ret = Assimp_NETPINVOKE.aiMaterial_mNumProperties_get(swigCPtr);
return ret; return ret;
} }
}
public uint mNumAllocated { public bool GetMappingModeUDiffuse0(ref int INOUT) {
set { bool ret = AssimpPINVOKE.aiMaterial_GetMappingModeUDiffuse0(swigCPtr, ref INOUT);
Assimp_NETPINVOKE.aiMaterial_mNumAllocated_set(swigCPtr, value);
}
get {
uint ret = Assimp_NETPINVOKE.aiMaterial_mNumAllocated_get(swigCPtr);
return ret; return ret;
} }
public bool GetMappingModeVDiffuse0(ref int INOUT) {
bool ret = AssimpPINVOKE.aiMaterial_GetMappingModeVDiffuse0(swigCPtr, ref INOUT);
return ret;
}
public bool GetTextureDiffuse0(aiString INOUT) {
bool ret = AssimpPINVOKE.aiMaterial_GetTextureDiffuse0(swigCPtr, aiString.getCPtr(INOUT));
return ret;
}
public bool GetTextureSpecular0(aiString INOUT) {
bool ret = AssimpPINVOKE.aiMaterial_GetTextureSpecular0(swigCPtr, aiString.getCPtr(INOUT));
return ret;
}
public bool GetTextureOpacity0(aiString INOUT) {
bool ret = AssimpPINVOKE.aiMaterial_GetTextureOpacity0(swigCPtr, aiString.getCPtr(INOUT));
return ret;
}
public bool GetTextureAmbient0(aiString INOUT) {
bool ret = AssimpPINVOKE.aiMaterial_GetTextureAmbient0(swigCPtr, aiString.getCPtr(INOUT));
return ret;
}
public bool GetTextureEmissive0(aiString INOUT) {
bool ret = AssimpPINVOKE.aiMaterial_GetTextureEmissive0(swigCPtr, aiString.getCPtr(INOUT));
return ret;
}
public bool GetTextureShininess0(aiString INOUT) {
bool ret = AssimpPINVOKE.aiMaterial_GetTextureShininess0(swigCPtr, aiString.getCPtr(INOUT));
return ret;
}
public bool GetTextureLightmap0(aiString INOUT) {
bool ret = AssimpPINVOKE.aiMaterial_GetTextureLightmap0(swigCPtr, aiString.getCPtr(INOUT));
return ret;
}
public bool GetTextureNormals0(aiString INOUT) {
bool ret = AssimpPINVOKE.aiMaterial_GetTextureNormals0(swigCPtr, aiString.getCPtr(INOUT));
return ret;
}
public bool GetTextureHeight0(aiString INOUT) {
bool ret = AssimpPINVOKE.aiMaterial_GetTextureHeight0(swigCPtr, aiString.getCPtr(INOUT));
return ret;
}
public bool GetGlobalBackgroundImage(aiString INOUT) {
bool ret = AssimpPINVOKE.aiMaterial_GetGlobalBackgroundImage(swigCPtr, aiString.getCPtr(INOUT));
return ret;
}
public bool GetTwoSided(ref int INOUT) {
bool ret = AssimpPINVOKE.aiMaterial_GetTwoSided(swigCPtr, ref INOUT);
return ret;
} }
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiMaterialProperty : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiMaterialProperty(swigCPtr); AssimpPINVOKE.delete_aiMaterialProperty(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -42,10 +42,10 @@ public class aiMaterialProperty : IDisposable {
public aiString mKey { public aiString mKey {
set { set {
Assimp_NETPINVOKE.aiMaterialProperty_mKey_set(swigCPtr, aiString.getCPtr(value)); AssimpPINVOKE.aiMaterialProperty_mKey_set(swigCPtr, aiString.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiMaterialProperty_mKey_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiMaterialProperty_mKey_get(swigCPtr);
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false); aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
return ret; return ret;
} }
@ -53,55 +53,55 @@ public class aiMaterialProperty : IDisposable {
public uint mSemantic { public uint mSemantic {
set { set {
Assimp_NETPINVOKE.aiMaterialProperty_mSemantic_set(swigCPtr, value); AssimpPINVOKE.aiMaterialProperty_mSemantic_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiMaterialProperty_mSemantic_get(swigCPtr); uint ret = AssimpPINVOKE.aiMaterialProperty_mSemantic_get(swigCPtr);
return ret; return ret;
} }
} }
public uint mIndex { public uint mIndex {
set { set {
Assimp_NETPINVOKE.aiMaterialProperty_mIndex_set(swigCPtr, value); AssimpPINVOKE.aiMaterialProperty_mIndex_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiMaterialProperty_mIndex_get(swigCPtr); uint ret = AssimpPINVOKE.aiMaterialProperty_mIndex_get(swigCPtr);
return ret; return ret;
} }
} }
public uint mDataLength { public uint mDataLength {
set { set {
Assimp_NETPINVOKE.aiMaterialProperty_mDataLength_set(swigCPtr, value); AssimpPINVOKE.aiMaterialProperty_mDataLength_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiMaterialProperty_mDataLength_get(swigCPtr); uint ret = AssimpPINVOKE.aiMaterialProperty_mDataLength_get(swigCPtr);
return ret; return ret;
} }
} }
public aiPropertyTypeInfo mType { public aiPropertyTypeInfo mType {
set { set {
Assimp_NETPINVOKE.aiMaterialProperty_mType_set(swigCPtr, (int)value); AssimpPINVOKE.aiMaterialProperty_mType_set(swigCPtr, (int)value);
} }
get { get {
aiPropertyTypeInfo ret = (aiPropertyTypeInfo)Assimp_NETPINVOKE.aiMaterialProperty_mType_get(swigCPtr); aiPropertyTypeInfo ret = (aiPropertyTypeInfo)AssimpPINVOKE.aiMaterialProperty_mType_get(swigCPtr);
return ret; return ret;
} }
} }
public string mData { public string mData {
set { set {
Assimp_NETPINVOKE.aiMaterialProperty_mData_set(swigCPtr, value); AssimpPINVOKE.aiMaterialProperty_mData_set(swigCPtr, value);
} }
get { get {
string ret = Assimp_NETPINVOKE.aiMaterialProperty_mData_get(swigCPtr); string ret = AssimpPINVOKE.aiMaterialProperty_mData_get(swigCPtr);
return ret; return ret;
} }
} }
public aiMaterialProperty() : this(Assimp_NETPINVOKE.new_aiMaterialProperty(), true) { public aiMaterialProperty() : this(AssimpPINVOKE.new_aiMaterialProperty(), true) {
} }
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -36,7 +36,7 @@ public class aiMaterialVector : IDisposable, System.Collections.IEnumerable
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiMaterialVector(swigCPtr); AssimpPINVOKE.delete_aiMaterialVector(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -221,127 +221,127 @@ public class aiMaterialVector : IDisposable, System.Collections.IEnumerable
} }
public void Clear() { public void Clear() {
Assimp_NETPINVOKE.aiMaterialVector_Clear(swigCPtr); AssimpPINVOKE.aiMaterialVector_Clear(swigCPtr);
} }
public void Add(aiMaterial x) { public void Add(aiMaterial x) {
Assimp_NETPINVOKE.aiMaterialVector_Add(swigCPtr, aiMaterial.getCPtr(x)); AssimpPINVOKE.aiMaterialVector_Add(swigCPtr, aiMaterial.getCPtr(x));
} }
private uint size() { private uint size() {
uint ret = Assimp_NETPINVOKE.aiMaterialVector_size(swigCPtr); uint ret = AssimpPINVOKE.aiMaterialVector_size(swigCPtr);
return ret; return ret;
} }
private uint capacity() { private uint capacity() {
uint ret = Assimp_NETPINVOKE.aiMaterialVector_capacity(swigCPtr); uint ret = AssimpPINVOKE.aiMaterialVector_capacity(swigCPtr);
return ret; return ret;
} }
private void reserve(uint n) { private void reserve(uint n) {
Assimp_NETPINVOKE.aiMaterialVector_reserve(swigCPtr, n); AssimpPINVOKE.aiMaterialVector_reserve(swigCPtr, n);
} }
public aiMaterialVector() : this(Assimp_NETPINVOKE.new_aiMaterialVector__SWIG_0(), true) { public aiMaterialVector() : this(AssimpPINVOKE.new_aiMaterialVector__SWIG_0(), true) {
} }
public aiMaterialVector(aiMaterialVector other) : this(Assimp_NETPINVOKE.new_aiMaterialVector__SWIG_1(aiMaterialVector.getCPtr(other)), true) { public aiMaterialVector(aiMaterialVector other) : this(AssimpPINVOKE.new_aiMaterialVector__SWIG_1(aiMaterialVector.getCPtr(other)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiMaterialVector(int capacity) : this(Assimp_NETPINVOKE.new_aiMaterialVector__SWIG_2(capacity), true) { public aiMaterialVector(int capacity) : this(AssimpPINVOKE.new_aiMaterialVector__SWIG_2(capacity), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
private aiMaterial getitemcopy(int index) { private aiMaterial getitemcopy(int index) {
IntPtr cPtr = Assimp_NETPINVOKE.aiMaterialVector_getitemcopy(swigCPtr, index); IntPtr cPtr = AssimpPINVOKE.aiMaterialVector_getitemcopy(swigCPtr, index);
aiMaterial ret = (cPtr == IntPtr.Zero) ? null : new aiMaterial(cPtr, false); aiMaterial ret = (cPtr == IntPtr.Zero) ? null : new aiMaterial(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private aiMaterial getitem(int index) { private aiMaterial getitem(int index) {
IntPtr cPtr = Assimp_NETPINVOKE.aiMaterialVector_getitem(swigCPtr, index); IntPtr cPtr = AssimpPINVOKE.aiMaterialVector_getitem(swigCPtr, index);
aiMaterial ret = (cPtr == IntPtr.Zero) ? null : new aiMaterial(cPtr, false); aiMaterial ret = (cPtr == IntPtr.Zero) ? null : new aiMaterial(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private void setitem(int index, aiMaterial val) { private void setitem(int index, aiMaterial val) {
Assimp_NETPINVOKE.aiMaterialVector_setitem(swigCPtr, index, aiMaterial.getCPtr(val)); AssimpPINVOKE.aiMaterialVector_setitem(swigCPtr, index, aiMaterial.getCPtr(val));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void AddRange(aiMaterialVector values) { public void AddRange(aiMaterialVector values) {
Assimp_NETPINVOKE.aiMaterialVector_AddRange(swigCPtr, aiMaterialVector.getCPtr(values)); AssimpPINVOKE.aiMaterialVector_AddRange(swigCPtr, aiMaterialVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiMaterialVector GetRange(int index, int count) { public aiMaterialVector GetRange(int index, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.aiMaterialVector_GetRange(swigCPtr, index, count); IntPtr cPtr = AssimpPINVOKE.aiMaterialVector_GetRange(swigCPtr, index, count);
aiMaterialVector ret = (cPtr == IntPtr.Zero) ? null : new aiMaterialVector(cPtr, true); aiMaterialVector ret = (cPtr == IntPtr.Zero) ? null : new aiMaterialVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Insert(int index, aiMaterial x) { public void Insert(int index, aiMaterial x) {
Assimp_NETPINVOKE.aiMaterialVector_Insert(swigCPtr, index, aiMaterial.getCPtr(x)); AssimpPINVOKE.aiMaterialVector_Insert(swigCPtr, index, aiMaterial.getCPtr(x));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void InsertRange(int index, aiMaterialVector values) { public void InsertRange(int index, aiMaterialVector values) {
Assimp_NETPINVOKE.aiMaterialVector_InsertRange(swigCPtr, index, aiMaterialVector.getCPtr(values)); AssimpPINVOKE.aiMaterialVector_InsertRange(swigCPtr, index, aiMaterialVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveAt(int index) { public void RemoveAt(int index) {
Assimp_NETPINVOKE.aiMaterialVector_RemoveAt(swigCPtr, index); AssimpPINVOKE.aiMaterialVector_RemoveAt(swigCPtr, index);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveRange(int index, int count) { public void RemoveRange(int index, int count) {
Assimp_NETPINVOKE.aiMaterialVector_RemoveRange(swigCPtr, index, count); AssimpPINVOKE.aiMaterialVector_RemoveRange(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public static aiMaterialVector Repeat(aiMaterial value, int count) { public static aiMaterialVector Repeat(aiMaterial value, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.aiMaterialVector_Repeat(aiMaterial.getCPtr(value), count); IntPtr cPtr = AssimpPINVOKE.aiMaterialVector_Repeat(aiMaterial.getCPtr(value), count);
aiMaterialVector ret = (cPtr == IntPtr.Zero) ? null : new aiMaterialVector(cPtr, true); aiMaterialVector ret = (cPtr == IntPtr.Zero) ? null : new aiMaterialVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Reverse() { public void Reverse() {
Assimp_NETPINVOKE.aiMaterialVector_Reverse__SWIG_0(swigCPtr); AssimpPINVOKE.aiMaterialVector_Reverse__SWIG_0(swigCPtr);
} }
public void Reverse(int index, int count) { public void Reverse(int index, int count) {
Assimp_NETPINVOKE.aiMaterialVector_Reverse__SWIG_1(swigCPtr, index, count); AssimpPINVOKE.aiMaterialVector_Reverse__SWIG_1(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void SetRange(int index, aiMaterialVector values) { public void SetRange(int index, aiMaterialVector values) {
Assimp_NETPINVOKE.aiMaterialVector_SetRange(swigCPtr, index, aiMaterialVector.getCPtr(values)); AssimpPINVOKE.aiMaterialVector_SetRange(swigCPtr, index, aiMaterialVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public bool Contains(aiMaterial value) { public bool Contains(aiMaterial value) {
bool ret = Assimp_NETPINVOKE.aiMaterialVector_Contains(swigCPtr, aiMaterial.getCPtr(value)); bool ret = AssimpPINVOKE.aiMaterialVector_Contains(swigCPtr, aiMaterial.getCPtr(value));
return ret; return ret;
} }
public int IndexOf(aiMaterial value) { public int IndexOf(aiMaterial value) {
int ret = Assimp_NETPINVOKE.aiMaterialVector_IndexOf(swigCPtr, aiMaterial.getCPtr(value)); int ret = AssimpPINVOKE.aiMaterialVector_IndexOf(swigCPtr, aiMaterial.getCPtr(value));
return ret; return ret;
} }
public int LastIndexOf(aiMaterial value) { public int LastIndexOf(aiMaterial value) {
int ret = Assimp_NETPINVOKE.aiMaterialVector_LastIndexOf(swigCPtr, aiMaterial.getCPtr(value)); int ret = AssimpPINVOKE.aiMaterialVector_LastIndexOf(swigCPtr, aiMaterial.getCPtr(value));
return ret; return ret;
} }
public bool Remove(aiMaterial value) { public bool Remove(aiMaterial value) {
bool ret = Assimp_NETPINVOKE.aiMaterialVector_Remove(swigCPtr, aiMaterial.getCPtr(value)); bool ret = AssimpPINVOKE.aiMaterialVector_Remove(swigCPtr, aiMaterial.getCPtr(value));
return ret; return ret;
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiMatrix3x3 : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiMatrix3x3(swigCPtr); AssimpPINVOKE.delete_aiMatrix3x3(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -40,171 +40,141 @@ public class aiMatrix3x3 : IDisposable {
} }
} }
public aiMatrix3x3() : this(Assimp_NETPINVOKE.new_aiMatrix3x3__SWIG_0(), true) { public aiMatrix3x3() : this(AssimpPINVOKE.new_aiMatrix3x3__SWIG_0(), true) {
} }
public aiMatrix3x3(float _a1, float _a2, float _a3, float _b1, float _b2, float _b3, float _c1, float _c2, float _c3) : this(Assimp_NETPINVOKE.new_aiMatrix3x3__SWIG_1(_a1, _a2, _a3, _b1, _b2, _b3, _c1, _c2, _c3), true) { public aiMatrix3x3(float _a1, float _a2, float _a3, float _b1, float _b2, float _b3, float _c1, float _c2, float _c3) : this(AssimpPINVOKE.new_aiMatrix3x3__SWIG_1(_a1, _a2, _a3, _b1, _b2, _b3, _c1, _c2, _c3), true) {
} }
public aiMatrix3x3 __mulnset__(aiMatrix3x3 m) { public aiMatrix3x3(aiMatrix4x4 pMatrix) : this(AssimpPINVOKE.new_aiMatrix3x3__SWIG_2(aiMatrix4x4.getCPtr(pMatrix)), true) {
aiMatrix3x3 ret = new aiMatrix3x3(Assimp_NETPINVOKE.aiMatrix3x3___mulnset__(swigCPtr, aiMatrix3x3.getCPtr(m)), false); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public aiMatrix3x3 __mul__(aiMatrix3x3 m) {
aiMatrix3x3 ret = new aiMatrix3x3(Assimp_NETPINVOKE.aiMatrix3x3___mul__(swigCPtr, aiMatrix3x3.getCPtr(m)), true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public SWIGTYPE_p_float __idx__(uint p_iIndex) {
IntPtr cPtr = Assimp_NETPINVOKE.aiMatrix3x3___idx____SWIG_0(swigCPtr, p_iIndex);
SWIGTYPE_p_float ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);
return ret;
}
public bool __equal__(aiMatrix4x4 m) {
bool ret = Assimp_NETPINVOKE.aiMatrix3x3___equal__(swigCPtr, aiMatrix4x4.getCPtr(m));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public bool __nequal__(aiMatrix4x4 m) {
bool ret = Assimp_NETPINVOKE.aiMatrix3x3___nequal__(swigCPtr, aiMatrix4x4.getCPtr(m));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public aiMatrix3x3(aiMatrix4x4 pMatrix) : this(Assimp_NETPINVOKE.new_aiMatrix3x3__SWIG_2(aiMatrix4x4.getCPtr(pMatrix)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
} }
public aiMatrix3x3 Transpose() { public aiMatrix3x3 Transpose() {
aiMatrix3x3 ret = new aiMatrix3x3(Assimp_NETPINVOKE.aiMatrix3x3_Transpose(swigCPtr), false); aiMatrix3x3 ret = new aiMatrix3x3(AssimpPINVOKE.aiMatrix3x3_Transpose(swigCPtr), false);
return ret; return ret;
} }
public aiMatrix3x3 Inverse() { public aiMatrix3x3 Inverse() {
aiMatrix3x3 ret = new aiMatrix3x3(Assimp_NETPINVOKE.aiMatrix3x3_Inverse(swigCPtr), false); aiMatrix3x3 ret = new aiMatrix3x3(AssimpPINVOKE.aiMatrix3x3_Inverse(swigCPtr), false);
return ret; return ret;
} }
public float Determinant() { public float Determinant() {
float ret = Assimp_NETPINVOKE.aiMatrix3x3_Determinant(swigCPtr); float ret = AssimpPINVOKE.aiMatrix3x3_Determinant(swigCPtr);
return ret; return ret;
} }
public static aiMatrix3x3 RotationZ(float a, aiMatrix3x3 arg1) { public static aiMatrix3x3 RotationZ(float a, aiMatrix3x3 arg1) {
aiMatrix3x3 ret = new aiMatrix3x3(Assimp_NETPINVOKE.aiMatrix3x3_RotationZ(a, aiMatrix3x3.getCPtr(arg1)), false); aiMatrix3x3 ret = new aiMatrix3x3(AssimpPINVOKE.aiMatrix3x3_RotationZ(a, aiMatrix3x3.getCPtr(arg1)), false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public static aiMatrix3x3 Rotation(float a, aiVector3D axis, aiMatrix3x3 arg2) { public static aiMatrix3x3 Rotation(float a, aiVector3D axis, aiMatrix3x3 arg2) {
aiMatrix3x3 ret = new aiMatrix3x3(Assimp_NETPINVOKE.aiMatrix3x3_Rotation(a, aiVector3D.getCPtr(axis), aiMatrix3x3.getCPtr(arg2)), false); aiMatrix3x3 ret = new aiMatrix3x3(AssimpPINVOKE.aiMatrix3x3_Rotation(a, aiVector3D.getCPtr(axis), aiMatrix3x3.getCPtr(arg2)), false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public static aiMatrix3x3 Translation(aiVector2D v, aiMatrix3x3 arg1) { public static aiMatrix3x3 Translation(aiVector2D v, aiMatrix3x3 arg1) {
aiMatrix3x3 ret = new aiMatrix3x3(Assimp_NETPINVOKE.aiMatrix3x3_Translation(aiVector2D.getCPtr(v), aiMatrix3x3.getCPtr(arg1)), false); aiMatrix3x3 ret = new aiMatrix3x3(AssimpPINVOKE.aiMatrix3x3_Translation(aiVector2D.getCPtr(v), aiMatrix3x3.getCPtr(arg1)), false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public static aiMatrix3x3 FromToMatrix(aiVector3D from, aiVector3D to, aiMatrix3x3 arg2) { public static aiMatrix3x3 FromToMatrix(aiVector3D from, aiVector3D to, aiMatrix3x3 arg2) {
aiMatrix3x3 ret = new aiMatrix3x3(Assimp_NETPINVOKE.aiMatrix3x3_FromToMatrix(aiVector3D.getCPtr(from), aiVector3D.getCPtr(to), aiMatrix3x3.getCPtr(arg2)), false); aiMatrix3x3 ret = new aiMatrix3x3(AssimpPINVOKE.aiMatrix3x3_FromToMatrix(aiVector3D.getCPtr(from), aiVector3D.getCPtr(to), aiMatrix3x3.getCPtr(arg2)), false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public float a1 { public float a1 {
set { set {
Assimp_NETPINVOKE.aiMatrix3x3_a1_set(swigCPtr, value); AssimpPINVOKE.aiMatrix3x3_a1_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix3x3_a1_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix3x3_a1_get(swigCPtr);
return ret; return ret;
} }
} }
public float a2 { public float a2 {
set { set {
Assimp_NETPINVOKE.aiMatrix3x3_a2_set(swigCPtr, value); AssimpPINVOKE.aiMatrix3x3_a2_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix3x3_a2_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix3x3_a2_get(swigCPtr);
return ret; return ret;
} }
} }
public float a3 { public float a3 {
set { set {
Assimp_NETPINVOKE.aiMatrix3x3_a3_set(swigCPtr, value); AssimpPINVOKE.aiMatrix3x3_a3_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix3x3_a3_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix3x3_a3_get(swigCPtr);
return ret; return ret;
} }
} }
public float b1 { public float b1 {
set { set {
Assimp_NETPINVOKE.aiMatrix3x3_b1_set(swigCPtr, value); AssimpPINVOKE.aiMatrix3x3_b1_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix3x3_b1_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix3x3_b1_get(swigCPtr);
return ret; return ret;
} }
} }
public float b2 { public float b2 {
set { set {
Assimp_NETPINVOKE.aiMatrix3x3_b2_set(swigCPtr, value); AssimpPINVOKE.aiMatrix3x3_b2_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix3x3_b2_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix3x3_b2_get(swigCPtr);
return ret; return ret;
} }
} }
public float b3 { public float b3 {
set { set {
Assimp_NETPINVOKE.aiMatrix3x3_b3_set(swigCPtr, value); AssimpPINVOKE.aiMatrix3x3_b3_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix3x3_b3_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix3x3_b3_get(swigCPtr);
return ret; return ret;
} }
} }
public float c1 { public float c1 {
set { set {
Assimp_NETPINVOKE.aiMatrix3x3_c1_set(swigCPtr, value); AssimpPINVOKE.aiMatrix3x3_c1_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix3x3_c1_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix3x3_c1_get(swigCPtr);
return ret; return ret;
} }
} }
public float c2 { public float c2 {
set { set {
Assimp_NETPINVOKE.aiMatrix3x3_c2_set(swigCPtr, value); AssimpPINVOKE.aiMatrix3x3_c2_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix3x3_c2_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix3x3_c2_get(swigCPtr);
return ret; return ret;
} }
} }
public float c3 { public float c3 {
set { set {
Assimp_NETPINVOKE.aiMatrix3x3_c3_set(swigCPtr, value); AssimpPINVOKE.aiMatrix3x3_c3_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix3x3_c3_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix3x3_c3_get(swigCPtr);
return ret; return ret;
} }
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiMatrix4x4 : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiMatrix4x4(swigCPtr); AssimpPINVOKE.delete_aiMatrix4x4(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -40,285 +40,255 @@ public class aiMatrix4x4 : IDisposable {
} }
} }
public aiMatrix4x4() : this(Assimp_NETPINVOKE.new_aiMatrix4x4__SWIG_0(), true) { public aiMatrix4x4() : this(AssimpPINVOKE.new_aiMatrix4x4__SWIG_0(), true) {
} }
public aiMatrix4x4(float _a1, float _a2, float _a3, float _a4, float _b1, float _b2, float _b3, float _b4, float _c1, float _c2, float _c3, float _c4, float _d1, float _d2, float _d3, float _d4) : this(Assimp_NETPINVOKE.new_aiMatrix4x4__SWIG_1(_a1, _a2, _a3, _a4, _b1, _b2, _b3, _b4, _c1, _c2, _c3, _c4, _d1, _d2, _d3, _d4), true) { public aiMatrix4x4(float _a1, float _a2, float _a3, float _a4, float _b1, float _b2, float _b3, float _b4, float _c1, float _c2, float _c3, float _c4, float _d1, float _d2, float _d3, float _d4) : this(AssimpPINVOKE.new_aiMatrix4x4__SWIG_1(_a1, _a2, _a3, _a4, _b1, _b2, _b3, _b4, _c1, _c2, _c3, _c4, _d1, _d2, _d3, _d4), true) {
} }
public aiMatrix4x4(aiMatrix3x3 m) : this(Assimp_NETPINVOKE.new_aiMatrix4x4__SWIG_2(aiMatrix3x3.getCPtr(m)), true) { public aiMatrix4x4(aiMatrix3x3 m) : this(AssimpPINVOKE.new_aiMatrix4x4__SWIG_2(aiMatrix3x3.getCPtr(m)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public SWIGTYPE_p_float __idx__(uint p_iIndex) {
IntPtr cPtr = Assimp_NETPINVOKE.aiMatrix4x4___idx____SWIG_0(swigCPtr, p_iIndex);
SWIGTYPE_p_float ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);
return ret;
}
public bool __equal__(aiMatrix4x4 m) {
bool ret = Assimp_NETPINVOKE.aiMatrix4x4___equal__(swigCPtr, aiMatrix4x4.getCPtr(m));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public bool __nequal__(aiMatrix4x4 m) {
bool ret = Assimp_NETPINVOKE.aiMatrix4x4___nequal__(swigCPtr, aiMatrix4x4.getCPtr(m));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public aiMatrix4x4 __mulnset__(aiMatrix4x4 m) {
aiMatrix4x4 ret = new aiMatrix4x4(Assimp_NETPINVOKE.aiMatrix4x4___mulnset__(swigCPtr, aiMatrix4x4.getCPtr(m)), false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public aiMatrix4x4 __mul__(aiMatrix4x4 m) {
aiMatrix4x4 ret = new aiMatrix4x4(Assimp_NETPINVOKE.aiMatrix4x4___mul__(swigCPtr, aiMatrix4x4.getCPtr(m)), true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
return ret;
} }
public aiMatrix4x4 Transpose() { public aiMatrix4x4 Transpose() {
aiMatrix4x4 ret = new aiMatrix4x4(Assimp_NETPINVOKE.aiMatrix4x4_Transpose(swigCPtr), false); aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_Transpose(swigCPtr), false);
return ret; return ret;
} }
public aiMatrix4x4 Inverse() { public aiMatrix4x4 Inverse() {
aiMatrix4x4 ret = new aiMatrix4x4(Assimp_NETPINVOKE.aiMatrix4x4_Inverse(swigCPtr), false); aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_Inverse(swigCPtr), false);
return ret; return ret;
} }
public float Determinant() { public float Determinant() {
float ret = Assimp_NETPINVOKE.aiMatrix4x4_Determinant(swigCPtr); float ret = AssimpPINVOKE.aiMatrix4x4_Determinant(swigCPtr);
return ret; return ret;
} }
public bool IsIdentity() { public bool IsIdentity() {
bool ret = Assimp_NETPINVOKE.aiMatrix4x4_IsIdentity(swigCPtr); bool ret = AssimpPINVOKE.aiMatrix4x4_IsIdentity(swigCPtr);
return ret; return ret;
} }
public void Decompose(aiVector3D scaling, aiQuaternion rotation, aiVector3D position) { public void Decompose(aiVector3D scaling, aiQuaternion rotation, aiVector3D position) {
Assimp_NETPINVOKE.aiMatrix4x4_Decompose(swigCPtr, aiVector3D.getCPtr(scaling), aiQuaternion.getCPtr(rotation), aiVector3D.getCPtr(position)); AssimpPINVOKE.aiMatrix4x4_Decompose(swigCPtr, aiVector3D.getCPtr(scaling), aiQuaternion.getCPtr(rotation), aiVector3D.getCPtr(position));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void DecomposeNoScaling(aiQuaternion rotation, aiVector3D position) { public void DecomposeNoScaling(aiQuaternion rotation, aiVector3D position) {
Assimp_NETPINVOKE.aiMatrix4x4_DecomposeNoScaling(swigCPtr, aiQuaternion.getCPtr(rotation), aiVector3D.getCPtr(position)); AssimpPINVOKE.aiMatrix4x4_DecomposeNoScaling(swigCPtr, aiQuaternion.getCPtr(rotation), aiVector3D.getCPtr(position));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiMatrix4x4 FromEulerAnglesXYZ(float x, float y, float z) { public aiMatrix4x4 FromEulerAnglesXYZ(float x, float y, float z) {
aiMatrix4x4 ret = new aiMatrix4x4(Assimp_NETPINVOKE.aiMatrix4x4_FromEulerAnglesXYZ__SWIG_0(swigCPtr, x, y, z), false); aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_FromEulerAnglesXYZ__SWIG_0(swigCPtr, x, y, z), false);
return ret; return ret;
} }
public aiMatrix4x4 FromEulerAnglesXYZ(aiVector3D blubb) { public aiMatrix4x4 FromEulerAnglesXYZ(aiVector3D blubb) {
aiMatrix4x4 ret = new aiMatrix4x4(Assimp_NETPINVOKE.aiMatrix4x4_FromEulerAnglesXYZ__SWIG_1(swigCPtr, aiVector3D.getCPtr(blubb)), false); aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_FromEulerAnglesXYZ__SWIG_1(swigCPtr, aiVector3D.getCPtr(blubb)), false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public static aiMatrix4x4 RotationX(float a, aiMatrix4x4 arg1) { public static aiMatrix4x4 RotationX(float a, aiMatrix4x4 arg1) {
aiMatrix4x4 ret = new aiMatrix4x4(Assimp_NETPINVOKE.aiMatrix4x4_RotationX(a, aiMatrix4x4.getCPtr(arg1)), false); aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_RotationX(a, aiMatrix4x4.getCPtr(arg1)), false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public static aiMatrix4x4 RotationY(float a, aiMatrix4x4 arg1) { public static aiMatrix4x4 RotationY(float a, aiMatrix4x4 arg1) {
aiMatrix4x4 ret = new aiMatrix4x4(Assimp_NETPINVOKE.aiMatrix4x4_RotationY(a, aiMatrix4x4.getCPtr(arg1)), false); aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_RotationY(a, aiMatrix4x4.getCPtr(arg1)), false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public static aiMatrix4x4 RotationZ(float a, aiMatrix4x4 arg1) { public static aiMatrix4x4 RotationZ(float a, aiMatrix4x4 arg1) {
aiMatrix4x4 ret = new aiMatrix4x4(Assimp_NETPINVOKE.aiMatrix4x4_RotationZ(a, aiMatrix4x4.getCPtr(arg1)), false); aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_RotationZ(a, aiMatrix4x4.getCPtr(arg1)), false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public static aiMatrix4x4 Rotation(float a, aiVector3D axis, aiMatrix4x4 arg2) { public static aiMatrix4x4 Rotation(float a, aiVector3D axis, aiMatrix4x4 arg2) {
aiMatrix4x4 ret = new aiMatrix4x4(Assimp_NETPINVOKE.aiMatrix4x4_Rotation(a, aiVector3D.getCPtr(axis), aiMatrix4x4.getCPtr(arg2)), false); aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_Rotation(a, aiVector3D.getCPtr(axis), aiMatrix4x4.getCPtr(arg2)), false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public static aiMatrix4x4 Translation(aiVector3D v, aiMatrix4x4 arg1) { public static aiMatrix4x4 Translation(aiVector3D v, aiMatrix4x4 arg1) {
aiMatrix4x4 ret = new aiMatrix4x4(Assimp_NETPINVOKE.aiMatrix4x4_Translation(aiVector3D.getCPtr(v), aiMatrix4x4.getCPtr(arg1)), false); aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_Translation(aiVector3D.getCPtr(v), aiMatrix4x4.getCPtr(arg1)), false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public static aiMatrix4x4 Scaling(aiVector3D v, aiMatrix4x4 arg1) { public static aiMatrix4x4 Scaling(aiVector3D v, aiMatrix4x4 arg1) {
aiMatrix4x4 ret = new aiMatrix4x4(Assimp_NETPINVOKE.aiMatrix4x4_Scaling(aiVector3D.getCPtr(v), aiMatrix4x4.getCPtr(arg1)), false); aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_Scaling(aiVector3D.getCPtr(v), aiMatrix4x4.getCPtr(arg1)), false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public static aiMatrix4x4 FromToMatrix(aiVector3D from, aiVector3D to, aiMatrix4x4 arg2) { public static aiMatrix4x4 FromToMatrix(aiVector3D from, aiVector3D to, aiMatrix4x4 arg2) {
aiMatrix4x4 ret = new aiMatrix4x4(Assimp_NETPINVOKE.aiMatrix4x4_FromToMatrix(aiVector3D.getCPtr(from), aiVector3D.getCPtr(to), aiMatrix4x4.getCPtr(arg2)), false); aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_FromToMatrix(aiVector3D.getCPtr(from), aiVector3D.getCPtr(to), aiMatrix4x4.getCPtr(arg2)), false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public float a1 { public float a1 {
set { set {
Assimp_NETPINVOKE.aiMatrix4x4_a1_set(swigCPtr, value); AssimpPINVOKE.aiMatrix4x4_a1_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix4x4_a1_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix4x4_a1_get(swigCPtr);
return ret; return ret;
} }
} }
public float a2 { public float a2 {
set { set {
Assimp_NETPINVOKE.aiMatrix4x4_a2_set(swigCPtr, value); AssimpPINVOKE.aiMatrix4x4_a2_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix4x4_a2_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix4x4_a2_get(swigCPtr);
return ret; return ret;
} }
} }
public float a3 { public float a3 {
set { set {
Assimp_NETPINVOKE.aiMatrix4x4_a3_set(swigCPtr, value); AssimpPINVOKE.aiMatrix4x4_a3_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix4x4_a3_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix4x4_a3_get(swigCPtr);
return ret; return ret;
} }
} }
public float a4 { public float a4 {
set { set {
Assimp_NETPINVOKE.aiMatrix4x4_a4_set(swigCPtr, value); AssimpPINVOKE.aiMatrix4x4_a4_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix4x4_a4_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix4x4_a4_get(swigCPtr);
return ret; return ret;
} }
} }
public float b1 { public float b1 {
set { set {
Assimp_NETPINVOKE.aiMatrix4x4_b1_set(swigCPtr, value); AssimpPINVOKE.aiMatrix4x4_b1_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix4x4_b1_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix4x4_b1_get(swigCPtr);
return ret; return ret;
} }
} }
public float b2 { public float b2 {
set { set {
Assimp_NETPINVOKE.aiMatrix4x4_b2_set(swigCPtr, value); AssimpPINVOKE.aiMatrix4x4_b2_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix4x4_b2_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix4x4_b2_get(swigCPtr);
return ret; return ret;
} }
} }
public float b3 { public float b3 {
set { set {
Assimp_NETPINVOKE.aiMatrix4x4_b3_set(swigCPtr, value); AssimpPINVOKE.aiMatrix4x4_b3_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix4x4_b3_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix4x4_b3_get(swigCPtr);
return ret; return ret;
} }
} }
public float b4 { public float b4 {
set { set {
Assimp_NETPINVOKE.aiMatrix4x4_b4_set(swigCPtr, value); AssimpPINVOKE.aiMatrix4x4_b4_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix4x4_b4_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix4x4_b4_get(swigCPtr);
return ret; return ret;
} }
} }
public float c1 { public float c1 {
set { set {
Assimp_NETPINVOKE.aiMatrix4x4_c1_set(swigCPtr, value); AssimpPINVOKE.aiMatrix4x4_c1_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix4x4_c1_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix4x4_c1_get(swigCPtr);
return ret; return ret;
} }
} }
public float c2 { public float c2 {
set { set {
Assimp_NETPINVOKE.aiMatrix4x4_c2_set(swigCPtr, value); AssimpPINVOKE.aiMatrix4x4_c2_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix4x4_c2_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix4x4_c2_get(swigCPtr);
return ret; return ret;
} }
} }
public float c3 { public float c3 {
set { set {
Assimp_NETPINVOKE.aiMatrix4x4_c3_set(swigCPtr, value); AssimpPINVOKE.aiMatrix4x4_c3_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix4x4_c3_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix4x4_c3_get(swigCPtr);
return ret; return ret;
} }
} }
public float c4 { public float c4 {
set { set {
Assimp_NETPINVOKE.aiMatrix4x4_c4_set(swigCPtr, value); AssimpPINVOKE.aiMatrix4x4_c4_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix4x4_c4_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix4x4_c4_get(swigCPtr);
return ret; return ret;
} }
} }
public float d1 { public float d1 {
set { set {
Assimp_NETPINVOKE.aiMatrix4x4_d1_set(swigCPtr, value); AssimpPINVOKE.aiMatrix4x4_d1_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix4x4_d1_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix4x4_d1_get(swigCPtr);
return ret; return ret;
} }
} }
public float d2 { public float d2 {
set { set {
Assimp_NETPINVOKE.aiMatrix4x4_d2_set(swigCPtr, value); AssimpPINVOKE.aiMatrix4x4_d2_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix4x4_d2_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix4x4_d2_get(swigCPtr);
return ret; return ret;
} }
} }
public float d3 { public float d3 {
set { set {
Assimp_NETPINVOKE.aiMatrix4x4_d3_set(swigCPtr, value); AssimpPINVOKE.aiMatrix4x4_d3_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix4x4_d3_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix4x4_d3_get(swigCPtr);
return ret; return ret;
} }
} }
public float d4 { public float d4 {
set { set {
Assimp_NETPINVOKE.aiMatrix4x4_d4_set(swigCPtr, value); AssimpPINVOKE.aiMatrix4x4_d4_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiMatrix4x4_d4_get(swigCPtr); float ret = AssimpPINVOKE.aiMatrix4x4_d4_get(swigCPtr);
return ret; return ret;
} }
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiMemoryInfo : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiMemoryInfo(swigCPtr); AssimpPINVOKE.delete_aiMemoryInfo(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -40,85 +40,85 @@ public class aiMemoryInfo : IDisposable {
} }
} }
public aiMemoryInfo() : this(Assimp_NETPINVOKE.new_aiMemoryInfo(), true) { public aiMemoryInfo() : this(AssimpPINVOKE.new_aiMemoryInfo(), true) {
} }
public uint textures { public uint textures {
set { set {
Assimp_NETPINVOKE.aiMemoryInfo_textures_set(swigCPtr, value); AssimpPINVOKE.aiMemoryInfo_textures_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiMemoryInfo_textures_get(swigCPtr); uint ret = AssimpPINVOKE.aiMemoryInfo_textures_get(swigCPtr);
return ret; return ret;
} }
} }
public uint materials { public uint materials {
set { set {
Assimp_NETPINVOKE.aiMemoryInfo_materials_set(swigCPtr, value); AssimpPINVOKE.aiMemoryInfo_materials_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiMemoryInfo_materials_get(swigCPtr); uint ret = AssimpPINVOKE.aiMemoryInfo_materials_get(swigCPtr);
return ret; return ret;
} }
} }
public uint meshes { public uint meshes {
set { set {
Assimp_NETPINVOKE.aiMemoryInfo_meshes_set(swigCPtr, value); AssimpPINVOKE.aiMemoryInfo_meshes_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiMemoryInfo_meshes_get(swigCPtr); uint ret = AssimpPINVOKE.aiMemoryInfo_meshes_get(swigCPtr);
return ret; return ret;
} }
} }
public uint nodes { public uint nodes {
set { set {
Assimp_NETPINVOKE.aiMemoryInfo_nodes_set(swigCPtr, value); AssimpPINVOKE.aiMemoryInfo_nodes_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiMemoryInfo_nodes_get(swigCPtr); uint ret = AssimpPINVOKE.aiMemoryInfo_nodes_get(swigCPtr);
return ret; return ret;
} }
} }
public uint animations { public uint animations {
set { set {
Assimp_NETPINVOKE.aiMemoryInfo_animations_set(swigCPtr, value); AssimpPINVOKE.aiMemoryInfo_animations_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiMemoryInfo_animations_get(swigCPtr); uint ret = AssimpPINVOKE.aiMemoryInfo_animations_get(swigCPtr);
return ret; return ret;
} }
} }
public uint cameras { public uint cameras {
set { set {
Assimp_NETPINVOKE.aiMemoryInfo_cameras_set(swigCPtr, value); AssimpPINVOKE.aiMemoryInfo_cameras_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiMemoryInfo_cameras_get(swigCPtr); uint ret = AssimpPINVOKE.aiMemoryInfo_cameras_get(swigCPtr);
return ret; return ret;
} }
} }
public uint lights { public uint lights {
set { set {
Assimp_NETPINVOKE.aiMemoryInfo_lights_set(swigCPtr, value); AssimpPINVOKE.aiMemoryInfo_lights_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiMemoryInfo_lights_get(swigCPtr); uint ret = AssimpPINVOKE.aiMemoryInfo_lights_get(swigCPtr);
return ret; return ret;
} }
} }
public uint total { public uint total {
set { set {
Assimp_NETPINVOKE.aiMemoryInfo_total_set(swigCPtr, value); AssimpPINVOKE.aiMemoryInfo_total_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiMemoryInfo_total_get(swigCPtr); uint ret = AssimpPINVOKE.aiMemoryInfo_total_get(swigCPtr);
return ret; return ret;
} }
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiMesh : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiMesh(swigCPtr); AssimpPINVOKE.delete_aiMesh(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -40,161 +40,67 @@ public class aiMesh : IDisposable {
} }
} }
public uint mPrimitiveTypes { public aiVector3DVector mBitangents { get { return GetmBitangents(); } }
public aiBoneVector mBones { get { return GetmBones(); } }
public aiColor4DVectorVector mColors { get { return GetmColors(); } }
public aiFaceVector mFaces { get { return GetmFaces(); } }
public aiVector3DVector mNormals { get { return GetmNormals(); } }
public aiVector3DVector mTangents { get { return GetmTangents(); } }
public aiVector3DVectorVector mTextureCoords { get { return GetmTextureCoords(); } }
public aiVector3DVector mVertices { get { return GetmVertices(); } }
public aiPrimitiveType mPrimitiveTypes {
set { set {
Assimp_NETPINVOKE.aiMesh_mPrimitiveTypes_set(swigCPtr, value); AssimpPINVOKE.aiMesh_mPrimitiveTypes_set(swigCPtr, (uint)value);
} } get { return (aiPrimitiveType)AssimpPINVOKE.aiMesh_mPrimitiveTypes_get(swigCPtr); }
get {
uint ret = Assimp_NETPINVOKE.aiMesh_mPrimitiveTypes_get(swigCPtr);
return ret;
}
} }
public uint mNumVertices { public uint mNumVertices {
set { set {
Assimp_NETPINVOKE.aiMesh_mNumVertices_set(swigCPtr, value); AssimpPINVOKE.aiMesh_mNumVertices_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiMesh_mNumVertices_get(swigCPtr); uint ret = AssimpPINVOKE.aiMesh_mNumVertices_get(swigCPtr);
return ret; return ret;
} }
} }
public uint mNumFaces { public uint mNumFaces {
set { set {
Assimp_NETPINVOKE.aiMesh_mNumFaces_set(swigCPtr, value); AssimpPINVOKE.aiMesh_mNumFaces_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiMesh_mNumFaces_get(swigCPtr); uint ret = AssimpPINVOKE.aiMesh_mNumFaces_get(swigCPtr);
return ret;
}
}
public aiVector3D mVertices {
set {
Assimp_NETPINVOKE.aiMesh_mVertices_set(swigCPtr, aiVector3D.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiMesh_mVertices_get(swigCPtr);
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
return ret;
}
}
public aiVector3D mNormals {
set {
Assimp_NETPINVOKE.aiMesh_mNormals_set(swigCPtr, aiVector3D.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiMesh_mNormals_get(swigCPtr);
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
return ret;
}
}
public aiVector3D mTangents {
set {
Assimp_NETPINVOKE.aiMesh_mTangents_set(swigCPtr, aiVector3D.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiMesh_mTangents_get(swigCPtr);
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
return ret;
}
}
public aiVector3D mBitangents {
set {
Assimp_NETPINVOKE.aiMesh_mBitangents_set(swigCPtr, aiVector3D.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiMesh_mBitangents_get(swigCPtr);
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
return ret;
}
}
public SWIGTYPE_p_p_aiColor4D mColors {
set {
Assimp_NETPINVOKE.aiMesh_mColors_set(swigCPtr, SWIGTYPE_p_p_aiColor4D.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiMesh_mColors_get(swigCPtr);
SWIGTYPE_p_p_aiColor4D ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_aiColor4D(cPtr, false);
return ret;
}
}
public SWIGTYPE_p_p_aiVector3D mTextureCoords {
set {
Assimp_NETPINVOKE.aiMesh_mTextureCoords_set(swigCPtr, SWIGTYPE_p_p_aiVector3D.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiMesh_mTextureCoords_get(swigCPtr);
SWIGTYPE_p_p_aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_aiVector3D(cPtr, false);
return ret;
}
}
public SWIGTYPE_p_unsigned_int mNumUVComponents {
set {
Assimp_NETPINVOKE.aiMesh_mNumUVComponents_set(swigCPtr, SWIGTYPE_p_unsigned_int.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiMesh_mNumUVComponents_get(swigCPtr);
SWIGTYPE_p_unsigned_int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_int(cPtr, false);
return ret;
}
}
public aiFace mFaces {
set {
Assimp_NETPINVOKE.aiMesh_mFaces_set(swigCPtr, aiFace.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiMesh_mFaces_get(swigCPtr);
aiFace ret = (cPtr == IntPtr.Zero) ? null : new aiFace(cPtr, false);
return ret; return ret;
} }
} }
public uint mNumBones { public uint mNumBones {
set { set {
Assimp_NETPINVOKE.aiMesh_mNumBones_set(swigCPtr, value); AssimpPINVOKE.aiMesh_mNumBones_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiMesh_mNumBones_get(swigCPtr); uint ret = AssimpPINVOKE.aiMesh_mNumBones_get(swigCPtr);
return ret;
}
}
public SWIGTYPE_p_p_aiBone mBones {
set {
Assimp_NETPINVOKE.aiMesh_mBones_set(swigCPtr, SWIGTYPE_p_p_aiBone.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiMesh_mBones_get(swigCPtr);
SWIGTYPE_p_p_aiBone ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_aiBone(cPtr, false);
return ret; return ret;
} }
} }
public uint mMaterialIndex { public uint mMaterialIndex {
set { set {
Assimp_NETPINVOKE.aiMesh_mMaterialIndex_set(swigCPtr, value); AssimpPINVOKE.aiMesh_mMaterialIndex_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiMesh_mMaterialIndex_get(swigCPtr); uint ret = AssimpPINVOKE.aiMesh_mMaterialIndex_get(swigCPtr);
return ret; return ret;
} }
} }
public aiString mName { public aiString mName {
set { set {
Assimp_NETPINVOKE.aiMesh_mName_set(swigCPtr, aiString.getCPtr(value)); AssimpPINVOKE.aiMesh_mName_set(swigCPtr, aiString.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiMesh_mName_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiMesh_mName_get(swigCPtr);
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false); aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
return ret; return ret;
} }
@ -202,70 +108,119 @@ public class aiMesh : IDisposable {
public uint mNumAnimMeshes { public uint mNumAnimMeshes {
set { set {
Assimp_NETPINVOKE.aiMesh_mNumAnimMeshes_set(swigCPtr, value); AssimpPINVOKE.aiMesh_mNumAnimMeshes_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiMesh_mNumAnimMeshes_get(swigCPtr); uint ret = AssimpPINVOKE.aiMesh_mNumAnimMeshes_get(swigCPtr);
return ret; return ret;
} }
} }
public SWIGTYPE_p_p_aiAnimMesh mAnimMeshes { public aiMesh() : this(AssimpPINVOKE.new_aiMesh(), true) {
set {
Assimp_NETPINVOKE.aiMesh_mAnimMeshes_set(swigCPtr, SWIGTYPE_p_p_aiAnimMesh.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiMesh_mAnimMeshes_get(swigCPtr);
SWIGTYPE_p_p_aiAnimMesh ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_aiAnimMesh(cPtr, false);
return ret;
}
}
public aiMesh() : this(Assimp_NETPINVOKE.new_aiMesh(), true) {
} }
public bool HasPositions() { public bool HasPositions() {
bool ret = Assimp_NETPINVOKE.aiMesh_HasPositions(swigCPtr); bool ret = AssimpPINVOKE.aiMesh_HasPositions(swigCPtr);
return ret; return ret;
} }
public bool HasFaces() { public bool HasFaces() {
bool ret = Assimp_NETPINVOKE.aiMesh_HasFaces(swigCPtr); bool ret = AssimpPINVOKE.aiMesh_HasFaces(swigCPtr);
return ret; return ret;
} }
public bool HasNormals() { public bool HasNormals() {
bool ret = Assimp_NETPINVOKE.aiMesh_HasNormals(swigCPtr); bool ret = AssimpPINVOKE.aiMesh_HasNormals(swigCPtr);
return ret; return ret;
} }
public bool HasTangentsAndBitangents() { public bool HasTangentsAndBitangents() {
bool ret = Assimp_NETPINVOKE.aiMesh_HasTangentsAndBitangents(swigCPtr); bool ret = AssimpPINVOKE.aiMesh_HasTangentsAndBitangents(swigCPtr);
return ret; return ret;
} }
public bool HasVertexColors(uint pIndex) { public bool HasVertexColors(uint pIndex) {
bool ret = Assimp_NETPINVOKE.aiMesh_HasVertexColors(swigCPtr, pIndex); bool ret = AssimpPINVOKE.aiMesh_HasVertexColors(swigCPtr, pIndex);
return ret; return ret;
} }
public bool HasTextureCoords(uint pIndex) { public bool HasTextureCoords(uint pIndex) {
bool ret = Assimp_NETPINVOKE.aiMesh_HasTextureCoords(swigCPtr, pIndex); bool ret = AssimpPINVOKE.aiMesh_HasTextureCoords(swigCPtr, pIndex);
return ret; return ret;
} }
public uint GetNumUVChannels() { public uint GetNumUVChannels() {
uint ret = Assimp_NETPINVOKE.aiMesh_GetNumUVChannels(swigCPtr); uint ret = AssimpPINVOKE.aiMesh_GetNumUVChannels(swigCPtr);
return ret; return ret;
} }
public uint GetNumColorChannels() { public uint GetNumColorChannels() {
uint ret = Assimp_NETPINVOKE.aiMesh_GetNumColorChannels(swigCPtr); uint ret = AssimpPINVOKE.aiMesh_GetNumColorChannels(swigCPtr);
return ret; return ret;
} }
public bool HasBones() { public bool HasBones() {
bool ret = Assimp_NETPINVOKE.aiMesh_HasBones(swigCPtr); bool ret = AssimpPINVOKE.aiMesh_HasBones(swigCPtr);
return ret;
}
private aiAnimMeshVector GetmAnimMeshes() {
IntPtr cPtr = AssimpPINVOKE.aiMesh_GetmAnimMeshes(swigCPtr);
aiAnimMeshVector ret = (cPtr == IntPtr.Zero) ? null : new aiAnimMeshVector(cPtr, true);
return ret;
}
private aiVector3DVector GetmBitangents() {
IntPtr cPtr = AssimpPINVOKE.aiMesh_GetmBitangents(swigCPtr);
aiVector3DVector ret = (cPtr == IntPtr.Zero) ? null : new aiVector3DVector(cPtr, true);
return ret;
}
private aiBoneVector GetmBones() {
IntPtr cPtr = AssimpPINVOKE.aiMesh_GetmBones(swigCPtr);
aiBoneVector ret = (cPtr == IntPtr.Zero) ? null : new aiBoneVector(cPtr, true);
return ret;
}
private aiColor4DVectorVector GetmColors() {
IntPtr cPtr = AssimpPINVOKE.aiMesh_GetmColors(swigCPtr);
aiColor4DVectorVector ret = (cPtr == IntPtr.Zero) ? null : new aiColor4DVectorVector(cPtr, true);
return ret;
}
private aiFaceVector GetmFaces() {
IntPtr cPtr = AssimpPINVOKE.aiMesh_GetmFaces(swigCPtr);
aiFaceVector ret = (cPtr == IntPtr.Zero) ? null : new aiFaceVector(cPtr, true);
return ret;
}
private aiVector3DVector GetmNormals() {
IntPtr cPtr = AssimpPINVOKE.aiMesh_GetmNormals(swigCPtr);
aiVector3DVector ret = (cPtr == IntPtr.Zero) ? null : new aiVector3DVector(cPtr, true);
return ret;
}
private aiVector3DVector GetmTangents() {
IntPtr cPtr = AssimpPINVOKE.aiMesh_GetmTangents(swigCPtr);
aiVector3DVector ret = (cPtr == IntPtr.Zero) ? null : new aiVector3DVector(cPtr, true);
return ret;
}
private aiVector3DVectorVector GetmTextureCoords() {
IntPtr cPtr = AssimpPINVOKE.aiMesh_GetmTextureCoords(swigCPtr);
aiVector3DVectorVector ret = (cPtr == IntPtr.Zero) ? null : new aiVector3DVectorVector(cPtr, true);
return ret;
}
private UintVector GetmNumUVComponents() {
IntPtr cPtr = AssimpPINVOKE.aiMesh_GetmNumUVComponents(swigCPtr);
UintVector ret = (cPtr == IntPtr.Zero) ? null : new UintVector(cPtr, true);
return ret;
}
private aiVector3DVector GetmVertices() {
IntPtr cPtr = AssimpPINVOKE.aiMesh_GetmVertices(swigCPtr);
aiVector3DVector ret = (cPtr == IntPtr.Zero) ? null : new aiVector3DVector(cPtr, true);
return ret; return ret;
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiMeshAnim : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiMeshAnim(swigCPtr); AssimpPINVOKE.delete_aiMeshAnim(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -40,12 +40,14 @@ public class aiMeshAnim : IDisposable {
} }
} }
public aiMeshKeyVector mKeys { get { return GetmKeys(); } }
public aiString mName { public aiString mName {
set { set {
Assimp_NETPINVOKE.aiMeshAnim_mName_set(swigCPtr, aiString.getCPtr(value)); AssimpPINVOKE.aiMeshAnim_mName_set(swigCPtr, aiString.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiMeshAnim_mName_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiMeshAnim_mName_get(swigCPtr);
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false); aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
return ret; return ret;
} }
@ -53,26 +55,21 @@ public class aiMeshAnim : IDisposable {
public uint mNumKeys { public uint mNumKeys {
set { set {
Assimp_NETPINVOKE.aiMeshAnim_mNumKeys_set(swigCPtr, value); AssimpPINVOKE.aiMeshAnim_mNumKeys_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiMeshAnim_mNumKeys_get(swigCPtr); uint ret = AssimpPINVOKE.aiMeshAnim_mNumKeys_get(swigCPtr);
return ret; return ret;
} }
} }
public aiMeshKey mKeys { public aiMeshAnim() : this(AssimpPINVOKE.new_aiMeshAnim(), true) {
set {
Assimp_NETPINVOKE.aiMeshAnim_mKeys_set(swigCPtr, aiMeshKey.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiMeshAnim_mKeys_get(swigCPtr);
aiMeshKey ret = (cPtr == IntPtr.Zero) ? null : new aiMeshKey(cPtr, false);
return ret;
}
} }
public aiMeshAnim() : this(Assimp_NETPINVOKE.new_aiMeshAnim(), true) { private aiMeshKeyVector GetmKeys() {
IntPtr cPtr = AssimpPINVOKE.aiMeshAnim_GetmKeys(swigCPtr);
aiMeshKeyVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshKeyVector(cPtr, true);
return ret;
} }
} }

View File

@ -0,0 +1,348 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.0
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class aiMeshAnimVector : IDisposable, System.Collections.IEnumerable
#if !SWIG_DOTNET_1
, System.Collections.Generic.IList<aiMeshAnim>
#endif
{
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal aiMeshAnimVector(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(aiMeshAnimVector obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~aiMeshAnimVector() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
AssimpPINVOKE.delete_aiMeshAnimVector(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public aiMeshAnimVector(System.Collections.ICollection c) : this() {
if (c == null)
throw new ArgumentNullException("c");
foreach (aiMeshAnim element in c) {
this.Add(element);
}
}
public bool IsFixedSize {
get {
return false;
}
}
public bool IsReadOnly {
get {
return false;
}
}
public aiMeshAnim this[int index] {
get {
return getitem(index);
}
set {
setitem(index, value);
}
}
public int Capacity {
get {
return (int)capacity();
}
set {
if (value < size())
throw new ArgumentOutOfRangeException("Capacity");
reserve((uint)value);
}
}
public int Count {
get {
return (int)size();
}
}
public bool IsSynchronized {
get {
return false;
}
}
#if SWIG_DOTNET_1
public void CopyTo(System.Array array)
#else
public void CopyTo(aiMeshAnim[] array)
#endif
{
CopyTo(0, array, 0, this.Count);
}
#if SWIG_DOTNET_1
public void CopyTo(System.Array array, int arrayIndex)
#else
public void CopyTo(aiMeshAnim[] array, int arrayIndex)
#endif
{
CopyTo(0, array, arrayIndex, this.Count);
}
#if SWIG_DOTNET_1
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
#else
public void CopyTo(int index, aiMeshAnim[] array, int arrayIndex, int count)
#endif
{
if (array == null)
throw new ArgumentNullException("array");
if (index < 0)
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
if (arrayIndex < 0)
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
if (count < 0)
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
if (array.Rank > 1)
throw new ArgumentException("Multi dimensional array.", "array");
if (index+count > this.Count || arrayIndex+count > array.Length)
throw new ArgumentException("Number of elements to copy is too large.");
for (int i=0; i<count; i++)
array.SetValue(getitemcopy(index+i), arrayIndex+i);
}
#if !SWIG_DOTNET_1
System.Collections.Generic.IEnumerator<aiMeshAnim> System.Collections.Generic.IEnumerable<aiMeshAnim>.GetEnumerator() {
return new aiMeshAnimVectorEnumerator(this);
}
#endif
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
return new aiMeshAnimVectorEnumerator(this);
}
public aiMeshAnimVectorEnumerator GetEnumerator() {
return new aiMeshAnimVectorEnumerator(this);
}
// Type-safe enumerator
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
/// whenever the collection is modified. This has been done for changes in the size of the
/// collection but not when one of the elements of the collection is modified as it is a bit
/// tricky to detect unmanaged code that modifies the collection under our feet.
public sealed class aiMeshAnimVectorEnumerator : System.Collections.IEnumerator
#if !SWIG_DOTNET_1
, System.Collections.Generic.IEnumerator<aiMeshAnim>
#endif
{
private aiMeshAnimVector collectionRef;
private int currentIndex;
private object currentObject;
private int currentSize;
public aiMeshAnimVectorEnumerator(aiMeshAnimVector collection) {
collectionRef = collection;
currentIndex = -1;
currentObject = null;
currentSize = collectionRef.Count;
}
// Type-safe iterator Current
public aiMeshAnim Current {
get {
if (currentIndex == -1)
throw new InvalidOperationException("Enumeration not started.");
if (currentIndex > currentSize - 1)
throw new InvalidOperationException("Enumeration finished.");
if (currentObject == null)
throw new InvalidOperationException("Collection modified.");
return (aiMeshAnim)currentObject;
}
}
// Type-unsafe IEnumerator.Current
object System.Collections.IEnumerator.Current {
get {
return Current;
}
}
public bool MoveNext() {
int size = collectionRef.Count;
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
if (moveOkay) {
currentIndex++;
currentObject = collectionRef[currentIndex];
} else {
currentObject = null;
}
return moveOkay;
}
public void Reset() {
currentIndex = -1;
currentObject = null;
if (collectionRef.Count != currentSize) {
throw new InvalidOperationException("Collection modified.");
}
}
#if !SWIG_DOTNET_1
public void Dispose() {
currentIndex = -1;
currentObject = null;
}
#endif
}
public void Clear() {
AssimpPINVOKE.aiMeshAnimVector_Clear(swigCPtr);
}
public void Add(aiMeshAnim x) {
AssimpPINVOKE.aiMeshAnimVector_Add(swigCPtr, aiMeshAnim.getCPtr(x));
}
private uint size() {
uint ret = AssimpPINVOKE.aiMeshAnimVector_size(swigCPtr);
return ret;
}
private uint capacity() {
uint ret = AssimpPINVOKE.aiMeshAnimVector_capacity(swigCPtr);
return ret;
}
private void reserve(uint n) {
AssimpPINVOKE.aiMeshAnimVector_reserve(swigCPtr, n);
}
public aiMeshAnimVector() : this(AssimpPINVOKE.new_aiMeshAnimVector__SWIG_0(), true) {
}
public aiMeshAnimVector(aiMeshAnimVector other) : this(AssimpPINVOKE.new_aiMeshAnimVector__SWIG_1(aiMeshAnimVector.getCPtr(other)), true) {
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public aiMeshAnimVector(int capacity) : this(AssimpPINVOKE.new_aiMeshAnimVector__SWIG_2(capacity), true) {
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
private aiMeshAnim getitemcopy(int index) {
IntPtr cPtr = AssimpPINVOKE.aiMeshAnimVector_getitemcopy(swigCPtr, index);
aiMeshAnim ret = (cPtr == IntPtr.Zero) ? null : new aiMeshAnim(cPtr, false);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private aiMeshAnim getitem(int index) {
IntPtr cPtr = AssimpPINVOKE.aiMeshAnimVector_getitem(swigCPtr, index);
aiMeshAnim ret = (cPtr == IntPtr.Zero) ? null : new aiMeshAnim(cPtr, false);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private void setitem(int index, aiMeshAnim val) {
AssimpPINVOKE.aiMeshAnimVector_setitem(swigCPtr, index, aiMeshAnim.getCPtr(val));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void AddRange(aiMeshAnimVector values) {
AssimpPINVOKE.aiMeshAnimVector_AddRange(swigCPtr, aiMeshAnimVector.getCPtr(values));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public aiMeshAnimVector GetRange(int index, int count) {
IntPtr cPtr = AssimpPINVOKE.aiMeshAnimVector_GetRange(swigCPtr, index, count);
aiMeshAnimVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshAnimVector(cPtr, true);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void Insert(int index, aiMeshAnim x) {
AssimpPINVOKE.aiMeshAnimVector_Insert(swigCPtr, index, aiMeshAnim.getCPtr(x));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void InsertRange(int index, aiMeshAnimVector values) {
AssimpPINVOKE.aiMeshAnimVector_InsertRange(swigCPtr, index, aiMeshAnimVector.getCPtr(values));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void RemoveAt(int index) {
AssimpPINVOKE.aiMeshAnimVector_RemoveAt(swigCPtr, index);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void RemoveRange(int index, int count) {
AssimpPINVOKE.aiMeshAnimVector_RemoveRange(swigCPtr, index, count);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public static aiMeshAnimVector Repeat(aiMeshAnim value, int count) {
IntPtr cPtr = AssimpPINVOKE.aiMeshAnimVector_Repeat(aiMeshAnim.getCPtr(value), count);
aiMeshAnimVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshAnimVector(cPtr, true);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void Reverse() {
AssimpPINVOKE.aiMeshAnimVector_Reverse__SWIG_0(swigCPtr);
}
public void Reverse(int index, int count) {
AssimpPINVOKE.aiMeshAnimVector_Reverse__SWIG_1(swigCPtr, index, count);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void SetRange(int index, aiMeshAnimVector values) {
AssimpPINVOKE.aiMeshAnimVector_SetRange(swigCPtr, index, aiMeshAnimVector.getCPtr(values));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public bool Contains(aiMeshAnim value) {
bool ret = AssimpPINVOKE.aiMeshAnimVector_Contains(swigCPtr, aiMeshAnim.getCPtr(value));
return ret;
}
public int IndexOf(aiMeshAnim value) {
int ret = AssimpPINVOKE.aiMeshAnimVector_IndexOf(swigCPtr, aiMeshAnim.getCPtr(value));
return ret;
}
public int LastIndexOf(aiMeshAnim value) {
int ret = AssimpPINVOKE.aiMeshAnimVector_LastIndexOf(swigCPtr, aiMeshAnim.getCPtr(value));
return ret;
}
public bool Remove(aiMeshAnim value) {
bool ret = AssimpPINVOKE.aiMeshAnimVector_Remove(swigCPtr, aiMeshAnim.getCPtr(value));
return ret;
}
}

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiMeshKey : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiMeshKey(swigCPtr); AssimpPINVOKE.delete_aiMeshKey(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -42,51 +42,51 @@ public class aiMeshKey : IDisposable {
public double mTime { public double mTime {
set { set {
Assimp_NETPINVOKE.aiMeshKey_mTime_set(swigCPtr, value); AssimpPINVOKE.aiMeshKey_mTime_set(swigCPtr, value);
} }
get { get {
double ret = Assimp_NETPINVOKE.aiMeshKey_mTime_get(swigCPtr); double ret = AssimpPINVOKE.aiMeshKey_mTime_get(swigCPtr);
return ret; return ret;
} }
} }
public uint mValue { public uint mValue {
set { set {
Assimp_NETPINVOKE.aiMeshKey_mValue_set(swigCPtr, value); AssimpPINVOKE.aiMeshKey_mValue_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiMeshKey_mValue_get(swigCPtr); uint ret = AssimpPINVOKE.aiMeshKey_mValue_get(swigCPtr);
return ret; return ret;
} }
} }
public aiMeshKey() : this(Assimp_NETPINVOKE.new_aiMeshKey__SWIG_0(), true) { public aiMeshKey() : this(AssimpPINVOKE.new_aiMeshKey__SWIG_0(), true) {
} }
public aiMeshKey(double time, uint value) : this(Assimp_NETPINVOKE.new_aiMeshKey__SWIG_1(time, value), true) { public aiMeshKey(double time, uint value) : this(AssimpPINVOKE.new_aiMeshKey__SWIG_1(time, value), true) {
} }
public bool __equal__(aiMeshKey o) { public bool __equal__(aiMeshKey o) {
bool ret = Assimp_NETPINVOKE.aiMeshKey___equal__(swigCPtr, aiMeshKey.getCPtr(o)); bool ret = AssimpPINVOKE.aiMeshKey___equal__(swigCPtr, aiMeshKey.getCPtr(o));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public bool __nequal__(aiMeshKey o) { public bool __nequal__(aiMeshKey o) {
bool ret = Assimp_NETPINVOKE.aiMeshKey___nequal__(swigCPtr, aiMeshKey.getCPtr(o)); bool ret = AssimpPINVOKE.aiMeshKey___nequal__(swigCPtr, aiMeshKey.getCPtr(o));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public bool __smaller__(aiMeshKey o) { public bool __smaller__(aiMeshKey o) {
bool ret = Assimp_NETPINVOKE.aiMeshKey___smaller__(swigCPtr, aiMeshKey.getCPtr(o)); bool ret = AssimpPINVOKE.aiMeshKey___smaller__(swigCPtr, aiMeshKey.getCPtr(o));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public bool __greater__(aiMeshKey o) { public bool __greater__(aiMeshKey o) {
bool ret = Assimp_NETPINVOKE.aiMeshKey___greater__(swigCPtr, aiMeshKey.getCPtr(o)); bool ret = AssimpPINVOKE.aiMeshKey___greater__(swigCPtr, aiMeshKey.getCPtr(o));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }

View File

@ -0,0 +1,348 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.0
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class aiMeshKeyVector : IDisposable, System.Collections.IEnumerable
#if !SWIG_DOTNET_1
, System.Collections.Generic.IList<aiMeshKey>
#endif
{
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal aiMeshKeyVector(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(aiMeshKeyVector obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~aiMeshKeyVector() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
AssimpPINVOKE.delete_aiMeshKeyVector(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public aiMeshKeyVector(System.Collections.ICollection c) : this() {
if (c == null)
throw new ArgumentNullException("c");
foreach (aiMeshKey element in c) {
this.Add(element);
}
}
public bool IsFixedSize {
get {
return false;
}
}
public bool IsReadOnly {
get {
return false;
}
}
public aiMeshKey this[int index] {
get {
return getitem(index);
}
set {
setitem(index, value);
}
}
public int Capacity {
get {
return (int)capacity();
}
set {
if (value < size())
throw new ArgumentOutOfRangeException("Capacity");
reserve((uint)value);
}
}
public int Count {
get {
return (int)size();
}
}
public bool IsSynchronized {
get {
return false;
}
}
#if SWIG_DOTNET_1
public void CopyTo(System.Array array)
#else
public void CopyTo(aiMeshKey[] array)
#endif
{
CopyTo(0, array, 0, this.Count);
}
#if SWIG_DOTNET_1
public void CopyTo(System.Array array, int arrayIndex)
#else
public void CopyTo(aiMeshKey[] array, int arrayIndex)
#endif
{
CopyTo(0, array, arrayIndex, this.Count);
}
#if SWIG_DOTNET_1
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
#else
public void CopyTo(int index, aiMeshKey[] array, int arrayIndex, int count)
#endif
{
if (array == null)
throw new ArgumentNullException("array");
if (index < 0)
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
if (arrayIndex < 0)
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
if (count < 0)
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
if (array.Rank > 1)
throw new ArgumentException("Multi dimensional array.", "array");
if (index+count > this.Count || arrayIndex+count > array.Length)
throw new ArgumentException("Number of elements to copy is too large.");
for (int i=0; i<count; i++)
array.SetValue(getitemcopy(index+i), arrayIndex+i);
}
#if !SWIG_DOTNET_1
System.Collections.Generic.IEnumerator<aiMeshKey> System.Collections.Generic.IEnumerable<aiMeshKey>.GetEnumerator() {
return new aiMeshKeyVectorEnumerator(this);
}
#endif
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
return new aiMeshKeyVectorEnumerator(this);
}
public aiMeshKeyVectorEnumerator GetEnumerator() {
return new aiMeshKeyVectorEnumerator(this);
}
// Type-safe enumerator
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
/// whenever the collection is modified. This has been done for changes in the size of the
/// collection but not when one of the elements of the collection is modified as it is a bit
/// tricky to detect unmanaged code that modifies the collection under our feet.
public sealed class aiMeshKeyVectorEnumerator : System.Collections.IEnumerator
#if !SWIG_DOTNET_1
, System.Collections.Generic.IEnumerator<aiMeshKey>
#endif
{
private aiMeshKeyVector collectionRef;
private int currentIndex;
private object currentObject;
private int currentSize;
public aiMeshKeyVectorEnumerator(aiMeshKeyVector collection) {
collectionRef = collection;
currentIndex = -1;
currentObject = null;
currentSize = collectionRef.Count;
}
// Type-safe iterator Current
public aiMeshKey Current {
get {
if (currentIndex == -1)
throw new InvalidOperationException("Enumeration not started.");
if (currentIndex > currentSize - 1)
throw new InvalidOperationException("Enumeration finished.");
if (currentObject == null)
throw new InvalidOperationException("Collection modified.");
return (aiMeshKey)currentObject;
}
}
// Type-unsafe IEnumerator.Current
object System.Collections.IEnumerator.Current {
get {
return Current;
}
}
public bool MoveNext() {
int size = collectionRef.Count;
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
if (moveOkay) {
currentIndex++;
currentObject = collectionRef[currentIndex];
} else {
currentObject = null;
}
return moveOkay;
}
public void Reset() {
currentIndex = -1;
currentObject = null;
if (collectionRef.Count != currentSize) {
throw new InvalidOperationException("Collection modified.");
}
}
#if !SWIG_DOTNET_1
public void Dispose() {
currentIndex = -1;
currentObject = null;
}
#endif
}
public void Clear() {
AssimpPINVOKE.aiMeshKeyVector_Clear(swigCPtr);
}
public void Add(aiMeshKey x) {
AssimpPINVOKE.aiMeshKeyVector_Add(swigCPtr, aiMeshKey.getCPtr(x));
}
private uint size() {
uint ret = AssimpPINVOKE.aiMeshKeyVector_size(swigCPtr);
return ret;
}
private uint capacity() {
uint ret = AssimpPINVOKE.aiMeshKeyVector_capacity(swigCPtr);
return ret;
}
private void reserve(uint n) {
AssimpPINVOKE.aiMeshKeyVector_reserve(swigCPtr, n);
}
public aiMeshKeyVector() : this(AssimpPINVOKE.new_aiMeshKeyVector__SWIG_0(), true) {
}
public aiMeshKeyVector(aiMeshKeyVector other) : this(AssimpPINVOKE.new_aiMeshKeyVector__SWIG_1(aiMeshKeyVector.getCPtr(other)), true) {
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public aiMeshKeyVector(int capacity) : this(AssimpPINVOKE.new_aiMeshKeyVector__SWIG_2(capacity), true) {
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
private aiMeshKey getitemcopy(int index) {
IntPtr cPtr = AssimpPINVOKE.aiMeshKeyVector_getitemcopy(swigCPtr, index);
aiMeshKey ret = (cPtr == IntPtr.Zero) ? null : new aiMeshKey(cPtr, false);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private aiMeshKey getitem(int index) {
IntPtr cPtr = AssimpPINVOKE.aiMeshKeyVector_getitem(swigCPtr, index);
aiMeshKey ret = (cPtr == IntPtr.Zero) ? null : new aiMeshKey(cPtr, false);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private void setitem(int index, aiMeshKey val) {
AssimpPINVOKE.aiMeshKeyVector_setitem(swigCPtr, index, aiMeshKey.getCPtr(val));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void AddRange(aiMeshKeyVector values) {
AssimpPINVOKE.aiMeshKeyVector_AddRange(swigCPtr, aiMeshKeyVector.getCPtr(values));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public aiMeshKeyVector GetRange(int index, int count) {
IntPtr cPtr = AssimpPINVOKE.aiMeshKeyVector_GetRange(swigCPtr, index, count);
aiMeshKeyVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshKeyVector(cPtr, true);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void Insert(int index, aiMeshKey x) {
AssimpPINVOKE.aiMeshKeyVector_Insert(swigCPtr, index, aiMeshKey.getCPtr(x));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void InsertRange(int index, aiMeshKeyVector values) {
AssimpPINVOKE.aiMeshKeyVector_InsertRange(swigCPtr, index, aiMeshKeyVector.getCPtr(values));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void RemoveAt(int index) {
AssimpPINVOKE.aiMeshKeyVector_RemoveAt(swigCPtr, index);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void RemoveRange(int index, int count) {
AssimpPINVOKE.aiMeshKeyVector_RemoveRange(swigCPtr, index, count);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public static aiMeshKeyVector Repeat(aiMeshKey value, int count) {
IntPtr cPtr = AssimpPINVOKE.aiMeshKeyVector_Repeat(aiMeshKey.getCPtr(value), count);
aiMeshKeyVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshKeyVector(cPtr, true);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void Reverse() {
AssimpPINVOKE.aiMeshKeyVector_Reverse__SWIG_0(swigCPtr);
}
public void Reverse(int index, int count) {
AssimpPINVOKE.aiMeshKeyVector_Reverse__SWIG_1(swigCPtr, index, count);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void SetRange(int index, aiMeshKeyVector values) {
AssimpPINVOKE.aiMeshKeyVector_SetRange(swigCPtr, index, aiMeshKeyVector.getCPtr(values));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public bool Contains(aiMeshKey value) {
bool ret = AssimpPINVOKE.aiMeshKeyVector_Contains(swigCPtr, aiMeshKey.getCPtr(value));
return ret;
}
public int IndexOf(aiMeshKey value) {
int ret = AssimpPINVOKE.aiMeshKeyVector_IndexOf(swigCPtr, aiMeshKey.getCPtr(value));
return ret;
}
public int LastIndexOf(aiMeshKey value) {
int ret = AssimpPINVOKE.aiMeshKeyVector_LastIndexOf(swigCPtr, aiMeshKey.getCPtr(value));
return ret;
}
public bool Remove(aiMeshKey value) {
bool ret = AssimpPINVOKE.aiMeshKeyVector_Remove(swigCPtr, aiMeshKey.getCPtr(value));
return ret;
}
}

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -36,7 +36,7 @@ public class aiMeshVector : IDisposable, System.Collections.IEnumerable
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiMeshVector(swigCPtr); AssimpPINVOKE.delete_aiMeshVector(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -221,127 +221,127 @@ public class aiMeshVector : IDisposable, System.Collections.IEnumerable
} }
public void Clear() { public void Clear() {
Assimp_NETPINVOKE.aiMeshVector_Clear(swigCPtr); AssimpPINVOKE.aiMeshVector_Clear(swigCPtr);
} }
public void Add(aiMesh x) { public void Add(aiMesh x) {
Assimp_NETPINVOKE.aiMeshVector_Add(swigCPtr, aiMesh.getCPtr(x)); AssimpPINVOKE.aiMeshVector_Add(swigCPtr, aiMesh.getCPtr(x));
} }
private uint size() { private uint size() {
uint ret = Assimp_NETPINVOKE.aiMeshVector_size(swigCPtr); uint ret = AssimpPINVOKE.aiMeshVector_size(swigCPtr);
return ret; return ret;
} }
private uint capacity() { private uint capacity() {
uint ret = Assimp_NETPINVOKE.aiMeshVector_capacity(swigCPtr); uint ret = AssimpPINVOKE.aiMeshVector_capacity(swigCPtr);
return ret; return ret;
} }
private void reserve(uint n) { private void reserve(uint n) {
Assimp_NETPINVOKE.aiMeshVector_reserve(swigCPtr, n); AssimpPINVOKE.aiMeshVector_reserve(swigCPtr, n);
} }
public aiMeshVector() : this(Assimp_NETPINVOKE.new_aiMeshVector__SWIG_0(), true) { public aiMeshVector() : this(AssimpPINVOKE.new_aiMeshVector__SWIG_0(), true) {
} }
public aiMeshVector(aiMeshVector other) : this(Assimp_NETPINVOKE.new_aiMeshVector__SWIG_1(aiMeshVector.getCPtr(other)), true) { public aiMeshVector(aiMeshVector other) : this(AssimpPINVOKE.new_aiMeshVector__SWIG_1(aiMeshVector.getCPtr(other)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiMeshVector(int capacity) : this(Assimp_NETPINVOKE.new_aiMeshVector__SWIG_2(capacity), true) { public aiMeshVector(int capacity) : this(AssimpPINVOKE.new_aiMeshVector__SWIG_2(capacity), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
private aiMesh getitemcopy(int index) { private aiMesh getitemcopy(int index) {
IntPtr cPtr = Assimp_NETPINVOKE.aiMeshVector_getitemcopy(swigCPtr, index); IntPtr cPtr = AssimpPINVOKE.aiMeshVector_getitemcopy(swigCPtr, index);
aiMesh ret = (cPtr == IntPtr.Zero) ? null : new aiMesh(cPtr, false); aiMesh ret = (cPtr == IntPtr.Zero) ? null : new aiMesh(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private aiMesh getitem(int index) { private aiMesh getitem(int index) {
IntPtr cPtr = Assimp_NETPINVOKE.aiMeshVector_getitem(swigCPtr, index); IntPtr cPtr = AssimpPINVOKE.aiMeshVector_getitem(swigCPtr, index);
aiMesh ret = (cPtr == IntPtr.Zero) ? null : new aiMesh(cPtr, false); aiMesh ret = (cPtr == IntPtr.Zero) ? null : new aiMesh(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private void setitem(int index, aiMesh val) { private void setitem(int index, aiMesh val) {
Assimp_NETPINVOKE.aiMeshVector_setitem(swigCPtr, index, aiMesh.getCPtr(val)); AssimpPINVOKE.aiMeshVector_setitem(swigCPtr, index, aiMesh.getCPtr(val));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void AddRange(aiMeshVector values) { public void AddRange(aiMeshVector values) {
Assimp_NETPINVOKE.aiMeshVector_AddRange(swigCPtr, aiMeshVector.getCPtr(values)); AssimpPINVOKE.aiMeshVector_AddRange(swigCPtr, aiMeshVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiMeshVector GetRange(int index, int count) { public aiMeshVector GetRange(int index, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.aiMeshVector_GetRange(swigCPtr, index, count); IntPtr cPtr = AssimpPINVOKE.aiMeshVector_GetRange(swigCPtr, index, count);
aiMeshVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshVector(cPtr, true); aiMeshVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Insert(int index, aiMesh x) { public void Insert(int index, aiMesh x) {
Assimp_NETPINVOKE.aiMeshVector_Insert(swigCPtr, index, aiMesh.getCPtr(x)); AssimpPINVOKE.aiMeshVector_Insert(swigCPtr, index, aiMesh.getCPtr(x));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void InsertRange(int index, aiMeshVector values) { public void InsertRange(int index, aiMeshVector values) {
Assimp_NETPINVOKE.aiMeshVector_InsertRange(swigCPtr, index, aiMeshVector.getCPtr(values)); AssimpPINVOKE.aiMeshVector_InsertRange(swigCPtr, index, aiMeshVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveAt(int index) { public void RemoveAt(int index) {
Assimp_NETPINVOKE.aiMeshVector_RemoveAt(swigCPtr, index); AssimpPINVOKE.aiMeshVector_RemoveAt(swigCPtr, index);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveRange(int index, int count) { public void RemoveRange(int index, int count) {
Assimp_NETPINVOKE.aiMeshVector_RemoveRange(swigCPtr, index, count); AssimpPINVOKE.aiMeshVector_RemoveRange(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public static aiMeshVector Repeat(aiMesh value, int count) { public static aiMeshVector Repeat(aiMesh value, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.aiMeshVector_Repeat(aiMesh.getCPtr(value), count); IntPtr cPtr = AssimpPINVOKE.aiMeshVector_Repeat(aiMesh.getCPtr(value), count);
aiMeshVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshVector(cPtr, true); aiMeshVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Reverse() { public void Reverse() {
Assimp_NETPINVOKE.aiMeshVector_Reverse__SWIG_0(swigCPtr); AssimpPINVOKE.aiMeshVector_Reverse__SWIG_0(swigCPtr);
} }
public void Reverse(int index, int count) { public void Reverse(int index, int count) {
Assimp_NETPINVOKE.aiMeshVector_Reverse__SWIG_1(swigCPtr, index, count); AssimpPINVOKE.aiMeshVector_Reverse__SWIG_1(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void SetRange(int index, aiMeshVector values) { public void SetRange(int index, aiMeshVector values) {
Assimp_NETPINVOKE.aiMeshVector_SetRange(swigCPtr, index, aiMeshVector.getCPtr(values)); AssimpPINVOKE.aiMeshVector_SetRange(swigCPtr, index, aiMeshVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public bool Contains(aiMesh value) { public bool Contains(aiMesh value) {
bool ret = Assimp_NETPINVOKE.aiMeshVector_Contains(swigCPtr, aiMesh.getCPtr(value)); bool ret = AssimpPINVOKE.aiMeshVector_Contains(swigCPtr, aiMesh.getCPtr(value));
return ret; return ret;
} }
public int IndexOf(aiMesh value) { public int IndexOf(aiMesh value) {
int ret = Assimp_NETPINVOKE.aiMeshVector_IndexOf(swigCPtr, aiMesh.getCPtr(value)); int ret = AssimpPINVOKE.aiMeshVector_IndexOf(swigCPtr, aiMesh.getCPtr(value));
return ret; return ret;
} }
public int LastIndexOf(aiMesh value) { public int LastIndexOf(aiMesh value) {
int ret = Assimp_NETPINVOKE.aiMeshVector_LastIndexOf(swigCPtr, aiMesh.getCPtr(value)); int ret = AssimpPINVOKE.aiMeshVector_LastIndexOf(swigCPtr, aiMesh.getCPtr(value));
return ret; return ret;
} }
public bool Remove(aiMesh value) { public bool Remove(aiMesh value) {
bool ret = Assimp_NETPINVOKE.aiMeshVector_Remove(swigCPtr, aiMesh.getCPtr(value)); bool ret = AssimpPINVOKE.aiMeshVector_Remove(swigCPtr, aiMesh.getCPtr(value));
return ret; return ret;
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiNode : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiNode(swigCPtr); AssimpPINVOKE.delete_aiNode(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -40,12 +40,15 @@ public class aiNode : IDisposable {
} }
} }
public aiNodeVector mChildren { get { return GetmChildren(); } }
public UintVector mMeshes { get { return GetmMeshes(); } }
public aiString mName { public aiString mName {
set { set {
Assimp_NETPINVOKE.aiNode_mName_set(swigCPtr, aiString.getCPtr(value)); AssimpPINVOKE.aiNode_mName_set(swigCPtr, aiString.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiNode_mName_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiNode_mName_get(swigCPtr);
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false); aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
return ret; return ret;
} }
@ -53,10 +56,10 @@ public class aiNode : IDisposable {
public aiMatrix4x4 mTransformation { public aiMatrix4x4 mTransformation {
set { set {
Assimp_NETPINVOKE.aiNode_mTransformation_set(swigCPtr, aiMatrix4x4.getCPtr(value)); AssimpPINVOKE.aiNode_mTransformation_set(swigCPtr, aiMatrix4x4.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiNode_mTransformation_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiNode_mTransformation_get(swigCPtr);
aiMatrix4x4 ret = (cPtr == IntPtr.Zero) ? null : new aiMatrix4x4(cPtr, false); aiMatrix4x4 ret = (cPtr == IntPtr.Zero) ? null : new aiMatrix4x4(cPtr, false);
return ret; return ret;
} }
@ -64,10 +67,10 @@ public class aiNode : IDisposable {
public aiNode mParent { public aiNode mParent {
set { set {
Assimp_NETPINVOKE.aiNode_mParent_set(swigCPtr, aiNode.getCPtr(value)); AssimpPINVOKE.aiNode_mParent_set(swigCPtr, aiNode.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiNode_mParent_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiNode_mParent_get(swigCPtr);
aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false); aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
return ret; return ret;
} }
@ -75,64 +78,54 @@ public class aiNode : IDisposable {
public uint mNumChildren { public uint mNumChildren {
set { set {
Assimp_NETPINVOKE.aiNode_mNumChildren_set(swigCPtr, value); AssimpPINVOKE.aiNode_mNumChildren_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiNode_mNumChildren_get(swigCPtr); uint ret = AssimpPINVOKE.aiNode_mNumChildren_get(swigCPtr);
return ret;
}
}
public SWIGTYPE_p_p_aiNode mChildren {
set {
Assimp_NETPINVOKE.aiNode_mChildren_set(swigCPtr, SWIGTYPE_p_p_aiNode.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiNode_mChildren_get(swigCPtr);
SWIGTYPE_p_p_aiNode ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_aiNode(cPtr, false);
return ret; return ret;
} }
} }
public uint mNumMeshes { public uint mNumMeshes {
set { set {
Assimp_NETPINVOKE.aiNode_mNumMeshes_set(swigCPtr, value); AssimpPINVOKE.aiNode_mNumMeshes_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiNode_mNumMeshes_get(swigCPtr); uint ret = AssimpPINVOKE.aiNode_mNumMeshes_get(swigCPtr);
return ret; return ret;
} }
} }
public SWIGTYPE_p_unsigned_int mMeshes { public aiNode() : this(AssimpPINVOKE.new_aiNode__SWIG_0(), true) {
set {
Assimp_NETPINVOKE.aiNode_mMeshes_set(swigCPtr, SWIGTYPE_p_unsigned_int.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiNode_mMeshes_get(swigCPtr);
SWIGTYPE_p_unsigned_int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_int(cPtr, false);
return ret;
}
} }
public aiNode() : this(Assimp_NETPINVOKE.new_aiNode__SWIG_0(), true) { public aiNode(string name) : this(AssimpPINVOKE.new_aiNode__SWIG_1(name), true) {
} if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
public aiNode(string name) : this(Assimp_NETPINVOKE.new_aiNode__SWIG_1(name), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
} }
public aiNode FindNode(aiString name) { public aiNode FindNode(aiString name) {
IntPtr cPtr = Assimp_NETPINVOKE.aiNode_FindNode__SWIG_0(swigCPtr, aiString.getCPtr(name)); IntPtr cPtr = AssimpPINVOKE.aiNode_FindNode__SWIG_0(swigCPtr, aiString.getCPtr(name));
aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false); aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public aiNode FindNode(string name) { public aiNode FindNode(string name) {
IntPtr cPtr = Assimp_NETPINVOKE.aiNode_FindNode__SWIG_1(swigCPtr, name); IntPtr cPtr = AssimpPINVOKE.aiNode_FindNode__SWIG_1(swigCPtr, name);
aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false); aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
return ret; return ret;
} }
private aiNodeVector GetmChildren() {
IntPtr cPtr = AssimpPINVOKE.aiNode_GetmChildren(swigCPtr);
aiNodeVector ret = (cPtr == IntPtr.Zero) ? null : new aiNodeVector(cPtr, true);
return ret;
}
private UintVector GetmMeshes() {
IntPtr cPtr = AssimpPINVOKE.aiNode_GetmMeshes(swigCPtr);
UintVector ret = (cPtr == IntPtr.Zero) ? null : new UintVector(cPtr, true);
return ret;
}
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiNodeAnim : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiNodeAnim(swigCPtr); AssimpPINVOKE.delete_aiNodeAnim(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -40,12 +40,16 @@ public class aiNodeAnim : IDisposable {
} }
} }
public aiVectorKeyVector mPositionKeys { get { return GetmPositionKeys(); } }
public aiQuatKeyVector mRotationKeys { get { return GetmRotationKeys(); } }
public aiVectorKeyVector mScalingKeys { get { return GetmScalingKeys(); } }
public aiString mNodeName { public aiString mNodeName {
set { set {
Assimp_NETPINVOKE.aiNodeAnim_mNodeName_set(swigCPtr, aiString.getCPtr(value)); AssimpPINVOKE.aiNodeAnim_mNodeName_set(swigCPtr, aiString.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiNodeAnim_mNodeName_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiNodeAnim_mNodeName_get(swigCPtr);
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false); aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
return ret; return ret;
} }
@ -53,88 +57,73 @@ public class aiNodeAnim : IDisposable {
public uint mNumPositionKeys { public uint mNumPositionKeys {
set { set {
Assimp_NETPINVOKE.aiNodeAnim_mNumPositionKeys_set(swigCPtr, value); AssimpPINVOKE.aiNodeAnim_mNumPositionKeys_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiNodeAnim_mNumPositionKeys_get(swigCPtr); uint ret = AssimpPINVOKE.aiNodeAnim_mNumPositionKeys_get(swigCPtr);
return ret;
}
}
public aiVectorKey mPositionKeys {
set {
Assimp_NETPINVOKE.aiNodeAnim_mPositionKeys_set(swigCPtr, aiVectorKey.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiNodeAnim_mPositionKeys_get(swigCPtr);
aiVectorKey ret = (cPtr == IntPtr.Zero) ? null : new aiVectorKey(cPtr, false);
return ret; return ret;
} }
} }
public uint mNumRotationKeys { public uint mNumRotationKeys {
set { set {
Assimp_NETPINVOKE.aiNodeAnim_mNumRotationKeys_set(swigCPtr, value); AssimpPINVOKE.aiNodeAnim_mNumRotationKeys_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiNodeAnim_mNumRotationKeys_get(swigCPtr); uint ret = AssimpPINVOKE.aiNodeAnim_mNumRotationKeys_get(swigCPtr);
return ret;
}
}
public aiQuatKey mRotationKeys {
set {
Assimp_NETPINVOKE.aiNodeAnim_mRotationKeys_set(swigCPtr, aiQuatKey.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiNodeAnim_mRotationKeys_get(swigCPtr);
aiQuatKey ret = (cPtr == IntPtr.Zero) ? null : new aiQuatKey(cPtr, false);
return ret; return ret;
} }
} }
public uint mNumScalingKeys { public uint mNumScalingKeys {
set { set {
Assimp_NETPINVOKE.aiNodeAnim_mNumScalingKeys_set(swigCPtr, value); AssimpPINVOKE.aiNodeAnim_mNumScalingKeys_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiNodeAnim_mNumScalingKeys_get(swigCPtr); uint ret = AssimpPINVOKE.aiNodeAnim_mNumScalingKeys_get(swigCPtr);
return ret;
}
}
public aiVectorKey mScalingKeys {
set {
Assimp_NETPINVOKE.aiNodeAnim_mScalingKeys_set(swigCPtr, aiVectorKey.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiNodeAnim_mScalingKeys_get(swigCPtr);
aiVectorKey ret = (cPtr == IntPtr.Zero) ? null : new aiVectorKey(cPtr, false);
return ret; return ret;
} }
} }
public aiAnimBehaviour mPreState { public aiAnimBehaviour mPreState {
set { set {
Assimp_NETPINVOKE.aiNodeAnim_mPreState_set(swigCPtr, (int)value); AssimpPINVOKE.aiNodeAnim_mPreState_set(swigCPtr, (int)value);
} }
get { get {
aiAnimBehaviour ret = (aiAnimBehaviour)Assimp_NETPINVOKE.aiNodeAnim_mPreState_get(swigCPtr); aiAnimBehaviour ret = (aiAnimBehaviour)AssimpPINVOKE.aiNodeAnim_mPreState_get(swigCPtr);
return ret; return ret;
} }
} }
public aiAnimBehaviour mPostState { public aiAnimBehaviour mPostState {
set { set {
Assimp_NETPINVOKE.aiNodeAnim_mPostState_set(swigCPtr, (int)value); AssimpPINVOKE.aiNodeAnim_mPostState_set(swigCPtr, (int)value);
} }
get { get {
aiAnimBehaviour ret = (aiAnimBehaviour)Assimp_NETPINVOKE.aiNodeAnim_mPostState_get(swigCPtr); aiAnimBehaviour ret = (aiAnimBehaviour)AssimpPINVOKE.aiNodeAnim_mPostState_get(swigCPtr);
return ret; return ret;
} }
} }
public aiNodeAnim() : this(Assimp_NETPINVOKE.new_aiNodeAnim(), true) { public aiNodeAnim() : this(AssimpPINVOKE.new_aiNodeAnim(), true) {
}
private aiVectorKeyVector GetmPositionKeys() {
IntPtr cPtr = AssimpPINVOKE.aiNodeAnim_GetmPositionKeys(swigCPtr);
aiVectorKeyVector ret = (cPtr == IntPtr.Zero) ? null : new aiVectorKeyVector(cPtr, true);
return ret;
}
private aiQuatKeyVector GetmRotationKeys() {
IntPtr cPtr = AssimpPINVOKE.aiNodeAnim_GetmRotationKeys(swigCPtr);
aiQuatKeyVector ret = (cPtr == IntPtr.Zero) ? null : new aiQuatKeyVector(cPtr, true);
return ret;
}
private aiVectorKeyVector GetmScalingKeys() {
IntPtr cPtr = AssimpPINVOKE.aiNodeAnim_GetmScalingKeys(swigCPtr);
aiVectorKeyVector ret = (cPtr == IntPtr.Zero) ? null : new aiVectorKeyVector(cPtr, true);
return ret;
} }
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -36,7 +36,7 @@ public class aiNodeAnimVector : IDisposable, System.Collections.IEnumerable
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiNodeAnimVector(swigCPtr); AssimpPINVOKE.delete_aiNodeAnimVector(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -221,127 +221,127 @@ public class aiNodeAnimVector : IDisposable, System.Collections.IEnumerable
} }
public void Clear() { public void Clear() {
Assimp_NETPINVOKE.aiNodeAnimVector_Clear(swigCPtr); AssimpPINVOKE.aiNodeAnimVector_Clear(swigCPtr);
} }
public void Add(aiNodeAnim x) { public void Add(aiNodeAnim x) {
Assimp_NETPINVOKE.aiNodeAnimVector_Add(swigCPtr, aiNodeAnim.getCPtr(x)); AssimpPINVOKE.aiNodeAnimVector_Add(swigCPtr, aiNodeAnim.getCPtr(x));
} }
private uint size() { private uint size() {
uint ret = Assimp_NETPINVOKE.aiNodeAnimVector_size(swigCPtr); uint ret = AssimpPINVOKE.aiNodeAnimVector_size(swigCPtr);
return ret; return ret;
} }
private uint capacity() { private uint capacity() {
uint ret = Assimp_NETPINVOKE.aiNodeAnimVector_capacity(swigCPtr); uint ret = AssimpPINVOKE.aiNodeAnimVector_capacity(swigCPtr);
return ret; return ret;
} }
private void reserve(uint n) { private void reserve(uint n) {
Assimp_NETPINVOKE.aiNodeAnimVector_reserve(swigCPtr, n); AssimpPINVOKE.aiNodeAnimVector_reserve(swigCPtr, n);
} }
public aiNodeAnimVector() : this(Assimp_NETPINVOKE.new_aiNodeAnimVector__SWIG_0(), true) { public aiNodeAnimVector() : this(AssimpPINVOKE.new_aiNodeAnimVector__SWIG_0(), true) {
} }
public aiNodeAnimVector(aiNodeAnimVector other) : this(Assimp_NETPINVOKE.new_aiNodeAnimVector__SWIG_1(aiNodeAnimVector.getCPtr(other)), true) { public aiNodeAnimVector(aiNodeAnimVector other) : this(AssimpPINVOKE.new_aiNodeAnimVector__SWIG_1(aiNodeAnimVector.getCPtr(other)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiNodeAnimVector(int capacity) : this(Assimp_NETPINVOKE.new_aiNodeAnimVector__SWIG_2(capacity), true) { public aiNodeAnimVector(int capacity) : this(AssimpPINVOKE.new_aiNodeAnimVector__SWIG_2(capacity), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
private aiNodeAnim getitemcopy(int index) { private aiNodeAnim getitemcopy(int index) {
IntPtr cPtr = Assimp_NETPINVOKE.aiNodeAnimVector_getitemcopy(swigCPtr, index); IntPtr cPtr = AssimpPINVOKE.aiNodeAnimVector_getitemcopy(swigCPtr, index);
aiNodeAnim ret = (cPtr == IntPtr.Zero) ? null : new aiNodeAnim(cPtr, false); aiNodeAnim ret = (cPtr == IntPtr.Zero) ? null : new aiNodeAnim(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private aiNodeAnim getitem(int index) { private aiNodeAnim getitem(int index) {
IntPtr cPtr = Assimp_NETPINVOKE.aiNodeAnimVector_getitem(swigCPtr, index); IntPtr cPtr = AssimpPINVOKE.aiNodeAnimVector_getitem(swigCPtr, index);
aiNodeAnim ret = (cPtr == IntPtr.Zero) ? null : new aiNodeAnim(cPtr, false); aiNodeAnim ret = (cPtr == IntPtr.Zero) ? null : new aiNodeAnim(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private void setitem(int index, aiNodeAnim val) { private void setitem(int index, aiNodeAnim val) {
Assimp_NETPINVOKE.aiNodeAnimVector_setitem(swigCPtr, index, aiNodeAnim.getCPtr(val)); AssimpPINVOKE.aiNodeAnimVector_setitem(swigCPtr, index, aiNodeAnim.getCPtr(val));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void AddRange(aiNodeAnimVector values) { public void AddRange(aiNodeAnimVector values) {
Assimp_NETPINVOKE.aiNodeAnimVector_AddRange(swigCPtr, aiNodeAnimVector.getCPtr(values)); AssimpPINVOKE.aiNodeAnimVector_AddRange(swigCPtr, aiNodeAnimVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiNodeAnimVector GetRange(int index, int count) { public aiNodeAnimVector GetRange(int index, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.aiNodeAnimVector_GetRange(swigCPtr, index, count); IntPtr cPtr = AssimpPINVOKE.aiNodeAnimVector_GetRange(swigCPtr, index, count);
aiNodeAnimVector ret = (cPtr == IntPtr.Zero) ? null : new aiNodeAnimVector(cPtr, true); aiNodeAnimVector ret = (cPtr == IntPtr.Zero) ? null : new aiNodeAnimVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Insert(int index, aiNodeAnim x) { public void Insert(int index, aiNodeAnim x) {
Assimp_NETPINVOKE.aiNodeAnimVector_Insert(swigCPtr, index, aiNodeAnim.getCPtr(x)); AssimpPINVOKE.aiNodeAnimVector_Insert(swigCPtr, index, aiNodeAnim.getCPtr(x));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void InsertRange(int index, aiNodeAnimVector values) { public void InsertRange(int index, aiNodeAnimVector values) {
Assimp_NETPINVOKE.aiNodeAnimVector_InsertRange(swigCPtr, index, aiNodeAnimVector.getCPtr(values)); AssimpPINVOKE.aiNodeAnimVector_InsertRange(swigCPtr, index, aiNodeAnimVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveAt(int index) { public void RemoveAt(int index) {
Assimp_NETPINVOKE.aiNodeAnimVector_RemoveAt(swigCPtr, index); AssimpPINVOKE.aiNodeAnimVector_RemoveAt(swigCPtr, index);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveRange(int index, int count) { public void RemoveRange(int index, int count) {
Assimp_NETPINVOKE.aiNodeAnimVector_RemoveRange(swigCPtr, index, count); AssimpPINVOKE.aiNodeAnimVector_RemoveRange(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public static aiNodeAnimVector Repeat(aiNodeAnim value, int count) { public static aiNodeAnimVector Repeat(aiNodeAnim value, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.aiNodeAnimVector_Repeat(aiNodeAnim.getCPtr(value), count); IntPtr cPtr = AssimpPINVOKE.aiNodeAnimVector_Repeat(aiNodeAnim.getCPtr(value), count);
aiNodeAnimVector ret = (cPtr == IntPtr.Zero) ? null : new aiNodeAnimVector(cPtr, true); aiNodeAnimVector ret = (cPtr == IntPtr.Zero) ? null : new aiNodeAnimVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Reverse() { public void Reverse() {
Assimp_NETPINVOKE.aiNodeAnimVector_Reverse__SWIG_0(swigCPtr); AssimpPINVOKE.aiNodeAnimVector_Reverse__SWIG_0(swigCPtr);
} }
public void Reverse(int index, int count) { public void Reverse(int index, int count) {
Assimp_NETPINVOKE.aiNodeAnimVector_Reverse__SWIG_1(swigCPtr, index, count); AssimpPINVOKE.aiNodeAnimVector_Reverse__SWIG_1(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void SetRange(int index, aiNodeAnimVector values) { public void SetRange(int index, aiNodeAnimVector values) {
Assimp_NETPINVOKE.aiNodeAnimVector_SetRange(swigCPtr, index, aiNodeAnimVector.getCPtr(values)); AssimpPINVOKE.aiNodeAnimVector_SetRange(swigCPtr, index, aiNodeAnimVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public bool Contains(aiNodeAnim value) { public bool Contains(aiNodeAnim value) {
bool ret = Assimp_NETPINVOKE.aiNodeAnimVector_Contains(swigCPtr, aiNodeAnim.getCPtr(value)); bool ret = AssimpPINVOKE.aiNodeAnimVector_Contains(swigCPtr, aiNodeAnim.getCPtr(value));
return ret; return ret;
} }
public int IndexOf(aiNodeAnim value) { public int IndexOf(aiNodeAnim value) {
int ret = Assimp_NETPINVOKE.aiNodeAnimVector_IndexOf(swigCPtr, aiNodeAnim.getCPtr(value)); int ret = AssimpPINVOKE.aiNodeAnimVector_IndexOf(swigCPtr, aiNodeAnim.getCPtr(value));
return ret; return ret;
} }
public int LastIndexOf(aiNodeAnim value) { public int LastIndexOf(aiNodeAnim value) {
int ret = Assimp_NETPINVOKE.aiNodeAnimVector_LastIndexOf(swigCPtr, aiNodeAnim.getCPtr(value)); int ret = AssimpPINVOKE.aiNodeAnimVector_LastIndexOf(swigCPtr, aiNodeAnim.getCPtr(value));
return ret; return ret;
} }
public bool Remove(aiNodeAnim value) { public bool Remove(aiNodeAnim value) {
bool ret = Assimp_NETPINVOKE.aiNodeAnimVector_Remove(swigCPtr, aiNodeAnim.getCPtr(value)); bool ret = AssimpPINVOKE.aiNodeAnimVector_Remove(swigCPtr, aiNodeAnim.getCPtr(value));
return ret; return ret;
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -36,7 +36,7 @@ public class aiNodeVector : IDisposable, System.Collections.IEnumerable
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiNodeVector(swigCPtr); AssimpPINVOKE.delete_aiNodeVector(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -221,127 +221,127 @@ public class aiNodeVector : IDisposable, System.Collections.IEnumerable
} }
public void Clear() { public void Clear() {
Assimp_NETPINVOKE.aiNodeVector_Clear(swigCPtr); AssimpPINVOKE.aiNodeVector_Clear(swigCPtr);
} }
public void Add(aiNode x) { public void Add(aiNode x) {
Assimp_NETPINVOKE.aiNodeVector_Add(swigCPtr, aiNode.getCPtr(x)); AssimpPINVOKE.aiNodeVector_Add(swigCPtr, aiNode.getCPtr(x));
} }
private uint size() { private uint size() {
uint ret = Assimp_NETPINVOKE.aiNodeVector_size(swigCPtr); uint ret = AssimpPINVOKE.aiNodeVector_size(swigCPtr);
return ret; return ret;
} }
private uint capacity() { private uint capacity() {
uint ret = Assimp_NETPINVOKE.aiNodeVector_capacity(swigCPtr); uint ret = AssimpPINVOKE.aiNodeVector_capacity(swigCPtr);
return ret; return ret;
} }
private void reserve(uint n) { private void reserve(uint n) {
Assimp_NETPINVOKE.aiNodeVector_reserve(swigCPtr, n); AssimpPINVOKE.aiNodeVector_reserve(swigCPtr, n);
} }
public aiNodeVector() : this(Assimp_NETPINVOKE.new_aiNodeVector__SWIG_0(), true) { public aiNodeVector() : this(AssimpPINVOKE.new_aiNodeVector__SWIG_0(), true) {
} }
public aiNodeVector(aiNodeVector other) : this(Assimp_NETPINVOKE.new_aiNodeVector__SWIG_1(aiNodeVector.getCPtr(other)), true) { public aiNodeVector(aiNodeVector other) : this(AssimpPINVOKE.new_aiNodeVector__SWIG_1(aiNodeVector.getCPtr(other)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiNodeVector(int capacity) : this(Assimp_NETPINVOKE.new_aiNodeVector__SWIG_2(capacity), true) { public aiNodeVector(int capacity) : this(AssimpPINVOKE.new_aiNodeVector__SWIG_2(capacity), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
private aiNode getitemcopy(int index) { private aiNode getitemcopy(int index) {
IntPtr cPtr = Assimp_NETPINVOKE.aiNodeVector_getitemcopy(swigCPtr, index); IntPtr cPtr = AssimpPINVOKE.aiNodeVector_getitemcopy(swigCPtr, index);
aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false); aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private aiNode getitem(int index) { private aiNode getitem(int index) {
IntPtr cPtr = Assimp_NETPINVOKE.aiNodeVector_getitem(swigCPtr, index); IntPtr cPtr = AssimpPINVOKE.aiNodeVector_getitem(swigCPtr, index);
aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false); aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
private void setitem(int index, aiNode val) { private void setitem(int index, aiNode val) {
Assimp_NETPINVOKE.aiNodeVector_setitem(swigCPtr, index, aiNode.getCPtr(val)); AssimpPINVOKE.aiNodeVector_setitem(swigCPtr, index, aiNode.getCPtr(val));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void AddRange(aiNodeVector values) { public void AddRange(aiNodeVector values) {
Assimp_NETPINVOKE.aiNodeVector_AddRange(swigCPtr, aiNodeVector.getCPtr(values)); AssimpPINVOKE.aiNodeVector_AddRange(swigCPtr, aiNodeVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiNodeVector GetRange(int index, int count) { public aiNodeVector GetRange(int index, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.aiNodeVector_GetRange(swigCPtr, index, count); IntPtr cPtr = AssimpPINVOKE.aiNodeVector_GetRange(swigCPtr, index, count);
aiNodeVector ret = (cPtr == IntPtr.Zero) ? null : new aiNodeVector(cPtr, true); aiNodeVector ret = (cPtr == IntPtr.Zero) ? null : new aiNodeVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Insert(int index, aiNode x) { public void Insert(int index, aiNode x) {
Assimp_NETPINVOKE.aiNodeVector_Insert(swigCPtr, index, aiNode.getCPtr(x)); AssimpPINVOKE.aiNodeVector_Insert(swigCPtr, index, aiNode.getCPtr(x));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void InsertRange(int index, aiNodeVector values) { public void InsertRange(int index, aiNodeVector values) {
Assimp_NETPINVOKE.aiNodeVector_InsertRange(swigCPtr, index, aiNodeVector.getCPtr(values)); AssimpPINVOKE.aiNodeVector_InsertRange(swigCPtr, index, aiNodeVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveAt(int index) { public void RemoveAt(int index) {
Assimp_NETPINVOKE.aiNodeVector_RemoveAt(swigCPtr, index); AssimpPINVOKE.aiNodeVector_RemoveAt(swigCPtr, index);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void RemoveRange(int index, int count) { public void RemoveRange(int index, int count) {
Assimp_NETPINVOKE.aiNodeVector_RemoveRange(swigCPtr, index, count); AssimpPINVOKE.aiNodeVector_RemoveRange(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public static aiNodeVector Repeat(aiNode value, int count) { public static aiNodeVector Repeat(aiNode value, int count) {
IntPtr cPtr = Assimp_NETPINVOKE.aiNodeVector_Repeat(aiNode.getCPtr(value), count); IntPtr cPtr = AssimpPINVOKE.aiNodeVector_Repeat(aiNode.getCPtr(value), count);
aiNodeVector ret = (cPtr == IntPtr.Zero) ? null : new aiNodeVector(cPtr, true); aiNodeVector ret = (cPtr == IntPtr.Zero) ? null : new aiNodeVector(cPtr, true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Reverse() { public void Reverse() {
Assimp_NETPINVOKE.aiNodeVector_Reverse__SWIG_0(swigCPtr); AssimpPINVOKE.aiNodeVector_Reverse__SWIG_0(swigCPtr);
} }
public void Reverse(int index, int count) { public void Reverse(int index, int count) {
Assimp_NETPINVOKE.aiNodeVector_Reverse__SWIG_1(swigCPtr, index, count); AssimpPINVOKE.aiNodeVector_Reverse__SWIG_1(swigCPtr, index, count);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public void SetRange(int index, aiNodeVector values) { public void SetRange(int index, aiNodeVector values) {
Assimp_NETPINVOKE.aiNodeVector_SetRange(swigCPtr, index, aiNodeVector.getCPtr(values)); AssimpPINVOKE.aiNodeVector_SetRange(swigCPtr, index, aiNodeVector.getCPtr(values));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public bool Contains(aiNode value) { public bool Contains(aiNode value) {
bool ret = Assimp_NETPINVOKE.aiNodeVector_Contains(swigCPtr, aiNode.getCPtr(value)); bool ret = AssimpPINVOKE.aiNodeVector_Contains(swigCPtr, aiNode.getCPtr(value));
return ret; return ret;
} }
public int IndexOf(aiNode value) { public int IndexOf(aiNode value) {
int ret = Assimp_NETPINVOKE.aiNodeVector_IndexOf(swigCPtr, aiNode.getCPtr(value)); int ret = AssimpPINVOKE.aiNodeVector_IndexOf(swigCPtr, aiNode.getCPtr(value));
return ret; return ret;
} }
public int LastIndexOf(aiNode value) { public int LastIndexOf(aiNode value) {
int ret = Assimp_NETPINVOKE.aiNodeVector_LastIndexOf(swigCPtr, aiNode.getCPtr(value)); int ret = AssimpPINVOKE.aiNodeVector_LastIndexOf(swigCPtr, aiNode.getCPtr(value));
return ret; return ret;
} }
public bool Remove(aiNode value) { public bool Remove(aiNode value) {
bool ret = Assimp_NETPINVOKE.aiNodeVector_Remove(swigCPtr, aiNode.getCPtr(value)); bool ret = AssimpPINVOKE.aiNodeVector_Remove(swigCPtr, aiNode.getCPtr(value));
return ret; return ret;
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiPlane : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiPlane(swigCPtr); AssimpPINVOKE.delete_aiPlane(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -40,52 +40,52 @@ public class aiPlane : IDisposable {
} }
} }
public aiPlane() : this(Assimp_NETPINVOKE.new_aiPlane__SWIG_0(), true) { public aiPlane() : this(AssimpPINVOKE.new_aiPlane__SWIG_0(), true) {
} }
public aiPlane(float _a, float _b, float _c, float _d) : this(Assimp_NETPINVOKE.new_aiPlane__SWIG_1(_a, _b, _c, _d), true) { public aiPlane(float _a, float _b, float _c, float _d) : this(AssimpPINVOKE.new_aiPlane__SWIG_1(_a, _b, _c, _d), true) {
} }
public aiPlane(aiPlane o) : this(Assimp_NETPINVOKE.new_aiPlane__SWIG_2(aiPlane.getCPtr(o)), true) { public aiPlane(aiPlane o) : this(AssimpPINVOKE.new_aiPlane__SWIG_2(aiPlane.getCPtr(o)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public float a { public float a {
set { set {
Assimp_NETPINVOKE.aiPlane_a_set(swigCPtr, value); AssimpPINVOKE.aiPlane_a_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiPlane_a_get(swigCPtr); float ret = AssimpPINVOKE.aiPlane_a_get(swigCPtr);
return ret; return ret;
} }
} }
public float b { public float b {
set { set {
Assimp_NETPINVOKE.aiPlane_b_set(swigCPtr, value); AssimpPINVOKE.aiPlane_b_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiPlane_b_get(swigCPtr); float ret = AssimpPINVOKE.aiPlane_b_get(swigCPtr);
return ret; return ret;
} }
} }
public float c { public float c {
set { set {
Assimp_NETPINVOKE.aiPlane_c_set(swigCPtr, value); AssimpPINVOKE.aiPlane_c_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiPlane_c_get(swigCPtr); float ret = AssimpPINVOKE.aiPlane_c_get(swigCPtr);
return ret; return ret;
} }
} }
public float d { public float d {
set { set {
Assimp_NETPINVOKE.aiPlane_d_set(swigCPtr, value); AssimpPINVOKE.aiPlane_d_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiPlane_d_get(swigCPtr); float ret = AssimpPINVOKE.aiPlane_d_get(swigCPtr);
return ret; return ret;
} }
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,4 +32,6 @@ public enum aiPostProcessSteps {
aiProcess_OptimizeGraph = 0x400000, aiProcess_OptimizeGraph = 0x400000,
aiProcess_FlipUVs = 0x800000, aiProcess_FlipUVs = 0x800000,
aiProcess_FlipWindingOrder = 0x1000000 aiProcess_FlipWindingOrder = 0x1000000
, aiProcess_ConvertToLeftHanded = aiProcess_MakeLeftHanded|aiProcess_FlipUVs|aiProcess_FlipWindingOrder,
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiQuatKey : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiQuatKey(swigCPtr); AssimpPINVOKE.delete_aiQuatKey(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -42,53 +42,53 @@ public class aiQuatKey : IDisposable {
public double mTime { public double mTime {
set { set {
Assimp_NETPINVOKE.aiQuatKey_mTime_set(swigCPtr, value); AssimpPINVOKE.aiQuatKey_mTime_set(swigCPtr, value);
} }
get { get {
double ret = Assimp_NETPINVOKE.aiQuatKey_mTime_get(swigCPtr); double ret = AssimpPINVOKE.aiQuatKey_mTime_get(swigCPtr);
return ret; return ret;
} }
} }
public aiQuaternion mValue { public aiQuaternion mValue {
set { set {
Assimp_NETPINVOKE.aiQuatKey_mValue_set(swigCPtr, aiQuaternion.getCPtr(value)); AssimpPINVOKE.aiQuatKey_mValue_set(swigCPtr, aiQuaternion.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiQuatKey_mValue_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiQuatKey_mValue_get(swigCPtr);
aiQuaternion ret = (cPtr == IntPtr.Zero) ? null : new aiQuaternion(cPtr, false); aiQuaternion ret = (cPtr == IntPtr.Zero) ? null : new aiQuaternion(cPtr, false);
return ret; return ret;
} }
} }
public aiQuatKey() : this(Assimp_NETPINVOKE.new_aiQuatKey__SWIG_0(), true) { public aiQuatKey() : this(AssimpPINVOKE.new_aiQuatKey__SWIG_0(), true) {
} }
public aiQuatKey(double time, aiQuaternion value) : this(Assimp_NETPINVOKE.new_aiQuatKey__SWIG_1(time, aiQuaternion.getCPtr(value)), true) { public aiQuatKey(double time, aiQuaternion value) : this(AssimpPINVOKE.new_aiQuatKey__SWIG_1(time, aiQuaternion.getCPtr(value)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public bool __equal__(aiQuatKey o) { public bool __equal__(aiQuatKey o) {
bool ret = Assimp_NETPINVOKE.aiQuatKey___equal__(swigCPtr, aiQuatKey.getCPtr(o)); bool ret = AssimpPINVOKE.aiQuatKey___equal__(swigCPtr, aiQuatKey.getCPtr(o));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public bool __nequal__(aiQuatKey o) { public bool __nequal__(aiQuatKey o) {
bool ret = Assimp_NETPINVOKE.aiQuatKey___nequal__(swigCPtr, aiQuatKey.getCPtr(o)); bool ret = AssimpPINVOKE.aiQuatKey___nequal__(swigCPtr, aiQuatKey.getCPtr(o));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public bool __smaller__(aiQuatKey o) { public bool __smaller__(aiQuatKey o) {
bool ret = Assimp_NETPINVOKE.aiQuatKey___smaller__(swigCPtr, aiQuatKey.getCPtr(o)); bool ret = AssimpPINVOKE.aiQuatKey___smaller__(swigCPtr, aiQuatKey.getCPtr(o));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public bool __greater__(aiQuatKey o) { public bool __greater__(aiQuatKey o) {
bool ret = Assimp_NETPINVOKE.aiQuatKey___greater__(swigCPtr, aiQuatKey.getCPtr(o)); bool ret = AssimpPINVOKE.aiQuatKey___greater__(swigCPtr, aiQuatKey.getCPtr(o));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }

View File

@ -0,0 +1,348 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.0
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class aiQuatKeyVector : IDisposable, System.Collections.IEnumerable
#if !SWIG_DOTNET_1
, System.Collections.Generic.IList<aiQuatKey>
#endif
{
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal aiQuatKeyVector(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(aiQuatKeyVector obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~aiQuatKeyVector() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
AssimpPINVOKE.delete_aiQuatKeyVector(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public aiQuatKeyVector(System.Collections.ICollection c) : this() {
if (c == null)
throw new ArgumentNullException("c");
foreach (aiQuatKey element in c) {
this.Add(element);
}
}
public bool IsFixedSize {
get {
return false;
}
}
public bool IsReadOnly {
get {
return false;
}
}
public aiQuatKey this[int index] {
get {
return getitem(index);
}
set {
setitem(index, value);
}
}
public int Capacity {
get {
return (int)capacity();
}
set {
if (value < size())
throw new ArgumentOutOfRangeException("Capacity");
reserve((uint)value);
}
}
public int Count {
get {
return (int)size();
}
}
public bool IsSynchronized {
get {
return false;
}
}
#if SWIG_DOTNET_1
public void CopyTo(System.Array array)
#else
public void CopyTo(aiQuatKey[] array)
#endif
{
CopyTo(0, array, 0, this.Count);
}
#if SWIG_DOTNET_1
public void CopyTo(System.Array array, int arrayIndex)
#else
public void CopyTo(aiQuatKey[] array, int arrayIndex)
#endif
{
CopyTo(0, array, arrayIndex, this.Count);
}
#if SWIG_DOTNET_1
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
#else
public void CopyTo(int index, aiQuatKey[] array, int arrayIndex, int count)
#endif
{
if (array == null)
throw new ArgumentNullException("array");
if (index < 0)
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
if (arrayIndex < 0)
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
if (count < 0)
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
if (array.Rank > 1)
throw new ArgumentException("Multi dimensional array.", "array");
if (index+count > this.Count || arrayIndex+count > array.Length)
throw new ArgumentException("Number of elements to copy is too large.");
for (int i=0; i<count; i++)
array.SetValue(getitemcopy(index+i), arrayIndex+i);
}
#if !SWIG_DOTNET_1
System.Collections.Generic.IEnumerator<aiQuatKey> System.Collections.Generic.IEnumerable<aiQuatKey>.GetEnumerator() {
return new aiQuatKeyVectorEnumerator(this);
}
#endif
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
return new aiQuatKeyVectorEnumerator(this);
}
public aiQuatKeyVectorEnumerator GetEnumerator() {
return new aiQuatKeyVectorEnumerator(this);
}
// Type-safe enumerator
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
/// whenever the collection is modified. This has been done for changes in the size of the
/// collection but not when one of the elements of the collection is modified as it is a bit
/// tricky to detect unmanaged code that modifies the collection under our feet.
public sealed class aiQuatKeyVectorEnumerator : System.Collections.IEnumerator
#if !SWIG_DOTNET_1
, System.Collections.Generic.IEnumerator<aiQuatKey>
#endif
{
private aiQuatKeyVector collectionRef;
private int currentIndex;
private object currentObject;
private int currentSize;
public aiQuatKeyVectorEnumerator(aiQuatKeyVector collection) {
collectionRef = collection;
currentIndex = -1;
currentObject = null;
currentSize = collectionRef.Count;
}
// Type-safe iterator Current
public aiQuatKey Current {
get {
if (currentIndex == -1)
throw new InvalidOperationException("Enumeration not started.");
if (currentIndex > currentSize - 1)
throw new InvalidOperationException("Enumeration finished.");
if (currentObject == null)
throw new InvalidOperationException("Collection modified.");
return (aiQuatKey)currentObject;
}
}
// Type-unsafe IEnumerator.Current
object System.Collections.IEnumerator.Current {
get {
return Current;
}
}
public bool MoveNext() {
int size = collectionRef.Count;
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
if (moveOkay) {
currentIndex++;
currentObject = collectionRef[currentIndex];
} else {
currentObject = null;
}
return moveOkay;
}
public void Reset() {
currentIndex = -1;
currentObject = null;
if (collectionRef.Count != currentSize) {
throw new InvalidOperationException("Collection modified.");
}
}
#if !SWIG_DOTNET_1
public void Dispose() {
currentIndex = -1;
currentObject = null;
}
#endif
}
public void Clear() {
AssimpPINVOKE.aiQuatKeyVector_Clear(swigCPtr);
}
public void Add(aiQuatKey x) {
AssimpPINVOKE.aiQuatKeyVector_Add(swigCPtr, aiQuatKey.getCPtr(x));
}
private uint size() {
uint ret = AssimpPINVOKE.aiQuatKeyVector_size(swigCPtr);
return ret;
}
private uint capacity() {
uint ret = AssimpPINVOKE.aiQuatKeyVector_capacity(swigCPtr);
return ret;
}
private void reserve(uint n) {
AssimpPINVOKE.aiQuatKeyVector_reserve(swigCPtr, n);
}
public aiQuatKeyVector() : this(AssimpPINVOKE.new_aiQuatKeyVector__SWIG_0(), true) {
}
public aiQuatKeyVector(aiQuatKeyVector other) : this(AssimpPINVOKE.new_aiQuatKeyVector__SWIG_1(aiQuatKeyVector.getCPtr(other)), true) {
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public aiQuatKeyVector(int capacity) : this(AssimpPINVOKE.new_aiQuatKeyVector__SWIG_2(capacity), true) {
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
private aiQuatKey getitemcopy(int index) {
IntPtr cPtr = AssimpPINVOKE.aiQuatKeyVector_getitemcopy(swigCPtr, index);
aiQuatKey ret = (cPtr == IntPtr.Zero) ? null : new aiQuatKey(cPtr, false);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private aiQuatKey getitem(int index) {
IntPtr cPtr = AssimpPINVOKE.aiQuatKeyVector_getitem(swigCPtr, index);
aiQuatKey ret = (cPtr == IntPtr.Zero) ? null : new aiQuatKey(cPtr, false);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private void setitem(int index, aiQuatKey val) {
AssimpPINVOKE.aiQuatKeyVector_setitem(swigCPtr, index, aiQuatKey.getCPtr(val));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void AddRange(aiQuatKeyVector values) {
AssimpPINVOKE.aiQuatKeyVector_AddRange(swigCPtr, aiQuatKeyVector.getCPtr(values));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public aiQuatKeyVector GetRange(int index, int count) {
IntPtr cPtr = AssimpPINVOKE.aiQuatKeyVector_GetRange(swigCPtr, index, count);
aiQuatKeyVector ret = (cPtr == IntPtr.Zero) ? null : new aiQuatKeyVector(cPtr, true);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void Insert(int index, aiQuatKey x) {
AssimpPINVOKE.aiQuatKeyVector_Insert(swigCPtr, index, aiQuatKey.getCPtr(x));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void InsertRange(int index, aiQuatKeyVector values) {
AssimpPINVOKE.aiQuatKeyVector_InsertRange(swigCPtr, index, aiQuatKeyVector.getCPtr(values));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void RemoveAt(int index) {
AssimpPINVOKE.aiQuatKeyVector_RemoveAt(swigCPtr, index);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void RemoveRange(int index, int count) {
AssimpPINVOKE.aiQuatKeyVector_RemoveRange(swigCPtr, index, count);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public static aiQuatKeyVector Repeat(aiQuatKey value, int count) {
IntPtr cPtr = AssimpPINVOKE.aiQuatKeyVector_Repeat(aiQuatKey.getCPtr(value), count);
aiQuatKeyVector ret = (cPtr == IntPtr.Zero) ? null : new aiQuatKeyVector(cPtr, true);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void Reverse() {
AssimpPINVOKE.aiQuatKeyVector_Reverse__SWIG_0(swigCPtr);
}
public void Reverse(int index, int count) {
AssimpPINVOKE.aiQuatKeyVector_Reverse__SWIG_1(swigCPtr, index, count);
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void SetRange(int index, aiQuatKeyVector values) {
AssimpPINVOKE.aiQuatKeyVector_SetRange(swigCPtr, index, aiQuatKeyVector.getCPtr(values));
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public bool Contains(aiQuatKey value) {
bool ret = AssimpPINVOKE.aiQuatKeyVector_Contains(swigCPtr, aiQuatKey.getCPtr(value));
return ret;
}
public int IndexOf(aiQuatKey value) {
int ret = AssimpPINVOKE.aiQuatKeyVector_IndexOf(swigCPtr, aiQuatKey.getCPtr(value));
return ret;
}
public int LastIndexOf(aiQuatKey value) {
int ret = AssimpPINVOKE.aiQuatKeyVector_LastIndexOf(swigCPtr, aiQuatKey.getCPtr(value));
return ret;
}
public bool Remove(aiQuatKey value) {
bool ret = AssimpPINVOKE.aiQuatKeyVector_Remove(swigCPtr, aiQuatKey.getCPtr(value));
return ret;
}
}

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiQuaternion : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiQuaternion(swigCPtr); AssimpPINVOKE.delete_aiQuaternion(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -40,107 +40,107 @@ public class aiQuaternion : IDisposable {
} }
} }
public aiQuaternion() : this(Assimp_NETPINVOKE.new_aiQuaternion__SWIG_0(), true) { public aiQuaternion() : this(AssimpPINVOKE.new_aiQuaternion__SWIG_0(), true) {
} }
public aiQuaternion(float _w, float _x, float _y, float _z) : this(Assimp_NETPINVOKE.new_aiQuaternion__SWIG_1(_w, _x, _y, _z), true) { public aiQuaternion(float _w, float _x, float _y, float _z) : this(AssimpPINVOKE.new_aiQuaternion__SWIG_1(_w, _x, _y, _z), true) {
} }
public aiQuaternion(aiMatrix3x3 pRotMatrix) : this(Assimp_NETPINVOKE.new_aiQuaternion__SWIG_2(aiMatrix3x3.getCPtr(pRotMatrix)), true) { public aiQuaternion(aiMatrix3x3 pRotMatrix) : this(AssimpPINVOKE.new_aiQuaternion__SWIG_2(aiMatrix3x3.getCPtr(pRotMatrix)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiQuaternion(float rotx, float roty, float rotz) : this(Assimp_NETPINVOKE.new_aiQuaternion__SWIG_3(rotx, roty, rotz), true) { public aiQuaternion(float rotx, float roty, float rotz) : this(AssimpPINVOKE.new_aiQuaternion__SWIG_3(rotx, roty, rotz), true) {
} }
public aiQuaternion(aiVector3D axis, float angle) : this(Assimp_NETPINVOKE.new_aiQuaternion__SWIG_4(aiVector3D.getCPtr(axis), angle), true) { public aiQuaternion(aiVector3D axis, float angle) : this(AssimpPINVOKE.new_aiQuaternion__SWIG_4(aiVector3D.getCPtr(axis), angle), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiQuaternion(aiVector3D normalized) : this(Assimp_NETPINVOKE.new_aiQuaternion__SWIG_5(aiVector3D.getCPtr(normalized)), true) { public aiQuaternion(aiVector3D normalized) : this(AssimpPINVOKE.new_aiQuaternion__SWIG_5(aiVector3D.getCPtr(normalized)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiMatrix3x3 GetMatrix() { public aiMatrix3x3 GetMatrix() {
aiMatrix3x3 ret = new aiMatrix3x3(Assimp_NETPINVOKE.aiQuaternion_GetMatrix(swigCPtr), true); aiMatrix3x3 ret = new aiMatrix3x3(AssimpPINVOKE.aiQuaternion_GetMatrix(swigCPtr), true);
return ret; return ret;
} }
public bool __equal__(aiQuaternion o) { public bool __equal__(aiQuaternion o) {
bool ret = Assimp_NETPINVOKE.aiQuaternion___equal__(swigCPtr, aiQuaternion.getCPtr(o)); bool ret = AssimpPINVOKE.aiQuaternion___equal__(swigCPtr, aiQuaternion.getCPtr(o));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public bool __nequal__(aiQuaternion o) { public bool __nequal__(aiQuaternion o) {
bool ret = Assimp_NETPINVOKE.aiQuaternion___nequal__(swigCPtr, aiQuaternion.getCPtr(o)); bool ret = AssimpPINVOKE.aiQuaternion___nequal__(swigCPtr, aiQuaternion.getCPtr(o));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public aiQuaternion Normalize() { public aiQuaternion Normalize() {
aiQuaternion ret = new aiQuaternion(Assimp_NETPINVOKE.aiQuaternion_Normalize(swigCPtr), false); aiQuaternion ret = new aiQuaternion(AssimpPINVOKE.aiQuaternion_Normalize(swigCPtr), false);
return ret; return ret;
} }
public aiQuaternion Conjugate() { public aiQuaternion Conjugate() {
aiQuaternion ret = new aiQuaternion(Assimp_NETPINVOKE.aiQuaternion_Conjugate(swigCPtr), false); aiQuaternion ret = new aiQuaternion(AssimpPINVOKE.aiQuaternion_Conjugate(swigCPtr), false);
return ret; return ret;
} }
public aiVector3D Rotate(aiVector3D arg0) { public aiVector3D Rotate(aiVector3D arg0) {
aiVector3D ret = new aiVector3D(Assimp_NETPINVOKE.aiQuaternion_Rotate(swigCPtr, aiVector3D.getCPtr(arg0)), true); aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiQuaternion_Rotate(swigCPtr, aiVector3D.getCPtr(arg0)), true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public aiQuaternion __mul__(aiQuaternion two) { public aiQuaternion __mul__(aiQuaternion two) {
aiQuaternion ret = new aiQuaternion(Assimp_NETPINVOKE.aiQuaternion___mul__(swigCPtr, aiQuaternion.getCPtr(two)), true); aiQuaternion ret = new aiQuaternion(AssimpPINVOKE.aiQuaternion___mul__(swigCPtr, aiQuaternion.getCPtr(two)), true);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public static void Interpolate(aiQuaternion pOut, aiQuaternion pStart, aiQuaternion pEnd, float pFactor) { public static void Interpolate(aiQuaternion pOut, aiQuaternion pStart, aiQuaternion pEnd, float pFactor) {
Assimp_NETPINVOKE.aiQuaternion_Interpolate(aiQuaternion.getCPtr(pOut), aiQuaternion.getCPtr(pStart), aiQuaternion.getCPtr(pEnd), pFactor); AssimpPINVOKE.aiQuaternion_Interpolate(aiQuaternion.getCPtr(pOut), aiQuaternion.getCPtr(pStart), aiQuaternion.getCPtr(pEnd), pFactor);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public float w { public float w {
set { set {
Assimp_NETPINVOKE.aiQuaternion_w_set(swigCPtr, value); AssimpPINVOKE.aiQuaternion_w_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiQuaternion_w_get(swigCPtr); float ret = AssimpPINVOKE.aiQuaternion_w_get(swigCPtr);
return ret; return ret;
} }
} }
public float x { public float x {
set { set {
Assimp_NETPINVOKE.aiQuaternion_x_set(swigCPtr, value); AssimpPINVOKE.aiQuaternion_x_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiQuaternion_x_get(swigCPtr); float ret = AssimpPINVOKE.aiQuaternion_x_get(swigCPtr);
return ret; return ret;
} }
} }
public float y { public float y {
set { set {
Assimp_NETPINVOKE.aiQuaternion_y_set(swigCPtr, value); AssimpPINVOKE.aiQuaternion_y_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiQuaternion_y_get(swigCPtr); float ret = AssimpPINVOKE.aiQuaternion_y_get(swigCPtr);
return ret; return ret;
} }
} }
public float z { public float z {
set { set {
Assimp_NETPINVOKE.aiQuaternion_z_set(swigCPtr, value); AssimpPINVOKE.aiQuaternion_z_set(swigCPtr, value);
} }
get { get {
float ret = Assimp_NETPINVOKE.aiQuaternion_z_get(swigCPtr); float ret = AssimpPINVOKE.aiQuaternion_z_get(swigCPtr);
return ret; return ret;
} }
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiRay : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiRay(swigCPtr); AssimpPINVOKE.delete_aiRay(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -40,23 +40,23 @@ public class aiRay : IDisposable {
} }
} }
public aiRay() : this(Assimp_NETPINVOKE.new_aiRay__SWIG_0(), true) { public aiRay() : this(AssimpPINVOKE.new_aiRay__SWIG_0(), true) {
} }
public aiRay(aiVector3D _pos, aiVector3D _dir) : this(Assimp_NETPINVOKE.new_aiRay__SWIG_1(aiVector3D.getCPtr(_pos), aiVector3D.getCPtr(_dir)), true) { public aiRay(aiVector3D _pos, aiVector3D _dir) : this(AssimpPINVOKE.new_aiRay__SWIG_1(aiVector3D.getCPtr(_pos), aiVector3D.getCPtr(_dir)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiRay(aiRay o) : this(Assimp_NETPINVOKE.new_aiRay__SWIG_2(aiRay.getCPtr(o)), true) { public aiRay(aiRay o) : this(AssimpPINVOKE.new_aiRay__SWIG_2(aiRay.getCPtr(o)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiVector3D pos { public aiVector3D pos {
set { set {
Assimp_NETPINVOKE.aiRay_pos_set(swigCPtr, aiVector3D.getCPtr(value)); AssimpPINVOKE.aiRay_pos_set(swigCPtr, aiVector3D.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiRay_pos_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiRay_pos_get(swigCPtr);
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false); aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
return ret; return ret;
} }
@ -64,10 +64,10 @@ public class aiRay : IDisposable {
public aiVector3D dir { public aiVector3D dir {
set { set {
Assimp_NETPINVOKE.aiRay_dir_set(swigCPtr, aiVector3D.getCPtr(value)); AssimpPINVOKE.aiRay_dir_set(swigCPtr, aiVector3D.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiRay_dir_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiRay_dir_get(swigCPtr);
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false); aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
return ret; return ret;
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiScene : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiScene(swigCPtr); AssimpPINVOKE.delete_aiScene(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -40,22 +40,29 @@ public class aiScene : IDisposable {
} }
} }
public aiAnimationVector mAnimations { get { return GetmAnimations(); } }
public aiCameraVector mCameras { get { return GetmCameras(); } }
public aiLightVector mLights { get { return GetmLights(); } }
public aiMaterialVector mMaterials { get { return GetmMaterials(); } }
public aiMeshVector mMeshes { get { return GetmMeshes(); } }
public aiTextureVector mTextures { get { return GetmTextures(); } }
public uint mFlags { public uint mFlags {
set { set {
Assimp_NETPINVOKE.aiScene_mFlags_set(swigCPtr, value); AssimpPINVOKE.aiScene_mFlags_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiScene_mFlags_get(swigCPtr); uint ret = AssimpPINVOKE.aiScene_mFlags_get(swigCPtr);
return ret; return ret;
} }
} }
public aiNode mRootNode { public aiNode mRootNode {
set { set {
Assimp_NETPINVOKE.aiScene_mRootNode_set(swigCPtr, aiNode.getCPtr(value)); AssimpPINVOKE.aiScene_mRootNode_set(swigCPtr, aiNode.getCPtr(value));
} }
get { get {
IntPtr cPtr = Assimp_NETPINVOKE.aiScene_mRootNode_get(swigCPtr); IntPtr cPtr = AssimpPINVOKE.aiScene_mRootNode_get(swigCPtr);
aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false); aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
return ret; return ret;
} }
@ -63,160 +70,130 @@ public class aiScene : IDisposable {
public uint mNumMeshes { public uint mNumMeshes {
set { set {
Assimp_NETPINVOKE.aiScene_mNumMeshes_set(swigCPtr, value); AssimpPINVOKE.aiScene_mNumMeshes_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiScene_mNumMeshes_get(swigCPtr); uint ret = AssimpPINVOKE.aiScene_mNumMeshes_get(swigCPtr);
return ret;
}
}
public SWIGTYPE_p_p_aiMesh mMeshes {
set {
Assimp_NETPINVOKE.aiScene_mMeshes_set(swigCPtr, SWIGTYPE_p_p_aiMesh.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiScene_mMeshes_get(swigCPtr);
SWIGTYPE_p_p_aiMesh ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_aiMesh(cPtr, false);
return ret; return ret;
} }
} }
public uint mNumMaterials { public uint mNumMaterials {
set { set {
Assimp_NETPINVOKE.aiScene_mNumMaterials_set(swigCPtr, value); AssimpPINVOKE.aiScene_mNumMaterials_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiScene_mNumMaterials_get(swigCPtr); uint ret = AssimpPINVOKE.aiScene_mNumMaterials_get(swigCPtr);
return ret;
}
}
public SWIGTYPE_p_p_aiMaterial mMaterials {
set {
Assimp_NETPINVOKE.aiScene_mMaterials_set(swigCPtr, SWIGTYPE_p_p_aiMaterial.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiScene_mMaterials_get(swigCPtr);
SWIGTYPE_p_p_aiMaterial ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_aiMaterial(cPtr, false);
return ret; return ret;
} }
} }
public uint mNumAnimations { public uint mNumAnimations {
set { set {
Assimp_NETPINVOKE.aiScene_mNumAnimations_set(swigCPtr, value); AssimpPINVOKE.aiScene_mNumAnimations_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiScene_mNumAnimations_get(swigCPtr); uint ret = AssimpPINVOKE.aiScene_mNumAnimations_get(swigCPtr);
return ret;
}
}
public SWIGTYPE_p_p_aiAnimation mAnimations {
set {
Assimp_NETPINVOKE.aiScene_mAnimations_set(swigCPtr, SWIGTYPE_p_p_aiAnimation.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiScene_mAnimations_get(swigCPtr);
SWIGTYPE_p_p_aiAnimation ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_aiAnimation(cPtr, false);
return ret; return ret;
} }
} }
public uint mNumTextures { public uint mNumTextures {
set { set {
Assimp_NETPINVOKE.aiScene_mNumTextures_set(swigCPtr, value); AssimpPINVOKE.aiScene_mNumTextures_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiScene_mNumTextures_get(swigCPtr); uint ret = AssimpPINVOKE.aiScene_mNumTextures_get(swigCPtr);
return ret;
}
}
public SWIGTYPE_p_p_aiTexture mTextures {
set {
Assimp_NETPINVOKE.aiScene_mTextures_set(swigCPtr, SWIGTYPE_p_p_aiTexture.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiScene_mTextures_get(swigCPtr);
SWIGTYPE_p_p_aiTexture ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_aiTexture(cPtr, false);
return ret; return ret;
} }
} }
public uint mNumLights { public uint mNumLights {
set { set {
Assimp_NETPINVOKE.aiScene_mNumLights_set(swigCPtr, value); AssimpPINVOKE.aiScene_mNumLights_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiScene_mNumLights_get(swigCPtr); uint ret = AssimpPINVOKE.aiScene_mNumLights_get(swigCPtr);
return ret;
}
}
public SWIGTYPE_p_p_aiLight mLights {
set {
Assimp_NETPINVOKE.aiScene_mLights_set(swigCPtr, SWIGTYPE_p_p_aiLight.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiScene_mLights_get(swigCPtr);
SWIGTYPE_p_p_aiLight ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_aiLight(cPtr, false);
return ret; return ret;
} }
} }
public uint mNumCameras { public uint mNumCameras {
set { set {
Assimp_NETPINVOKE.aiScene_mNumCameras_set(swigCPtr, value); AssimpPINVOKE.aiScene_mNumCameras_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiScene_mNumCameras_get(swigCPtr); uint ret = AssimpPINVOKE.aiScene_mNumCameras_get(swigCPtr);
return ret; return ret;
} }
} }
public SWIGTYPE_p_p_aiCamera mCameras { public aiScene() : this(AssimpPINVOKE.new_aiScene(), true) {
set {
Assimp_NETPINVOKE.aiScene_mCameras_set(swigCPtr, SWIGTYPE_p_p_aiCamera.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiScene_mCameras_get(swigCPtr);
SWIGTYPE_p_p_aiCamera ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_aiCamera(cPtr, false);
return ret;
}
}
public aiScene() : this(Assimp_NETPINVOKE.new_aiScene(), true) {
} }
public bool HasMeshes() { public bool HasMeshes() {
bool ret = Assimp_NETPINVOKE.aiScene_HasMeshes(swigCPtr); bool ret = AssimpPINVOKE.aiScene_HasMeshes(swigCPtr);
return ret; return ret;
} }
public bool HasMaterials() { public bool HasMaterials() {
bool ret = Assimp_NETPINVOKE.aiScene_HasMaterials(swigCPtr); bool ret = AssimpPINVOKE.aiScene_HasMaterials(swigCPtr);
return ret; return ret;
} }
public bool HasLights() { public bool HasLights() {
bool ret = Assimp_NETPINVOKE.aiScene_HasLights(swigCPtr); bool ret = AssimpPINVOKE.aiScene_HasLights(swigCPtr);
return ret; return ret;
} }
public bool HasTextures() { public bool HasTextures() {
bool ret = Assimp_NETPINVOKE.aiScene_HasTextures(swigCPtr); bool ret = AssimpPINVOKE.aiScene_HasTextures(swigCPtr);
return ret; return ret;
} }
public bool HasCameras() { public bool HasCameras() {
bool ret = Assimp_NETPINVOKE.aiScene_HasCameras(swigCPtr); bool ret = AssimpPINVOKE.aiScene_HasCameras(swigCPtr);
return ret; return ret;
} }
public bool HasAnimations() { public bool HasAnimations() {
bool ret = Assimp_NETPINVOKE.aiScene_HasAnimations(swigCPtr); bool ret = AssimpPINVOKE.aiScene_HasAnimations(swigCPtr);
return ret;
}
private aiAnimationVector GetmAnimations() {
IntPtr cPtr = AssimpPINVOKE.aiScene_GetmAnimations(swigCPtr);
aiAnimationVector ret = (cPtr == IntPtr.Zero) ? null : new aiAnimationVector(cPtr, true);
return ret;
}
private aiCameraVector GetmCameras() {
IntPtr cPtr = AssimpPINVOKE.aiScene_GetmCameras(swigCPtr);
aiCameraVector ret = (cPtr == IntPtr.Zero) ? null : new aiCameraVector(cPtr, true);
return ret;
}
private aiLightVector GetmLights() {
IntPtr cPtr = AssimpPINVOKE.aiScene_GetmLights(swigCPtr);
aiLightVector ret = (cPtr == IntPtr.Zero) ? null : new aiLightVector(cPtr, true);
return ret;
}
private aiMaterialVector GetmMaterials() {
IntPtr cPtr = AssimpPINVOKE.aiScene_GetmMaterials(swigCPtr);
aiMaterialVector ret = (cPtr == IntPtr.Zero) ? null : new aiMaterialVector(cPtr, true);
return ret;
}
private aiMeshVector GetmMeshes() {
IntPtr cPtr = AssimpPINVOKE.aiScene_GetmMeshes(swigCPtr);
aiMeshVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshVector(cPtr, true);
return ret;
}
private aiTextureVector GetmTextures() {
IntPtr cPtr = AssimpPINVOKE.aiScene_GetmTextures(swigCPtr);
aiTextureVector ret = (cPtr == IntPtr.Zero) ? null : new aiTextureVector(cPtr, true);
return ret; return ret;
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 2.0.0
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -32,7 +32,7 @@ public class aiString : IDisposable {
if (swigCPtr.Handle != IntPtr.Zero) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) { if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiString(swigCPtr); AssimpPINVOKE.delete_aiString(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
@ -40,63 +40,52 @@ public class aiString : IDisposable {
} }
} }
public aiString() : this(Assimp_NETPINVOKE.new_aiString__SWIG_0(), true) { public override string ToString() { return Data; }
public aiString() : this(AssimpPINVOKE.new_aiString__SWIG_0(), true) {
} }
public aiString(aiString rOther) : this(Assimp_NETPINVOKE.new_aiString__SWIG_1(aiString.getCPtr(rOther)), true) { public aiString(aiString rOther) : this(AssimpPINVOKE.new_aiString__SWIG_1(aiString.getCPtr(rOther)), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
} }
public aiString(string pString) : this(Assimp_NETPINVOKE.new_aiString__SWIG_2(pString), true) { public aiString(string pString) : this(AssimpPINVOKE.new_aiString__SWIG_2(pString), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
}
public void Set(string pString) {
Assimp_NETPINVOKE.aiString_Set__SWIG_0(swigCPtr, pString);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
} }
public aiString __set__(string sz) { public aiString __set__(string sz) {
aiString ret = new aiString(Assimp_NETPINVOKE.aiString___set____SWIG_0(swigCPtr, sz), false); aiString ret = new aiString(AssimpPINVOKE.aiString___set____SWIG_0(swigCPtr, sz), false);
return ret; return ret;
} }
public bool __equal__(aiString other) { public bool __equal__(aiString other) {
bool ret = Assimp_NETPINVOKE.aiString___equal__(swigCPtr, aiString.getCPtr(other)); bool ret = AssimpPINVOKE.aiString___equal__(swigCPtr, aiString.getCPtr(other));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public bool __nequal__(aiString other) { public bool __nequal__(aiString other) {
bool ret = Assimp_NETPINVOKE.aiString___nequal__(swigCPtr, aiString.getCPtr(other)); bool ret = AssimpPINVOKE.aiString___nequal__(swigCPtr, aiString.getCPtr(other));
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
return ret; return ret;
} }
public void Append(string app) { public uint Length {
Assimp_NETPINVOKE.aiString_Append(swigCPtr, app);
}
public void Clear() {
Assimp_NETPINVOKE.aiString_Clear(swigCPtr);
}
public uint length {
set { set {
Assimp_NETPINVOKE.aiString_length_set(swigCPtr, value); AssimpPINVOKE.aiString_Length_set(swigCPtr, value);
} }
get { get {
uint ret = Assimp_NETPINVOKE.aiString_length_get(swigCPtr); uint ret = AssimpPINVOKE.aiString_Length_get(swigCPtr);
return ret; return ret;
} }
} }
public string data { public string Data {
set { set {
Assimp_NETPINVOKE.aiString_data_set(swigCPtr, value); AssimpPINVOKE.aiString_Data_set(swigCPtr, value);
} }
get { get {
string ret = Assimp_NETPINVOKE.aiString_data_get(swigCPtr); string ret = AssimpPINVOKE.aiString_Data_get(swigCPtr);
return ret; return ret;
} }
} }

Some files were not shown because too many files have changed in this diff Show More