IsoEngine/engine/src/platform/windows/WindowsPopup.cpp
illyum 91cf0d25d5 feat(platform): add platform specific popups
Please note! These changes have not yet been tested on POSIX platforms
(mac OR linux) so please do not expect them to work!
2024-09-20 10:44:12 -06:00

26 lines
585 B
C++

//
// Created by illyum on 9/20/2024.
//
#include <pch.hpp>
#include "../Platform.hpp"
#include <windows.h>
namespace Platform {
void ShowPopup(const char *message) {
MessageBoxA(nullptr, message, "ICEngine", MB_OK);
}
void ShowPopup(const char *title, const char *message) {
MessageBoxA(nullptr, message, title, MB_OK);
}
void ShowPopup(const std::string &message) {
MessageBoxA(nullptr, message.c_str(), "ICEngine", MB_OK);
}
void ShowPopup(const std::string &title, const std::string &message) {
MessageBoxA(nullptr, message.c_str(), title.c_str(), MB_OK);
}
}