Refactoring: Rename SDL wrapper funcs to snake_case
This commit is contained in:
parent
7f37be386d
commit
7b8aac69fb
5 changed files with 17 additions and 17 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue