#pragma once #include "rwbinarystream.h" #include #include class LoaderDFF { private: template T readStructure(char *data, size_t &dataI); RW::BSSectionHeader readHeader(char *data, size_t &dataI); RW::BSClump clump; public: void loadFromMemory(char *data); struct Texture { std::string name; std::string alphaName; }; struct Geometry { RW::BSGeometryBounds geometryBounds; std::vector texcoords; std::vector triangles; std::vector vertices; std::vector normals; std::vector textures; }; std::vector geometries; };