43 lines
839 B
C++
43 lines
839 B
C++
/**
|
|
* @file localeWindow.hxx
|
|
* @author Piotr Krygier (everyonencancode@gmail.com)
|
|
* @brief Error messages
|
|
* @version 0.1
|
|
* @date 2022-02-15
|
|
*
|
|
* @copyright Copyright (c) 2022
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <array>
|
|
|
|
#include "localization.hpp"
|
|
|
|
|
|
namespace rse::locale::window
|
|
{
|
|
|
|
#define windowErrorMesssages windowErrorMesssages_nolocale[SELECTED_LANGUAGE]
|
|
|
|
enum Errors
|
|
{
|
|
WINDOW_GLFW_INIT_FAILED,
|
|
WINDOW_VULKAN_NOT_SUPPORTED,
|
|
WINDOW_NOT_CREATED,
|
|
LAST_MESSAGE
|
|
};
|
|
|
|
std::array<std::array<const char*, LAST_LANGUAGE>, LAST_MESSAGE> windowErrorMesssages_nolocale = {
|
|
{/* EN_US */
|
|
/* WINDOW_GLFW_INIT_FAILED */
|
|
"GLFW init failed!"
|
|
/* WINDOW_VULKAN_NOT_SUPPORTED */
|
|
"Unable to load Vulkan"
|
|
/*WINDOW_NOT_CREATED*/
|
|
"Window context creation failed"
|
|
}
|
|
};
|
|
|
|
} // namespace rse::locale::window
|