Add GetRaylibVersionString() to core.c and raylib.h.
This commit is contained in:
parent
95f3b6e18e
commit
8339c26c08
10
src/core.c
10
src/core.c
|
|
@ -533,6 +533,16 @@ static void *GamepadThread(void *arg); // Mouse reading thread
|
||||||
void __stdcall Sleep(unsigned long msTimeout); // Required for Wait()
|
void __stdcall Sleep(unsigned long msTimeout); // Required for Wait()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------------
|
||||||
|
// Misc Functions Definition - Raylib info
|
||||||
|
//----------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Returns the current version string, for example: "2.6"
|
||||||
|
const char *GetRaylibVersionString(void)
|
||||||
|
{
|
||||||
|
return RAYLIB_VERSION;
|
||||||
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Module Functions Definition - Window and OpenGL Context Functions
|
// Module Functions Definition - Window and OpenGL Context Functions
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -855,6 +855,13 @@ extern "C" { // Prevents name mangling of functions
|
||||||
//------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------
|
||||||
// It's lonely here...
|
// It's lonely here...
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------------
|
||||||
|
// Misc Functions (Module: core)
|
||||||
|
//------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Raylib info
|
||||||
|
RLAPI const char *GetRaylibVersionString(void); // Returns the current version string, for example: "2.6"
|
||||||
|
|
||||||
//------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------
|
||||||
// Window and Graphics Device Functions (Module: core)
|
// Window and Graphics Device Functions (Module: core)
|
||||||
//------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user