mirror of
https://github.com/harfang3d/harfang3d.git
synced 2024-07-02 10:02:24 +00:00
26 lines
854 B
C++
26 lines
854 B
C++
// HARFANG(R) Copyright (C) 2021 Emmanuel Julien, NWNC HARFANG. Released under GPL/LGPL/Commercial Licence, see licence.txt for details.
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace hg {
|
|
|
|
/// Return the platform locale.
|
|
std::string GetPlatformLocale();
|
|
|
|
/// Open a file dialog
|
|
bool OpenFolderDialog(const std::string &title, std::string &output, const std::string &initial_dir = {});
|
|
/// Open a file dialog
|
|
bool OpenFileDialog(const std::string &title, const std::string &filter, std::string &output, const std::string &initial_dir = {});
|
|
/// Open a save file dialog
|
|
bool SaveFileDialog(const std::string &title, const std::string &filter, std::string &output, const std::string &initial_dir = {});
|
|
|
|
/// Platform specific initialization.
|
|
bool InitPlatform();
|
|
|
|
/// Drop to the debugger, throws an exception otherwise.
|
|
void DebugBreak();
|
|
|
|
} // namespace hg
|