|
Panda3D
|
Custom implementation of Assimp::IOSystem. More...
#include "pandaIOSystem.h"
Public Member Functions | |
| PandaIOSystem (VirtualFileSystem *vfs=VirtualFileSystem::get_global_ptr()) | |
| Initializes the object with the given VFS, or the global one if none was specified. | |
| void | Close (Assimp::IOStream *file) |
| Closes the indicated file stream. | |
| bool | ComparePaths (const char *p1, const char *p2) const |
| Returns true if the two paths point to the same file, false if not. | |
| bool | Exists (const char *file) const |
| Returns true if the file exists, duh. | |
| char | getOsSeparator () const |
| Returns the path separator for this operating system. | |
| Assimp::IOStream * | Open (const char *file, const char *mode) |
| Opens the indicated file. | |
Custom implementation of Assimp::IOSystem.
Definition at line 25 of file pandaIOSystem.h.
| PandaIOSystem::PandaIOSystem | ( | VirtualFileSystem * | vfs = VirtualFileSystem::get_global_ptr() | ) |
Initializes the object with the given VFS, or the global one if none was specified.
Definition at line 21 of file pandaIOSystem.cxx.
|
inlinevirtual |
Definition at line 28 of file pandaIOSystem.h.
| void PandaIOSystem::Close | ( | Assimp::IOStream * | file | ) |
Closes the indicated file stream.
Definition at line 37 of file pandaIOSystem.cxx.
| bool PandaIOSystem::ComparePaths | ( | const char * | p1, |
| const char * | p2 ) const |
Returns true if the two paths point to the same file, false if not.
Definition at line 46 of file pandaIOSystem.cxx.
References Filename::make_canonical().
| bool PandaIOSystem::Exists | ( | const char * | file | ) | const |
Returns true if the file exists, duh.
Definition at line 28 of file pandaIOSystem.cxx.
| char PandaIOSystem::getOsSeparator | ( | ) | const |
Returns the path separator for this operating system.
Definition at line 58 of file pandaIOSystem.cxx.
| Assimp::IOStream * PandaIOSystem::Open | ( | const char * | file, |
| const char * | mode ) |
Opens the indicated file.
Definition at line 70 of file pandaIOSystem.cxx.