Refactoring: Rename SDL wrapper funcs to snake_case

This commit is contained in:
Lexi / Zoe 2026-05-10 23:33:59 +02:00
parent 7f37be386d
commit 7b8aac69fb
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
5 changed files with 17 additions and 17 deletions

View file

@ -1,7 +1,7 @@
module;
#include <type_traits>
#include <SDL3/SDL.h>
#include <SDL3/SDL_init.h>
export module wrappers.sdl.init;
@ -31,7 +31,7 @@ export namespace sdl
}
/**
* Wrapper around the SDL_AppResult enum.
* Wrapper for the SDL_AppResult enum.
*/
enum class AppResult : std::underlying_type_t<SDL_AppResult>
{
@ -41,9 +41,9 @@ export namespace sdl
};
/**
* Wrapper around SDL_Init().
* Wrapper for SDL_Init().
*/
constexpr void Init(const InitFlags_t flags)
constexpr void initialize_sdl(const InitFlags_t flags)
{
if (!SDL_Init(flags)) {
throw SDLException("SDL_Init");
@ -51,9 +51,9 @@ export namespace sdl
}
/**
* Wrapper around SDL_SetAppMetadataProperty().
* Wrapper for SDL_SetAppMetadataProperty().
*/
constexpr void SetAppMetadataProperty(const char* property_name, const char* value)
constexpr void set_app_metadata_property(const char* property_name, const char* value)
{
if (!SDL_SetAppMetadataProperty(property_name, value)) {
throw SDLException("SDL_SetAppMetadataProperty");