Skip to content

Commit 3b386f6

Browse files
kannanmadanagopaltMichael Fiess
authored and
Michael Fiess
committed
add os info to scene (pxscene#1647)
* add os info to scene * add os info to scene * Update pxScene2d.cpp * Update pxScene2d.cpp * Update pxScene2d.cpp
1 parent 30d1657 commit 3b386f6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

examples/pxScene2d/src/pxScene2d.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,15 @@ static bool gWaylandAppsConfigLoaded = false;
168168
#define DEFAULT_WAYLAND_APP_CONFIG_FILE "./waylandregistry.conf"
169169
#define DEFAULT_ALL_APPS_CONFIG_FILE "./pxsceneappregistry.conf"
170170

171+
// ubuntu is mapped with glut
172+
#if defined(PX_PLATFORM_WIN)
173+
const rtString gPlatformOS = "Windows";
174+
#elif defined(PX_PLATFORM_MAC)
175+
const rtString gPlatformOS = "macOS";
176+
#else
177+
const rtString gPlatformOS = "Linux";
178+
#endif
179+
171180
void populateWaylandAppsConfig()
172181
{
173182
//populate from the wayland registry file
@@ -1964,6 +1973,7 @@ pxScene2d::pxScene2d(bool top, pxScriptView* scriptView)
19641973
build.set("date", xstr(__DATE__));
19651974
build.set("time", xstr(__TIME__));
19661975
build.set("revision", xstr(SPARK_BUILD_GIT_REVISION));
1976+
build.set("os", gPlatformOS);
19671977

19681978
mInfo.set("build", build);
19691979
mInfo.set("gfxmemory", context.currentTextureMemoryUsageInBytes());

0 commit comments

Comments
 (0)