SDOM - Simple SDL Document Object Model
A lightweight, extensible Document Object Model for SDL-based applications.
Loading...
Searching...
No Matches
SDOM::SDL_Utils Class Reference

#include <SDOM_SDL_Utils.hpp>

Public Member Functions

 SDL_Utils ()=default
 
 ~SDL_Utils ()=default
 

Static Public Member Functions

static std::string pixelFormatToString (SDL_PixelFormat format)
 
static SDL_PixelFormat pixelFormatFromString (const std::string &str)
 
static std::string windowFlagsToString (Uint64 flags)
 
static Uint64 windowFlagsFromString (const std::string &str)
 
static std::string rendererLogicalPresentationToString (Uint32 flags)
 
static SDL_RendererLogicalPresentation rendererLogicalPresentationFromString (const std::string &str)
 
static std::string eventTypeToString (SDL_EventType type)
 
static SDL_EventType eventTypeFromString (const std::string &str)
 
static int keyToAscii (SDL_Keycode keycode, SDL_Keymod keymod)
 
static sol::table eventToLuaTable (const SDL_Event &event, sol::state_view lua)
 
static void registerLua (sol::state_view lua)
 
static SDL_FRect tableToFRect (const sol::table &t)
 
static SDL_Color colorFromSol (const sol::object &o)
 
static SDL_ScaleMode scaleModeFromSol (const sol::object &o)
 

Constructor & Destructor Documentation

◆ SDL_Utils()

SDOM::SDL_Utils::SDL_Utils ( )
default

◆ ~SDL_Utils()

SDOM::SDL_Utils::~SDL_Utils ( )
default

Member Function Documentation

◆ colorFromSol()

SDL_Color SDOM::SDL_Utils::colorFromSol ( const sol::object &  o)
static

◆ eventToLuaTable()

sol::table SDOM::SDL_Utils::eventToLuaTable ( const SDL_Event &  event,
sol::state_view  lua 
)
static

◆ eventTypeFromString()

SDL_EventType SDOM::SDL_Utils::eventTypeFromString ( const std::string &  str)
static

◆ eventTypeToString()

std::string SDOM::SDL_Utils::eventTypeToString ( SDL_EventType  type)
static

◆ keyToAscii()

int SDOM::SDL_Utils::keyToAscii ( SDL_Keycode  keycode,
SDL_Keymod  keymod 
)
static

◆ pixelFormatFromString()

SDL_PixelFormat SDOM::SDL_Utils::pixelFormatFromString ( const std::string &  str)
static

◆ pixelFormatToString()

std::string SDOM::SDL_Utils::pixelFormatToString ( SDL_PixelFormat  format)
static

◆ registerLua()

void SDOM::SDL_Utils::registerLua ( sol::state_view  lua)
static

◆ rendererLogicalPresentationFromString()

SDL_RendererLogicalPresentation SDOM::SDL_Utils::rendererLogicalPresentationFromString ( const std::string &  str)
static

◆ rendererLogicalPresentationToString()

std::string SDOM::SDL_Utils::rendererLogicalPresentationToString ( Uint32  flags)
static

◆ scaleModeFromSol()

SDL_ScaleMode SDOM::SDL_Utils::scaleModeFromSol ( const sol::object &  o)
static

◆ tableToFRect()

SDL_FRect SDOM::SDL_Utils::tableToFRect ( const sol::table &  t)
static

◆ windowFlagsFromString()

Uint64 SDOM::SDL_Utils::windowFlagsFromString ( const std::string &  str)
static

◆ windowFlagsToString()

std::string SDOM::SDL_Utils::windowFlagsToString ( Uint64  flags)
static

The documentation for this class was generated from the following files: