Browse Source

Merge branch 'master' of https://github.com/assimp/assimp

Kim Kulling 9 years ago
parent
commit
032fbe3fe5

+ 5 - 0
code/Bitmap.cpp

@@ -84,7 +84,12 @@ namespace Assimp {
 
 
     template<typename T>
     template<typename T>
     inline std::size_t Copy(uint8_t* data, T& field) {
     inline std::size_t Copy(uint8_t* data, T& field) {
+#ifdef AI_BUILD_BIG_ENDIAN
+        T field_swapped=AI_BE(field);
+        std::memcpy(data, &field_swapped, sizeof(field)); return sizeof(field);
+#else
         std::memcpy(data, &AI_BE(field), sizeof(field)); return sizeof(field);
         std::memcpy(data, &AI_BE(field), sizeof(field)); return sizeof(field);
+#endif
     }
     }
 
 
     void Bitmap::WriteHeader(Header& header, IOStream* file) {
     void Bitmap::WriteHeader(Header& header, IOStream* file) {

+ 1 - 1
code/CMakeLists.txt

@@ -769,7 +769,7 @@ INSTALL( TARGETS assimp
 INSTALL( FILES ${PUBLIC_HEADERS} DESTINATION ${ASSIMP_INCLUDE_INSTALL_DIR}/assimp COMPONENT assimp-dev)
 INSTALL( FILES ${PUBLIC_HEADERS} DESTINATION ${ASSIMP_INCLUDE_INSTALL_DIR}/assimp COMPONENT assimp-dev)
 INSTALL( FILES ${COMPILER_HEADERS} DESTINATION ${ASSIMP_INCLUDE_INSTALL_DIR}/assimp/Compiler COMPONENT assimp-dev)
 INSTALL( FILES ${COMPILER_HEADERS} DESTINATION ${ASSIMP_INCLUDE_INSTALL_DIR}/assimp/Compiler COMPONENT assimp-dev)
 if (ASSIMP_ANDROID_JNIIOSYSTEM)
 if (ASSIMP_ANDROID_JNIIOSYSTEM)
-  INSTALL(FILES ${HEADER_PATH}/../${ASSIMP_ANDROID_JNIIOSYSTEM_PATH}/AndroidJNIIOSystem.h
+  INSTALL(FILES ${HEADER_PATH}/${ASSIMP_ANDROID_JNIIOSYSTEM_PATH}/AndroidJNIIOSystem.h
     DESTINATION ${ASSIMP_INCLUDE_INSTALL_DIR}
     DESTINATION ${ASSIMP_INCLUDE_INSTALL_DIR}
     COMPONENT assimp-dev)
     COMPONENT assimp-dev)
 endif(ASSIMP_ANDROID_JNIIOSYSTEM)
 endif(ASSIMP_ANDROID_JNIIOSYSTEM)

+ 1 - 1
contrib/clipper/clipper.cpp

@@ -26,7 +26,7 @@
 * Paper no. DETC2005-85513 pp. 565-575                                         *
 * Paper no. DETC2005-85513 pp. 565-575                                         *
 * ASME 2005 International Design Engineering Technical Conferences             *
 * ASME 2005 International Design Engineering Technical Conferences             *
 * and Computers and Information in Engineering Conference (IDETC/CIE2005)      *
 * and Computers and Information in Engineering Conference (IDETC/CIE2005)      *
-* September 2428, 2005 , Long Beach, California, USA                          *
+* September 24–28, 2005 , Long Beach, California, USA                          *
 * http://www.me.berkeley.edu/~mcmains/pubs/DAC05OffsetPolygon.pdf              *
 * http://www.me.berkeley.edu/~mcmains/pubs/DAC05OffsetPolygon.pdf              *
 *                                                                              *
 *                                                                              *
 *******************************************************************************/
 *******************************************************************************/

+ 1 - 1
contrib/clipper/clipper.hpp

@@ -26,7 +26,7 @@
 * Paper no. DETC2005-85513 pp. 565-575                                         *
 * Paper no. DETC2005-85513 pp. 565-575                                         *
 * ASME 2005 International Design Engineering Technical Conferences             *
 * ASME 2005 International Design Engineering Technical Conferences             *
 * and Computers and Information in Engineering Conference (IDETC/CIE2005)      *
 * and Computers and Information in Engineering Conference (IDETC/CIE2005)      *
-* September 2428, 2005 , Long Beach, California, USA                          *
+* September 24–28, 2005 , Long Beach, California, USA                          *
 * http://www.me.berkeley.edu/~mcmains/pubs/DAC05OffsetPolygon.pdf              *
 * http://www.me.berkeley.edu/~mcmains/pubs/DAC05OffsetPolygon.pdf              *
 *                                                                              *
 *                                                                              *
 *******************************************************************************/
 *******************************************************************************/

+ 13 - 2
port/jassimp/jassimp/src/jassimp/AiLightType.java

@@ -70,9 +70,20 @@ public enum AiLightType {
      * direction it is pointing to. A good example for a spot light is a light
      * direction it is pointing to. A good example for a spot light is a light
      * spot in sport arenas.
      * spot in sport arenas.
      */
      */
-    SPOT(0x3);
+    SPOT(0x3),
+
+
+    /**
+     *  The generic light level of the world, including the bounces of all other
+     *  lightsources. <p>
+     *
+     *  Typically, there's at most one ambient light in a scene.
+     *  This light type doesn't have a valid position, direction, or
+     *  other properties, just a color.
+     */
+    AMBIENT(0x4);
+
 
 
-    
     /**
     /**
      * Utility method for converting from c/c++ based integer enums to java 
      * Utility method for converting from c/c++ based integer enums to java 
      * enums.<p>
      * enums.<p>

+ 1 - 1
tools/assimp_cmd/CompareDump.cpp

@@ -881,7 +881,7 @@ int Assimp_CompareDump (const char* const* params, unsigned int num)
     }
     }
 
 
     // assimp cmpdump actual expected
     // assimp cmpdump actual expected
-    if (num < 1) {
+    if (num < 2) {
         std::cout << "assimp cmpdump: Invalid number of arguments. "
         std::cout << "assimp cmpdump: Invalid number of arguments. "
             "See \'assimp cmpdump --help\'\r\n" << std::endl;
             "See \'assimp cmpdump --help\'\r\n" << std::endl;
         return 1;
         return 1;