SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
SLIOStream implementation to display PNG files in a browser popup. More...
#include <SLIOBrowserPopup.h>
Public Member Functions | |
SLIOWriterBrowserPopup (std::string path) | |
~SLIOWriterBrowserPopup () | |
void | flush () |
Public Member Functions inherited from SLIOWriterMemory | |
SLIOWriterMemory (std::string path) | |
size_t | write (const void *buffer, size_t size) |
size_t | tell () |
bool | seek (size_t offset, Origin origin) |
void | flush () |
Public Member Functions inherited from SLIOStream | |
virtual | ~SLIOStream ()=default |
virtual size_t | read (void *buffer, size_t size) |
virtual size_t | size () |
Additional Inherited Members | |
Public Types inherited from SLIOStream | |
enum | Origin { IOO_beg , IOO_cur , IOO_end } |
Protected Attributes inherited from SLIOWriterMemory | |
std::string | _path |
size_t | _position |
SLIOStream implementation to display PNG files in a browser popup.
The popup with the PNG image is opened when SLIOWriterBrowserPopup::flush is called. The popup contains a link for the user to download the file.
Definition at line 23 of file SLIOBrowserPopup.h.
SLIOWriterBrowserPopup::SLIOWriterBrowserPopup | ( | std::string | path | ) |
Definition at line 16 of file SLIOBrowserPopup.cpp.
SLIOWriterBrowserPopup::~SLIOWriterBrowserPopup | ( | ) |
Definition at line 22 of file SLIOBrowserPopup.cpp.
|
virtual |
Reimplemented from SLIOStream.
Definition at line 27 of file SLIOBrowserPopup.cpp.