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

CRM64Pro GDK Main class. More...

Detailed Description

CRM64Pro GDK Main class.

Public Member Functions

bool info (Sint32 iMode=0) override
 Request Main Interface information.
void printVersion ()
 Print version and build date to the default log.
const string & getVersion ()
 Get version string.
const string & getCopyright ()
 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 getLogicTime () const
 Get the current logic interpolation alpha.
float getDeltaTime () const
 Get the last frame's high-precision delta time.
bool getKeyState (SDL_Keycode keycode)
 Get the current state of a key.
const char * getKeyName (SDL_Keycode keycode)
 Get a human-readable name for a key.
Sint32 getKeyboardFocus () const
 Get the screen that has keyboard focus.
LogMgrILogMgr ()
 Get reference to Log Manager.
ConfigMgrIConfigMgr ()
 Get reference to Config Manager.
ArchiveMgrIArchiveMgr ()
 Get reference to Archive Manager.
XMLMgrIXMLMgr ()
 Get reference to XML Manager.
TimerITimer ()
 Get reference to Timer Interface.
ToolITool ()
 Get reference to Tool Interface.
AudioTrackMgrIAudioTrackMgr ()
 Get reference to Audio Track Manager.
ImageMgrIImageMgr ()
 Get reference to Image Manager.
CursorMgrICursorMgr ()
 Get reference to Cursor Manager.
TileMgrITileMgr ()
 Get reference to Tile Manager.
SpriteMgrISpriteMgr ()
 Get reference to Sprite Manager.
FontMgrIFontMgr ()
 Get reference to Font Manager.
GFXIGFX ()
 Get reference to GFX Interface.
PhysicsIPhysics ()
 Get reference to Physics Interface.
GUIMgrIGUIMgr ()
 Get reference to GUI Manager.
SceneMgrISceneMgr ()
 Get reference to Scene Manager.
NetTCPINetTCP ()
 Get reference to NetTCP Interface.

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.