importer.h 704 B

123456789101112131415161718192021
  1. #ifndef DFPSR_IMPORTER
  2. #define DFPSR_IMPORTER
  3. #include "../../../DFPSR/includeFramework.h"
  4. namespace dsr {
  5. // Returning a new model
  6. Model importer_loadModel(const ReadableString& filename, bool flipX, Transform3D axisConversion);
  7. // In-place loading of a new part
  8. void importer_loadModel(Model& targetModel, int part, const ReadableString& filename, bool flipX, Transform3D axisConversion);
  9. // To be applied to visible models after importing to save space in the files
  10. // Side-effects: Generating smooth normals from polygon positions in model and packing the resulting (NX, NY, NZ) into (U1, V1, U2) texture coordinates
  11. void importer_generateNormalsIntoTextureCoordinates(Model model);
  12. }
  13. #endif