diff --git a/examples/00-helloworld/helloworld.cpp b/examples/00-helloworld/helloworld.cpp index 8b98919520..ebf971797e 100644 --- a/examples/00-helloworld/helloworld.cpp +++ b/examples/00-helloworld/helloworld.cpp @@ -34,7 +34,7 @@ class ExampleHelloWorld : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/01-cubes/cubes.cpp b/examples/01-cubes/cubes.cpp index 4c3da5c521..07c974dbbd 100644 --- a/examples/01-cubes/cubes.cpp +++ b/examples/01-cubes/cubes.cpp @@ -149,7 +149,7 @@ class ExampleCubes : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/02-metaballs/metaballs.cpp b/examples/02-metaballs/metaballs.cpp index 8c42f22117..361ad9edf0 100644 --- a/examples/02-metaballs/metaballs.cpp +++ b/examples/02-metaballs/metaballs.cpp @@ -508,7 +508,7 @@ class ExampleMetaballs : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/03-raymarch/raymarch.cpp b/examples/03-raymarch/raymarch.cpp index ddbd73fe04..89f145fcd3 100644 --- a/examples/03-raymarch/raymarch.cpp +++ b/examples/03-raymarch/raymarch.cpp @@ -121,7 +121,7 @@ class ExampleRaymarch : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/04-mesh/mesh.cpp b/examples/04-mesh/mesh.cpp index 40469bd14a..7887842538 100644 --- a/examples/04-mesh/mesh.cpp +++ b/examples/04-mesh/mesh.cpp @@ -32,7 +32,7 @@ class ExampleMesh : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/05-instancing/instancing.cpp b/examples/05-instancing/instancing.cpp index 9d5a804b04..3b1d7b9c44 100644 --- a/examples/05-instancing/instancing.cpp +++ b/examples/05-instancing/instancing.cpp @@ -84,7 +84,7 @@ class ExampleInstancing : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/06-bump/bump.cpp b/examples/06-bump/bump.cpp index 93aeeb3866..fd42f80c45 100644 --- a/examples/06-bump/bump.cpp +++ b/examples/06-bump/bump.cpp @@ -104,7 +104,7 @@ class ExampleBump : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/07-callback/callback.cpp b/examples/07-callback/callback.cpp index 2b7f59c8bf..5d9c98df32 100644 --- a/examples/07-callback/callback.cpp +++ b/examples/07-callback/callback.cpp @@ -331,7 +331,7 @@ class ExampleCallback : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/08-update/update.cpp b/examples/08-update/update.cpp index d6fe779600..0f41303314 100644 --- a/examples/08-update/update.cpp +++ b/examples/08-update/update.cpp @@ -247,7 +247,7 @@ class ExampleUpdate : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/09-hdr/hdr.cpp b/examples/09-hdr/hdr.cpp index 6db19d1c83..8b43bf7547 100644 --- a/examples/09-hdr/hdr.cpp +++ b/examples/09-hdr/hdr.cpp @@ -155,7 +155,7 @@ class ExampleHDR : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/10-font/font.cpp b/examples/10-font/font.cpp index f74ec95631..dbc70b83a1 100644 --- a/examples/10-font/font.cpp +++ b/examples/10-font/font.cpp @@ -73,7 +73,7 @@ class ExampleFont : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/11-fontsdf/fontsdf.cpp b/examples/11-fontsdf/fontsdf.cpp index 5e03e9256b..d79e3087df 100644 --- a/examples/11-fontsdf/fontsdf.cpp +++ b/examples/11-fontsdf/fontsdf.cpp @@ -56,7 +56,7 @@ class ExampleFontSDF : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/12-lod/lod.cpp b/examples/12-lod/lod.cpp index b429334a84..a3aa6c038e 100644 --- a/examples/12-lod/lod.cpp +++ b/examples/12-lod/lod.cpp @@ -48,7 +48,7 @@ class ExampleLod : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/13-stencil/stencil.cpp b/examples/13-stencil/stencil.cpp index cfbf0615c9..d082677ac4 100644 --- a/examples/13-stencil/stencil.cpp +++ b/examples/13-stencil/stencil.cpp @@ -814,7 +814,7 @@ class ExampleStencil : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_viewState.m_width; init.resolution.height = m_viewState.m_height; init.resolution.reset = m_reset; diff --git a/examples/14-shadowvolumes/shadowvolumes.cpp b/examples/14-shadowvolumes/shadowvolumes.cpp index f90aec05df..4ccea3a939 100644 --- a/examples/14-shadowvolumes/shadowvolumes.cpp +++ b/examples/14-shadowvolumes/shadowvolumes.cpp @@ -1785,7 +1785,7 @@ class ExampleShadowVolumes : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_viewState.m_width; init.resolution.height = m_viewState.m_height; init.resolution.reset = m_reset; diff --git a/examples/15-shadowmaps-simple/shadowmaps_simple.cpp b/examples/15-shadowmaps-simple/shadowmaps_simple.cpp index bfd4a75a0b..c1e44430ad 100644 --- a/examples/15-shadowmaps-simple/shadowmaps_simple.cpp +++ b/examples/15-shadowmaps-simple/shadowmaps_simple.cpp @@ -80,7 +80,7 @@ class ExampleShadowmapsSimple : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/16-shadowmaps/shadowmaps.cpp b/examples/16-shadowmaps/shadowmaps.cpp index 03ef90e996..f648a624a5 100644 --- a/examples/16-shadowmaps/shadowmaps.cpp +++ b/examples/16-shadowmaps/shadowmaps.cpp @@ -1156,7 +1156,7 @@ class ExampleShadowmaps : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_viewState.m_width; init.resolution.height = m_viewState.m_height; init.resolution.reset = m_reset; diff --git a/examples/17-drawstress/drawstress.cpp b/examples/17-drawstress/drawstress.cpp index c76cf9d27b..951ccc1cf7 100644 --- a/examples/17-drawstress/drawstress.cpp +++ b/examples/17-drawstress/drawstress.cpp @@ -131,7 +131,7 @@ class ExampleDrawStress : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/18-ibl/ibl.cpp b/examples/18-ibl/ibl.cpp index fc3286b457..972e29deec 100644 --- a/examples/18-ibl/ibl.cpp +++ b/examples/18-ibl/ibl.cpp @@ -420,7 +420,7 @@ class ExampleIbl : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/19-oit/oit.cpp b/examples/19-oit/oit.cpp index fa846b5294..a1e54c2b1d 100644 --- a/examples/19-oit/oit.cpp +++ b/examples/19-oit/oit.cpp @@ -171,7 +171,7 @@ class ExampleOIT : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/20-nanovg/nanovg.cpp b/examples/20-nanovg/nanovg.cpp index 62c17bcb9b..f9db9d9a6b 100644 --- a/examples/20-nanovg/nanovg.cpp +++ b/examples/20-nanovg/nanovg.cpp @@ -1404,7 +1404,7 @@ class ExampleNanoVG : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/21-deferred/deferred.cpp b/examples/21-deferred/deferred.cpp index c77c4f79b3..92f4786df5 100644 --- a/examples/21-deferred/deferred.cpp +++ b/examples/21-deferred/deferred.cpp @@ -209,7 +209,7 @@ class ExampleDeferred : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/22-windows/windows.cpp b/examples/22-windows/windows.cpp index 04b9b26e1e..169d54ac23 100644 --- a/examples/22-windows/windows.cpp +++ b/examples/22-windows/windows.cpp @@ -88,7 +88,7 @@ class ExampleWindows : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/24-nbody/nbody.cpp b/examples/24-nbody/nbody.cpp index b47469d8c0..52bef1caa9 100644 --- a/examples/24-nbody/nbody.cpp +++ b/examples/24-nbody/nbody.cpp @@ -132,7 +132,7 @@ class ExampleNbody : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/26-occlusion/occlusion.cpp b/examples/26-occlusion/occlusion.cpp index 57cfa097c2..3e3cc57e70 100644 --- a/examples/26-occlusion/occlusion.cpp +++ b/examples/26-occlusion/occlusion.cpp @@ -84,7 +84,7 @@ class ExampleOcclusion : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/27-terrain/terrain.cpp b/examples/27-terrain/terrain.cpp index 867e50894c..4732e25f3a 100644 --- a/examples/27-terrain/terrain.cpp +++ b/examples/27-terrain/terrain.cpp @@ -80,7 +80,7 @@ ExampleTerrain(const char* _name, const char* _description, const char* _url) init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/28-wireframe/wireframe.cpp b/examples/28-wireframe/wireframe.cpp index 397577ba1a..75001cda52 100644 --- a/examples/28-wireframe/wireframe.cpp +++ b/examples/28-wireframe/wireframe.cpp @@ -293,7 +293,7 @@ class ExampleWireframe : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/29-debugdraw/debugdraw.cpp b/examples/29-debugdraw/debugdraw.cpp index 20a240fb44..ea67655d9f 100644 --- a/examples/29-debugdraw/debugdraw.cpp +++ b/examples/29-debugdraw/debugdraw.cpp @@ -780,7 +780,7 @@ class ExampleDebugDraw : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/30-picking/picking.cpp b/examples/30-picking/picking.cpp index a9387ecfbe..fcbe63e577 100644 --- a/examples/30-picking/picking.cpp +++ b/examples/30-picking/picking.cpp @@ -40,7 +40,7 @@ class ExamplePicking : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/31-rsm/reflectiveshadowmap.cpp b/examples/31-rsm/reflectiveshadowmap.cpp index 3d055f80e6..cd41438168 100644 --- a/examples/31-rsm/reflectiveshadowmap.cpp +++ b/examples/31-rsm/reflectiveshadowmap.cpp @@ -210,7 +210,7 @@ class ExampleRSM : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/32-particles/particles.cpp b/examples/32-particles/particles.cpp index 12ab607af7..a58adda57c 100644 --- a/examples/32-particles/particles.cpp +++ b/examples/32-particles/particles.cpp @@ -248,7 +248,7 @@ class ExampleParticles : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/33-pom/pom.cpp b/examples/33-pom/pom.cpp index 508178faf4..5a7766ce4c 100644 --- a/examples/33-pom/pom.cpp +++ b/examples/33-pom/pom.cpp @@ -130,7 +130,7 @@ class ExamplePom : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/34-mvs/mvs.cpp b/examples/34-mvs/mvs.cpp index 7fecebead7..c23aa29b12 100644 --- a/examples/34-mvs/mvs.cpp +++ b/examples/34-mvs/mvs.cpp @@ -126,7 +126,7 @@ class ExampleMvs : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/35-dynamic/dynamic.cpp b/examples/35-dynamic/dynamic.cpp index 7ee451f5e9..f27b7c98e0 100644 --- a/examples/35-dynamic/dynamic.cpp +++ b/examples/35-dynamic/dynamic.cpp @@ -104,7 +104,7 @@ class ExampleDynamic : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/36-sky/sky.cpp b/examples/36-sky/sky.cpp index b82c31fda6..d00a4aa9bf 100644 --- a/examples/36-sky/sky.cpp +++ b/examples/36-sky/sky.cpp @@ -420,7 +420,7 @@ class ExampleProceduralSky : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/37-gpudrivenrendering/gpudrivenrendering.cpp b/examples/37-gpudrivenrendering/gpudrivenrendering.cpp index 5a3ff9acc2..cbe33c339b 100644 --- a/examples/37-gpudrivenrendering/gpudrivenrendering.cpp +++ b/examples/37-gpudrivenrendering/gpudrivenrendering.cpp @@ -330,7 +330,7 @@ class GPUDrivenRendering : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/38-bloom/bloom.cpp b/examples/38-bloom/bloom.cpp index 33a89170a7..04a974c4de 100644 --- a/examples/38-bloom/bloom.cpp +++ b/examples/38-bloom/bloom.cpp @@ -196,7 +196,7 @@ class ExampleBloom : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/39-assao/assao.cpp b/examples/39-assao/assao.cpp index 6dc1de27ce..0a51f3ca36 100644 --- a/examples/39-assao/assao.cpp +++ b/examples/39-assao/assao.cpp @@ -268,7 +268,7 @@ namespace init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/40-svt/svt.cpp b/examples/40-svt/svt.cpp index 3256f64952..cde5f01acf 100644 --- a/examples/40-svt/svt.cpp +++ b/examples/40-svt/svt.cpp @@ -82,7 +82,7 @@ class ExampleSVT : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/41-tess/tess.cpp b/examples/41-tess/tess.cpp index 8f0ef16433..e92d22be1e 100644 --- a/examples/41-tess/tess.cpp +++ b/examples/41-tess/tess.cpp @@ -339,7 +339,7 @@ class ExampleTessellation : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/42-bunnylod/bunnylod.cpp b/examples/42-bunnylod/bunnylod.cpp index 4bfbbf907e..34e6db1ac1 100644 --- a/examples/42-bunnylod/bunnylod.cpp +++ b/examples/42-bunnylod/bunnylod.cpp @@ -264,7 +264,7 @@ class ExampleBunnyLOD : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/43-denoise/denoise.cpp b/examples/43-denoise/denoise.cpp index 3fd2eca7ba..ac6fb6c2f2 100644 --- a/examples/43-denoise/denoise.cpp +++ b/examples/43-denoise/denoise.cpp @@ -250,7 +250,7 @@ class ExampleDenoise : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/44-sss/screen_space_shadows.cpp b/examples/44-sss/screen_space_shadows.cpp index 186a64619d..c32c6f109e 100644 --- a/examples/44-sss/screen_space_shadows.cpp +++ b/examples/44-sss/screen_space_shadows.cpp @@ -262,7 +262,7 @@ class ExampleScreenSpaceShadows : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/45-bokeh/bokeh.cpp b/examples/45-bokeh/bokeh.cpp index edb8bc8702..8c30df3f17 100644 --- a/examples/45-bokeh/bokeh.cpp +++ b/examples/45-bokeh/bokeh.cpp @@ -244,7 +244,7 @@ class ExampleBokeh : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/47-pixelformats/pixelformats.cpp b/examples/47-pixelformats/pixelformats.cpp index 4eb79532d3..0fcfc4fc7e 100644 --- a/examples/47-pixelformats/pixelformats.cpp +++ b/examples/47-pixelformats/pixelformats.cpp @@ -429,7 +429,7 @@ class ExamplePixelFormats : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/48-drawindirect/drawindirect.cpp b/examples/48-drawindirect/drawindirect.cpp index 65fffa123b..76414104f8 100644 --- a/examples/48-drawindirect/drawindirect.cpp +++ b/examples/48-drawindirect/drawindirect.cpp @@ -146,7 +146,7 @@ class DrawIndirect : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/49-hextile/hextile.cpp b/examples/49-hextile/hextile.cpp index 58dc2c7e3a..820598f26b 100644 --- a/examples/49-hextile/hextile.cpp +++ b/examples/49-hextile/hextile.cpp @@ -85,7 +85,7 @@ namespace init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); - init.platformData.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + init.platformData.type = entry::getNativeWindowHandleType(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/common/entry/entry.cpp b/examples/common/entry/entry.cpp index 14a489250e..be3a54639b 100644 --- a/examples/common/entry/entry.cpp +++ b/examples/common/entry/entry.cpp @@ -1040,5 +1040,5 @@ extern "C" void* entry_get_native_display_handle() extern "C" bgfx::NativeWindowHandleType::Enum entry_get_native_window_handle_type() { - return entry::getNativeWindowHandleType(entry::kDefaultWindowHandle); + return entry::getNativeWindowHandleType(); } diff --git a/examples/common/entry/entry.h b/examples/common/entry/entry.h index 9867aa8748..4c9bdb2888 100644 --- a/examples/common/entry/entry.h +++ b/examples/common/entry/entry.h @@ -299,7 +299,7 @@ namespace entry void* getNativeDisplayHandle(); /// - bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType(WindowHandle _handle); + bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType(); /// void setCurrentDir(const char* _dir); diff --git a/examples/common/entry/entry_android.cpp b/examples/common/entry/entry_android.cpp index de6bd5ab95..b120db32d0 100644 --- a/examples/common/entry/entry_android.cpp +++ b/examples/common/entry/entry_android.cpp @@ -550,9 +550,8 @@ namespace entry return NULL; } - bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType(WindowHandle _handle) + bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType() { - BX_UNUSED(_handle); return bgfx::NativeWindowHandleType::Default; } diff --git a/examples/common/entry/entry_glfw.cpp b/examples/common/entry/entry_glfw.cpp index 071672696a..0461dabc15 100644 --- a/examples/common/entry/entry_glfw.cpp +++ b/examples/common/entry/entry_glfw.cpp @@ -875,7 +875,7 @@ namespace entry # endif // BX_PLATFORM_* } - bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType(WindowHandle _handle) + bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType() { # if BX_PLATFORM_LINUX || BX_PLATFORM_BSD # if ENTRY_CONFIG_USE_WAYLAND diff --git a/examples/common/entry/entry_html5.cpp b/examples/common/entry/entry_html5.cpp index 998cb9501f..d16572ba07 100644 --- a/examples/common/entry/entry_html5.cpp +++ b/examples/common/entry/entry_html5.cpp @@ -428,9 +428,8 @@ namespace entry return NULL; } - bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType(WindowHandle _handle) + bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType() { - BX_UNUSED(_handle); return bgfx::NativeWindowHandleType::Default; } } diff --git a/examples/common/entry/entry_ios.mm b/examples/common/entry/entry_ios.mm index d5676fef17..97e51750fa 100644 --- a/examples/common/entry/entry_ios.mm +++ b/examples/common/entry/entry_ios.mm @@ -161,9 +161,8 @@ void setMouseLock(WindowHandle _handle, bool _lock) return NULL; } - bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType(WindowHandle _handle) + bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType() { - BX_UNUSED(_handle); return bgfx::NativeWindowHandleType::Default; } diff --git a/examples/common/entry/entry_noop.cpp b/examples/common/entry/entry_noop.cpp index 1e1e61d0b2..413c33de51 100644 --- a/examples/common/entry/entry_noop.cpp +++ b/examples/common/entry/entry_noop.cpp @@ -78,7 +78,7 @@ namespace entry return NULL; } - bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType(WindowHandle _handle) + bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType() { BX_UNUSED(_handle); return bgfx::NativeWindowHandleType::Default; diff --git a/examples/common/entry/entry_osx.mm b/examples/common/entry/entry_osx.mm index 201033f1af..aec370afc1 100644 --- a/examples/common/entry/entry_osx.mm +++ b/examples/common/entry/entry_osx.mm @@ -725,9 +725,8 @@ void setMouseLock(WindowHandle _handle, bool _lock) return NULL; } - bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType(WindowHandle _handle) + bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType() { - BX_UNUSED(_handle); return bgfx::NativeWindowHandleType::Default; } diff --git a/examples/common/entry/entry_sdl.cpp b/examples/common/entry/entry_sdl.cpp index 2d5e9c15e7..83c34f474c 100644 --- a/examples/common/entry/entry_sdl.cpp +++ b/examples/common/entry/entry_sdl.cpp @@ -1160,21 +1160,25 @@ namespace entry # endif // BX_PLATFORM_* } - bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType(WindowHandle _handle) + bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType() { SDL_SysWMinfo wmi; SDL_VERSION(&wmi.version); - if (!SDL_GetWindowWMInfo(s_ctx.m_window[_handle.idx], &wmi) ) + if (!SDL_GetWindowWMInfo(s_ctx.m_window[kDefaultWindowHandle], &wmi) ) { return bgfx::NativeWindowHandleType::Default; } # if BX_PLATFORM_LINUX || BX_PLATFORM_BSD # if ENTRY_CONFIG_USE_WAYLAND if (wmi.subsystem == SDL_SYSWM_WAYLAND) + { return bgfx::NativeWindowHandleType::Wayland; + } else # endif // ENTRY_CONFIG_USE_WAYLAND + { return bgfx::NativeWindowHandleType::Default; + } # else return bgfx::NativeWindowHandleType::Default; # endif // BX_PLATFORM_* diff --git a/examples/common/entry/entry_windows.cpp b/examples/common/entry/entry_windows.cpp index 7db32cd1d3..073c6be593 100644 --- a/examples/common/entry/entry_windows.cpp +++ b/examples/common/entry/entry_windows.cpp @@ -1169,9 +1169,8 @@ namespace entry return NULL; } - bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType(WindowHandle _handle) + bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType() { - BX_UNUSED(_handle); return bgfx::NativeWindowHandleType::Default; } diff --git a/examples/common/entry/entry_x11.cpp b/examples/common/entry/entry_x11.cpp index 9d80593f9f..f66349694b 100644 --- a/examples/common/entry/entry_x11.cpp +++ b/examples/common/entry/entry_x11.cpp @@ -771,9 +771,8 @@ namespace entry return s_ctx.m_display; } - bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType(WindowHandle _handle) + bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType() { - BX_UNUSED(_handle); return bgfx::NativeWindowHandleType::Default; }