|
@@ -1,6 +1,8 @@
|
|
|
|
|
|
Namespace assimp
|
|
|
|
|
|
+#Import "<libc>"
|
|
|
+
|
|
|
#Import "makefile"
|
|
|
|
|
|
#Import "assimp/include/*.h"
|
|
@@ -9,6 +11,13 @@ Namespace assimp
|
|
|
#Import "<assimp/scene.h>"
|
|
|
#Import "<assimp/postprocess.h>"
|
|
|
|
|
|
+Const AI_MATKEY_COLOR_DIFFUSE:="$clr.diffuse"
|
|
|
+Const AI_MATKEY_COLOR_AMBIENT:="$clr.ambient"
|
|
|
+Const AI_MATKEY_COLOR_SPECULAR:="$clr.specular"
|
|
|
+Const AI_MATKEY_COLOR_EMISSIVE:="$clr.emissive"
|
|
|
+Const AI_MATKEY_COLOR_TRANSPARENT:="$clr.transparent"
|
|
|
+Const AI_MATKEY_COLOR_REFLECTIVE:="$clr.reflective"
|
|
|
+
|
|
|
Extern
|
|
|
|
|
|
Const aiProcess_CalcTangentSpace:Uint
|
|
@@ -38,12 +47,38 @@ Const aiProcess_FlipWindingOrder:UInt
|
|
|
Const aiProcess_SplitByBoneCount:UInt
|
|
|
Const aiProcess_Debone:UInt
|
|
|
|
|
|
-Struct aiVector3D'="Assimp::aiVector3D"
|
|
|
-
|
|
|
+Const aiTextureType_NONE:UInt
|
|
|
+Const aiTextureType_DIFFUSE:UInt
|
|
|
+Const aiTextureType_SPECULAR:UInt
|
|
|
+Const aiTextureType_AMBIENT:UInt
|
|
|
+Const aiTextureType_EMISSIVE:UInt
|
|
|
+Const aiTextureType_HEIGHT:UInt
|
|
|
+Const aiTextureType_NORMALS:UInt
|
|
|
+Const aiTextureType_SHININESS:UInt
|
|
|
+Const aiTextureType_OPACITY:UInt
|
|
|
+Const aiTextureType_DISPLACEMENT:UInt
|
|
|
+Const aiTextureType_LIGHTMAP:UInt
|
|
|
+Const aiTextureType_REFLECTION:UInt
|
|
|
+Const aiTextureType_UNKNOWN:UInt
|
|
|
+
|
|
|
+Struct aiVector3D
|
|
|
Field x:Float
|
|
|
Field y:Float
|
|
|
Field z:Float
|
|
|
-
|
|
|
+End
|
|
|
+
|
|
|
+Struct aiString
|
|
|
+ Field data:CString
|
|
|
+End
|
|
|
+
|
|
|
+Struct aiColor4D
|
|
|
+ Field r:Float
|
|
|
+ Field g:Float
|
|
|
+ Field b:Float
|
|
|
+ Field a:Float
|
|
|
+End
|
|
|
+
|
|
|
+Class aiMaterial Extends Void
|
|
|
End
|
|
|
|
|
|
Class aiMesh Extends Void
|
|
@@ -52,6 +87,10 @@ Class aiMesh Extends Void
|
|
|
Field mNormals:aiVector3D Ptr
|
|
|
Field mTextureCoords:aiVector3D Ptr Ptr
|
|
|
|
|
|
+ Field mName:aiString
|
|
|
+
|
|
|
+ Field mMaterialIndex:UInt
|
|
|
+
|
|
|
Field mNumVertices:UInt
|
|
|
|
|
|
End
|
|
@@ -59,8 +98,10 @@ End
|
|
|
Class aiScene Extends Void="const aiScene"
|
|
|
|
|
|
Field mMeshes:aiMesh Ptr
|
|
|
+ Field mMaterials:aiMaterial Ptr
|
|
|
|
|
|
Field mNumMeshes:UInt
|
|
|
+ Field mNumMaterials:UInt
|
|
|
|
|
|
End
|
|
|
|
|
@@ -69,4 +110,9 @@ Function aiImportFile:aiScene( pFile:CString,pFlags:UInt )
|
|
|
Function aiImportFileFromMemory:aiScene( pBuffer:Void Ptr,pLength:UInt,pFlags:UInt,pHint:CString )
|
|
|
|
|
|
Function aiReleaseImport( scene:aiScene )
|
|
|
+
|
|
|
+Function aiGetMaterialTextureCount:UInt( pMat:aiMaterial,type:UInt )
|
|
|
+
|
|
|
+Function aiGetMaterialTexture( mat:aiMaterial,type:UInt,index:UInt,path:aiString Ptr )
|
|
|
|
|
|
+Function aiGetMaterialColor( pMat:aiMaterial,pKey:CString,type:UInt,index:UInt,pOut:aiColor4D Ptr )
|