Panda3D
|
Implementation of FileInterface to allow libRocket to read files from the virtual file system. More...
#include "rocketFileInterface.h"
Public Member Functions | |
RocketFileInterface (VirtualFileSystem *vfs=nullptr) | |
Constructs a RocketFileInterface for the given VFS, or the default if NULL is given. | |
void | Close (Rocket::Core::FileHandle file) |
size_t | Length (Rocket::Core::FileHandle file) |
Rocket::Core::FileHandle | Open (const Rocket::Core::String &path) |
size_t | Read (void *buffer, size_t size, Rocket::Core::FileHandle file) |
bool | Seek (Rocket::Core::FileHandle file, long offset, int origin) |
size_t | Tell (Rocket::Core::FileHandle file) |
Implementation of FileInterface to allow libRocket to read files from the virtual file system.
Definition at line 27 of file rocketFileInterface.h.
RocketFileInterface::RocketFileInterface | ( | VirtualFileSystem * | vfs = nullptr | ) |
Constructs a RocketFileInterface for the given VFS, or the default if NULL is given.
Definition at line 21 of file rocketFileInterface.cxx.
References VirtualFileSystem::get_global_ptr().
|
inlinevirtual |
Definition at line 30 of file rocketFileInterface.h.
void RocketFileInterface::Close | ( | Rocket::Core::FileHandle | file | ) |
Definition at line 70 of file rocketFileInterface.cxx.
size_t RocketFileInterface::Length | ( | Rocket::Core::FileHandle | file | ) |
Definition at line 135 of file rocketFileInterface.cxx.
Rocket::Core::FileHandle RocketFileInterface::Open | ( | const Rocket::Core::String & | path | ) |
Definition at line 31 of file rocketFileInterface.cxx.
size_t RocketFileInterface::Read | ( | void * | buffer, |
size_t | size, | ||
Rocket::Core::FileHandle | file ) |
Definition at line 84 of file rocketFileInterface.cxx.
bool RocketFileInterface::Seek | ( | Rocket::Core::FileHandle | file, |
long | offset, | ||
int | origin ) |
Definition at line 98 of file rocketFileInterface.cxx.
size_t RocketFileInterface::Tell | ( | Rocket::Core::FileHandle | file | ) |
Definition at line 122 of file rocketFileInterface.cxx.