OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SdlPlatformSharedState Class Reference

#include <SdlPlatformSharedState.h>

Public Member Functions

 SdlPlatformSharedState ()
 
 ~SdlPlatformSharedState ()
 
void logSdlError (const char *sdlFunctionName)
 
void registerWindow (SdlWindow *window)
 
void unregisterWindow (SdlWindow *window)
 
std::vector< uint32_t > allWindowIds () const
 
SdlWindowwindow (uint32_t id) const
 
void registerEventLoop (SdlEventLoop *eventLoop)
 
void unregisterEventLoop (SdlEventLoop *eventLoop)
 
void initializeGamepads ()
 
SdlGamepadinitializeGamepad (int gamepadId)
 
void deinitializeGamepad (SDL_JoystickID id)
 
std::vector< PlatformGamepad * > allGamepads () const
 
SdlGamepadgamepad (SDL_JoystickID id) const
 

Static Public Member Functions

static const LogCategorylogCategory ()
 

Private Attributes

std::unordered_map< uint32_t, SdlWindow * > _windowById
 
std::unordered_map< SDL_JoystickID, std::unique_ptr< SdlGamepad > > _gamepadById
 
size_t _eventLoopCount = 0
 

Constructor & Destructor Documentation

◆ SdlPlatformSharedState()

SdlPlatformSharedState::SdlPlatformSharedState ( )
default

◆ ~SdlPlatformSharedState()

SdlPlatformSharedState::~SdlPlatformSharedState ( )

Member Function Documentation

◆ allGamepads()

std::vector< PlatformGamepad * > SdlPlatformSharedState::allGamepads ( ) const

◆ allWindowIds()

std::vector< uint32_t > SdlPlatformSharedState::allWindowIds ( ) const

◆ deinitializeGamepad()

void SdlPlatformSharedState::deinitializeGamepad ( SDL_JoystickID  id)

◆ gamepad()

SdlGamepad * SdlPlatformSharedState::gamepad ( SDL_JoystickID  id) const

◆ initializeGamepad()

SdlGamepad * SdlPlatformSharedState::initializeGamepad ( int  gamepadId)

◆ initializeGamepads()

void SdlPlatformSharedState::initializeGamepads ( )

◆ logCategory()

const LogCategory & SdlPlatformSharedState::logCategory ( )
static

◆ logSdlError()

void SdlPlatformSharedState::logSdlError ( const char *  sdlFunctionName)

◆ registerEventLoop()

void SdlPlatformSharedState::registerEventLoop ( SdlEventLoop eventLoop)

◆ registerWindow()

void SdlPlatformSharedState::registerWindow ( SdlWindow window)

◆ unregisterEventLoop()

void SdlPlatformSharedState::unregisterEventLoop ( SdlEventLoop eventLoop)

◆ unregisterWindow()

void SdlPlatformSharedState::unregisterWindow ( SdlWindow window)

◆ window()

SdlWindow * SdlPlatformSharedState::window ( uint32_t  id) const

Member Data Documentation

◆ _eventLoopCount

size_t SdlPlatformSharedState::_eventLoopCount = 0
private

◆ _gamepadById

std::unordered_map<SDL_JoystickID, std::unique_ptr<SdlGamepad> > SdlPlatformSharedState::_gamepadById
private

◆ _windowById

std::unordered_map<uint32_t, SdlWindow *> SdlPlatformSharedState::_windowById
private

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