feat: raylib platform processor (ios)
This commit is contained in:
parent
c80e0c4733
commit
070ab4c693
|
|
@ -113,6 +113,11 @@
|
||||||
#define RLAPI // Functions defined as 'extern' by default (implicit specifiers)
|
#define RLAPI // Functions defined as 'extern' by default (implicit specifiers)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// iOS owns the real main() via UIApplicationMain.
|
||||||
|
#if defined(PLATFORM_IOS)
|
||||||
|
#define main raylib_main
|
||||||
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Defines and Macros
|
// Defines and Macros
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -526,6 +526,8 @@ const char *TextFormat(const char *text, ...); // Formatting of text with variab
|
||||||
#include "platforms/rcore_drm.c"
|
#include "platforms/rcore_drm.c"
|
||||||
#elif defined(PLATFORM_ANDROID)
|
#elif defined(PLATFORM_ANDROID)
|
||||||
#include "platforms/rcore_android.c"
|
#include "platforms/rcore_android.c"
|
||||||
|
#elif defined(PLATFORM_IOS)
|
||||||
|
#include "platforms/rcore_ios.c"
|
||||||
#elif defined(PLATFORM_MEMORY)
|
#elif defined(PLATFORM_MEMORY)
|
||||||
#include "platforms/rcore_memory.c"
|
#include "platforms/rcore_memory.c"
|
||||||
#else
|
#else
|
||||||
|
|
@ -604,6 +606,8 @@ void InitWindow(int width, int height, const char *title)
|
||||||
TRACELOG(LOG_INFO, "Platform backend: ANDROID");
|
TRACELOG(LOG_INFO, "Platform backend: ANDROID");
|
||||||
#elif defined(PLATFORM_MEMORY)
|
#elif defined(PLATFORM_MEMORY)
|
||||||
TRACELOG(LOG_INFO, "Platform backend: MEMORY (No OS)");
|
TRACELOG(LOG_INFO, "Platform backend: MEMORY (No OS)");
|
||||||
|
#elif defined(PLATFORM_IOS)
|
||||||
|
TRACELOG(LOG_INFO, "Platform backend: iOS");
|
||||||
#else
|
#else
|
||||||
// TODO: Include your custom platform backend!
|
// TODO: Include your custom platform backend!
|
||||||
// i.e software rendering backend or console backend!
|
// i.e software rendering backend or console backend!
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user