CRM64Pro GDK  v0.94
A free cross-platform game development kit built on top of SDL 2.0
Public Member Functions | List of all members
CRM64Pro::Tool Class Reference

Inherits CRM64Pro::Base.

Public Member Functions

Sint32 info (Sint32 iMode=0)
 
Uint32 CRC32 (const void *pBuffer, size_t iSize, Uint32 iPreviousCRC32=0)
 
Uint32 CRC32 (const string &sFile)
 
Uint32 xxHash (const void *pBuffer, size_t iSize, Uint32 iSeed)
 
void * xxHashInit (Uint32 iSeed)
 
Sint32 xxHashUpdate (void *pState, const void *pBuffer, size_t iSize)
 
Uint32 xxHashDigest (void *pState)
 
Sint32 xxHashEnd (void *pState)
 
Sint32 XOR (void *pSrc, size_t iSize, Uint8 cKey)
 
void randSeedMWC (Uint32 iSeed)
 
Uint32 randMWC ()
 
double randRealMWC ()
 
void randSeedWELL (Uint32 iSeed, Uint32 *pSeedTable=nullptr)
 
Uint32 randWELL (Uint32 *pSeedState=nullptr, Uint32 *pSeedTable=nullptr)
 
double randRealWELL ()
 
float round (const float fNum)
 
Sint32 dirExists (const string &sPath)
 
Sint32 dirCreate (const string &sPath)
 
Sint32 fileExists (const string &sPath)
 
Sint32 fileRemove (const string &sPath)
 
Sint32 fileGetAbsolutePath (const string &sPath, string &sAbsolutePath)
 
Sint32 fileGetExePath (string &sPath)
 
Sint32 fileGetName (const string &sPath, string &sFileName)
 
Sint32 fileGetExtension (const string &sPath, string &sExtensionName)
 
Sint32 fileGetDir (const string &sPath, string &sDirName)
 
Sint32 fileCheckExtension (const string &sPath, const string &sExt)
 
Sint32 fileOpenDialog (const string &sTitle, const char *szFilter, string &sSelectedFile)
 
Sint32 fileSaveDialog (const string &sTitle, const char *szFilter, string &sSelectedFile)
 
Sint32 messageBox (const string &sTitle, const string &sMsg, Uint32 iButtons=TMBB_OK, eToolMBT eTMBT=TMBT_INFO, Sint32 iTTL=0, Sint32 idCustomPanel=-1)
 
Sint32 szCopy (char *szDst, const char *szSrc, size_t iSize)
 
Sint32 getDateStamp (string &sString)
 
Sint32 strCompare (const string &sOne, const string &sTwo)
 
Sint32 strToLowerCase (string &sString)
 
Sint32 strToUpperCase (string &sString)
 
Sint32 intToStrDec (Sint32 iNum, string &sString)
 
Sint32 intToStrHex (Sint32 iNum, string &sString)
 
Sint32 vStrToFile (const vector< string > &vString, const string &sFileName)
 
Sint32 fileTovStr (vector< string > &vString, const string &sFileName)