Browse Source

[D] Completely bind the C API now that the aiGetMaterialProperty issue is resolved.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@544 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
klickverbot 15 years ago
parent
commit
de9a56b245
3 changed files with 2 additions and 8 deletions
  1. 0 6
      port/dAssimp/README
  2. 1 1
      port/dAssimp/assimp/api.d
  3. 1 1
      port/dAssimp/assimp/loader.d

+ 0 - 6
port/dAssimp/README

@@ -8,10 +8,4 @@ You should be able to create sufficient DDoc documentation for the bindings
 using your favourite build tool (such as Rebuild). Please refer to the main
 using your favourite build tool (such as Rebuild). Please refer to the main
 (Doxygen-generated) documentation for general topics.
 (Doxygen-generated) documentation for general topics.
 
 
-Currently, there is a bug which causes aiGetMaterialProperty() to receive a
-wrong name in the dynamic library (the C++ symbol naming convention is used
-instead of the plain C name). Since the bindings loader looks up all function
-adresses at runtime using the symbol name, this function is not accessible
-at the moment.
-
 Please contact <[email protected]> for any bindings-specific issues.
 Please contact <[email protected]> for any bindings-specific issues.

+ 1 - 1
port/dAssimp/assimp/api.d

@@ -483,7 +483,7 @@ extern ( C ) {
    aiReturn function(
    aiReturn function(
      aiMaterial* pMat,
      aiMaterial* pMat,
      char* pKey,
      char* pKey,
-     aiTextureType type,
+     uint type,
      uint index,
      uint index,
      aiMaterialProperty** pPropOut
      aiMaterialProperty** pPropOut
    ) aiGetMaterialProperty;
    ) aiGetMaterialProperty;

+ 1 - 1
port/dAssimp/assimp/loader.d

@@ -147,7 +147,7 @@ public:
          bind( aiIdentityMatrix4 )( "aiIdentityMatrix4" );
          bind( aiIdentityMatrix4 )( "aiIdentityMatrix4" );
 
 
          // Material system
          // Material system
-         //bind( aiGetMaterialProperty )( "aiGetMaterialProperty" );
+         bind( aiGetMaterialProperty )( "aiGetMaterialProperty" );
          bind( aiGetMaterialFloatArray )( "aiGetMaterialFloatArray" );
          bind( aiGetMaterialFloatArray )( "aiGetMaterialFloatArray" );
          bind( aiGetMaterialIntegerArray )( "aiGetMaterialIntegerArray" );
          bind( aiGetMaterialIntegerArray )( "aiGetMaterialIntegerArray" );
          bind( aiGetMaterialColor )( "aiGetMaterialColor" );
          bind( aiGetMaterialColor )( "aiGetMaterialColor" );