SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SLIOBrowserPopup.h
Go to the documentation of this file.
1 /**
2  * \file SLIOBrowserDisplay.h
3  * \date October 2022
4  * \authors Marino von Wattenwyl
5  * \copyright http://opensource.org/licenses/GPL-3.0
6  * \remarks Please use clangformat to format the code. See more code style on
7  * https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style
8 */
9 
10 #ifndef SLPROJECT_SLIOBROWSERPOPUP_H
11 #define SLPROJECT_SLIOBROWSERPOPUP_H
12 
13 #include <SLFileStorage.h>
14 #include <SLIOMemory.h>
15 
16 #ifdef SL_STORAGE_WEB
17 //-----------------------------------------------------------------------------
18 //! SLIOStream implementation to display PNG files in a browser popup
19 /*!
20  * The popup with the PNG image is opened when SLIOWriterBrowserPopup::flush
21  * is called. The popup contains a link for the user to download the file.
22  */
24 {
25 public:
26  SLIOWriterBrowserPopup(std::string path);
28  void flush();
29 };
30 //-----------------------------------------------------------------------------
31 #endif
32 
33 #endif // SLPROJECT_SLIOBROWSERPOPUP_H
SLIOStream implementation to display PNG files in a browser popup.
SLIOWriterBrowserPopup(std::string path)
SLIOStream implementation for reading to memory.
Definition: SLIOMemory.h:43