33 #ifndef DART_DYNAMICS_ASSIMPINPUTRESOURCEADAPTOR_HPP_
34 #define DART_DYNAMICS_ASSIMPINPUTRESOURCEADAPTOR_HPP_
36 #include <assimp/cfileio.h>
37 #include <assimp/IOStream.hpp>
38 #include <assimp/IOSystem.hpp>
56 bool Exists(
const char* pFile)
const override;
73 Assimp::IOStream*
Open(
const char* pFile,
const char* pMode =
"rb")
override;
78 void Close(Assimp::IOStream* pFile)
override;
93 std::size_t
Read(
void* pvBuffer, std::size_t pSize, std::size_t pCount)
override;
96 std::size_t
Write(
const void* pvBuffer, std::size_t pSize, std::size_t pCount)
override;
102 aiReturn
Seek(std::size_t pOffset, aiOrigin pOrigin)
override;
107 std::size_t
Tell()
const override;
112 std::size_t
FileSize()
const override;
115 void Flush()
override;
std::shared_ptr< Resource > ResourcePtr
Definition: Resource.hpp:88
std::shared_ptr< ResourceRetriever > ResourceRetrieverPtr
Definition: ResourceRetriever.hpp:76
aiFileIO createFileIO(Assimp::IOSystem *_system)
Definition: AssimpInputResourceAdaptor.cpp:268
Definition: BulletCollisionDetector.cpp:63