Skip to content
Snippets Groups Projects
  1. Mar 23, 2007
    • Amorilia's avatar
      * modularized swig interface to reduce wrapper size (only main niflib · 8eef368d
      Amorilia authored
        header and NiNode for now)
      
      * created a common swig interface "common.i" to be used by all modules
      
      * smart pointers now use the __call__() method, again this reduces the
        wrapper size
      
      * removed __str__() from the niflib API as it does not belong there,
        instead renamed asString() to __str__() in the common.i interface
      
      * version constants now also belong to the Niflib namespace
      
      * SWIGFLAGS are now defined through scons environment, so we only need
        to set them once
      
      * extra settings "-fcompact" and "-fvirtual" to SWIGFLAGS to reduce
        wrapper size
      
      * enabled niflib as a shared library under non-win32 platforms
        (still need to find a solution for win32) under scons
      
      * removed "pyniflib.h" and instead added CreateNiNode wrapper to ninode.i
      
      * renamed "pyniflib.i" to "pyniflib.i_old" in case I forgot to port
        something to the new modularized system; to be removed in future
      8eef368d
  2. Mar 21, 2007
    • Amorilia's avatar
      Changed order of %include's: Ref.h is now %included before niflib.h. It looks... · d05c3224
      Amorilia authored
      Changed order of %include's: Ref.h is now %included before niflib.h. It looks like the problem with illegal return types under SWIG is solved. (Solution suggested by Shon.)
      d05c3224
    • Amorilia's avatar
      moved all testing files to new directory · a02d995c
      Amorilia authored
      a02d995c
    • Amorilia's avatar
      The SWIG wrapper is now functional again, although only a very limited · 8cfbc343
      Amorilia authored
      number of objects are supported so far, to reduce the size of the
      wrapper. Details:
      
      * set property eolstyle:native on .cpp and .h files for better windows + linux 
        support
      
      * added small cpp file for quick nif read and write test (for
        debug purposes)
      
      * fixed memory leak due to array of non-fixed sized objects:
        Header.copyright (caused segfaults under GCC)
      
      * disabled pragma warning on NvTriStripObjects.cpp
      
      * fixed undefined behaviour of map[...] = ... map.size() ... in
        niflib.cpp (caused segfaults under GCC)
      
      * cleaned up SConstruct file
        - if DEBUG is false, TUNE is assumed
        - added TEST option
      
      * workaround in pyniflib.h for ReadNifTree (need to find better solution!)
      
      * swig wrapper interface: NiNode, NiAVObject, and NiObjectNET are
        fully supported (nothing else, for now)
      
      * now using unittest for python test script(s)
      8cfbc343
Loading