CRM64Pro GDK v0.18.0
A free cross-platform game development kit built on top of SDL 3.0
Loading...
Searching...
No Matches
CRM64Pro::Mainfinal

CRM64Pro GDK Main class. More...

Detailed Description

CRM64Pro GDK Main class.

Public Member Functions

bool info (Sint32 iMode=0) override
 Request Main module information.
void printVersion ()
 Print version and build date to the default log.
const string & getVersion () const
 Get version string.
const string & getCopyright () const
 Get copyright string.
bool requireVersion (Uint8 iMajor, Uint8 iMinor)
 Check if the GDK version is compatible with the given one.
bool intro (Sint32 idScreen=0)
 Show the MegaStorm and CRM64Pro introduction.
Sint32 update (SDL_Event *evUser=nullptr)
 Manage the GDK update cycle with a fixed virtual logic frame rate.
float getInterpolationFactor () const
 Get the current render interpolation factor.
float getDeltaTime () const
 Get the last frame's high-precision delta time.
float getLogicDeltaTime () const
 Get the delta time that must be consumed by the current logic step.
bool getKeyState (SDL_Keycode keycode) const
 Get the current state of a key.
const char * getKeyName (SDL_Keycode keycode) const
 Get a human-readable name for a key.
Sint32 getKeyboardFocus () const
 Get the screen that has keyboard focus.
LogMgrlogMgr ()
 Get reference to Log Manager.
ConfigMgrconfigMgr ()
 Get reference to Config Manager.
ArchiveMgrarchiveMgr ()
 Get reference to Archive Manager.
XMLMgrxmlMgr ()
 Get reference to XML Manager.
Timertimer ()
 Get reference to Timer module.
Tooltool ()
 Get reference to Tool module.
AudioTrackMgraudioTrackMgr ()
 Get reference to Audio Track Manager.
ImageMgrimageMgr ()
 Get reference to Image Manager.
CursorMgrcursorMgr ()
 Get reference to Cursor Manager.
TileMgrtileMgr ()
 Get reference to Tile Manager.
SpriteMgrspriteMgr ()
 Get reference to Sprite Manager.
FontMgrfontMgr ()
 Get reference to Font Manager.
GFXgfx ()
 Get reference to GFX module.
VideoMgrvideoMgr ()
 Get reference to Video Manager.
Physicsphysics ()
 Get reference to Physics module.
GUIMgrguiMgr ()
 Get reference to GUI Manager.
SceneMgrsceneMgr ()
 Get reference to Scene Manager.
NetTCPnetTCP ()
 Get reference to NetTCP module.

Static Public Member Functions

static Main & instance ()
 Access the Main singleton.
static void terminate ()
 Main explicit destructor.
static bool isInit ()
 Check if the GDK is initialized.