CRM64Pro GDK v0.11.0
A free cross-platform game development kit built on top of SDL 3.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
CRM64Pro::ConfigMgr

Config Manager class. More...

Inherits CRM64Pro::ManagerBase.

Public Member Functions

Sint32 info (Sint32 iMode=0)
 Request Configuration Manager information.
 
Sint32 audioInit (eAudioFreq eAF=AF_DEFAULT, eAudioSample eAS=AS_DEFAULT, eAudioMode eAM=AM_DEFAULT)
 Initialize the audio system.
 
Sint32 audioStatus (eAudioFreq *eAF=nullptr, eAudioSample *eAS=nullptr, eAudioMode *eAM=nullptr)
 Check audio system status.
 
Sint32 audioClose ()
 Close the audio system.
 
Sint32 audioSetDriver (eConfigAudioDriver eCAD)
 Set the audio driver.
 
eConfigAudioDriver audioGetDriver ()
 Get the audio driver.
 
eConfigAudioDriver audioGetDriverInUse ()
 Get the audio driver in use.
 
Sint32 audioMusicVolume (Sint32 iVolume)
 Music volume control.
 
Sint32 audioSoundVolume (Sint32 iVolume)
 Sound volume control.
 
Sint32 audioMixingChannels (Sint32 iNum)
 Manage sound mixing channels.
 
Sint32 audioHook (void(*mix_func)(void *udata, Uint8 *stream, Sint32 len), void *arg)
 Set a function that is called after all mixing is performed.
 
Sint32 create (const string &sName, Uint32 iUnused=0)
 Create a new screen.
 
Sint32 close (Sint32 idScreen)
 Close and destroy a screen.
 
Sint32 getNum ()
 Get number of loaded objects.
 
Sint32 setName (Sint32 idScreen, const string &sName)
 Change the object name.
 
void reset (Sint32 iMode=0)
 Set all default values, close audio system, remove all existing screens and create the "default" screen.
 
Screenget (Sint32 idScreen=0)
 Get a pointer to the screen using its handler.
 
Screenget (SDL_Window *wScreen)
 Get a pointer to the screen using a SDL_Window pointer.
 
Sint32 save (const string &sConfigXML, const string &sCDC="")
 Save current audio/screens configuration.
 
Sint32 load (const string &sConfigXML, const string &sCDC="")
 Load audio/screen configuration.
 
Sint32 setup (const string &sConfigXML, const string &sConfigCDC="", const string &sCustomSetupXML="")
 Open the setup window for configurating audio/screen settings.
 
Sint32 setup (const string &sConfigXML, Sint32 idConfigCDC, const string &sCustomSetupXML="")
 Open the setup window for configurating audio/screen settings.
 

Public Attributes

Uint8 iMTFriendly
 

Detailed Description

Config Manager class.

Member Data Documentation

◆ iMTFriendly

Uint8 CRM64Pro::ConfigMgr::iMTFriendly

When enabled (1 or greater), it will give back the execution to the operating system scheduler for at less its value in ms after each Render Frame update. By default is disabled (0).