CRM64Pro GDK v0.20.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...

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.
LogMgr & logMgr ()
 Get reference to Log Manager.
ConfigMgr & configMgr ()
 Get reference to Config Manager.
ArchiveMgr & archiveMgr ()
 Get reference to Archive Manager.
XMLMgr & xmlMgr ()
 Get reference to XML Manager.
Timer & timer ()
 Get reference to Timer module.
Tool & tool ()
 Get reference to Tool module.
AudioTrackMgr & audioTrackMgr ()
 Get reference to Audio Track Manager.
ImageMgr & imageMgr ()
 Get reference to Image Manager.
CursorMgr & cursorMgr ()
 Get reference to Cursor Manager.
TileMgr & tileMgr ()
 Get reference to Tile Manager.
SpriteMgr & spriteMgr ()
 Get reference to Sprite Manager.
FontMgr & fontMgr ()
 Get reference to Font Manager.
GFX & gfx ()
 Get reference to GFX module.
VideoMgr & videoMgr ()
 Get reference to Video Manager.
Physics & physics ()
 Get reference to Physics module.
ParticleMgr & particleMgr ()
 Get reference to Particle Manager.
GUIMgr & guiMgr ()
 Get reference to GUI Manager.
SceneMgr & sceneMgr ()
 Get reference to Scene Manager.
NetTCP & netTCP ()
 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.

Detailed Description

CRM64Pro GDK Main class.