Output platform selected by GLFW to TRACELOG
This commit is contained in:
parent
6a58cbb869
commit
05ba358a16
|
|
@ -1570,6 +1570,17 @@ int InitPlatform(void)
|
||||||
CORE.Storage.basePath = GetWorkingDirectory();
|
CORE.Storage.basePath = GetWorkingDirectory();
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
char* glfwPlatform = "";
|
||||||
|
switch (glfwGetPlatform())
|
||||||
|
{
|
||||||
|
case GLFW_PLATFORM_WIN32: glfwPlatform = "Win32"; break;
|
||||||
|
case GLFW_PLATFORM_COCOA: glfwPlatform = "Cocoa"; break;
|
||||||
|
case GLFW_PLATFORM_WAYLAND: glfwPlatform = "Wayland"; break;
|
||||||
|
case GLFW_PLATFORM_X11: glfwPlatform = "X11"; break;
|
||||||
|
case GLFW_PLATFORM_NULL: glfwPlatform = "Null"; break;
|
||||||
|
}
|
||||||
|
|
||||||
|
TRACELOG(LOG_INFO, "GLFW platform: %s", glfwPlatform);
|
||||||
TRACELOG(LOG_INFO, "PLATFORM: DESKTOP (GLFW): Initialized successfully");
|
TRACELOG(LOG_INFO, "PLATFORM: DESKTOP (GLFW): Initialized successfully");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user