Just™ Game Engine
Functions
jng::Platform Namespace Reference

Functions

std::string openDirectoryDialog ()
 Opens an open directory dialog native to the system. More...
 
std::string openFilenameDialog (const char *filter)
 Opens an open filename dialog native to the system. More...
 
std::string saveFilenameDialog (const char *filter)
 Opens a save filename dialog native to the system. More...
 

Function Documentation

◆ openDirectoryDialog()

std::string jng::Platform::openDirectoryDialog ( )

Opens an open directory dialog native to the system.

Returns
string contaning choosen filepath or an empty string when user canceled

◆ openFilenameDialog()

std::string jng::Platform::openFilenameDialog ( const char *  filter)

Opens an open filename dialog native to the system.

Parameters
filterC-style string that describes the file type filter
Returns
string contaning choosen filepath or an empty string when user canceled

◆ saveFilenameDialog()

std::string jng::Platform::saveFilenameDialog ( const char *  filter)

Opens a save filename dialog native to the system.

Parameters
filterC-style string that describes the file type filter
Returns
string contaning choosen filepath or an empty string when user canceled