diff options
Diffstat (limited to '3rdparty/bgfx/examples/04-mesh')
-rw-r--r-- | 3rdparty/bgfx/examples/04-mesh/fs_mesh.sc | 4 | ||||
-rw-r--r-- | 3rdparty/bgfx/examples/04-mesh/makefile | 4 | ||||
-rw-r--r-- | 3rdparty/bgfx/examples/04-mesh/mesh.cpp | 18 | ||||
-rw-r--r-- | 3rdparty/bgfx/examples/04-mesh/vs_mesh.sc | 4 |
4 files changed, 19 insertions, 11 deletions
diff --git a/3rdparty/bgfx/examples/04-mesh/fs_mesh.sc b/3rdparty/bgfx/examples/04-mesh/fs_mesh.sc index a2d95b99847..93991561e14 100644 --- a/3rdparty/bgfx/examples/04-mesh/fs_mesh.sc +++ b/3rdparty/bgfx/examples/04-mesh/fs_mesh.sc @@ -1,8 +1,8 @@ $input v_pos, v_view, v_normal, v_color0 /* - * Copyright 2011-2018 Branimir Karadzic. All rights reserved. - * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause + * Copyright 2011-2022 Branimir Karadzic. All rights reserved. + * License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE */ #include "../common/common.sh" diff --git a/3rdparty/bgfx/examples/04-mesh/makefile b/3rdparty/bgfx/examples/04-mesh/makefile index 171709170a4..19c81e43692 100644 --- a/3rdparty/bgfx/examples/04-mesh/makefile +++ b/3rdparty/bgfx/examples/04-mesh/makefile @@ -1,6 +1,6 @@ # -# Copyright 2011-2018 Branimir Karadzic. All rights reserved. -# License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause +# Copyright 2011-2022 Branimir Karadzic. All rights reserved. +# License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE # BGFX_DIR=../.. diff --git a/3rdparty/bgfx/examples/04-mesh/mesh.cpp b/3rdparty/bgfx/examples/04-mesh/mesh.cpp index 06896ef0208..3457a9f2f49 100644 --- a/3rdparty/bgfx/examples/04-mesh/mesh.cpp +++ b/3rdparty/bgfx/examples/04-mesh/mesh.cpp @@ -1,6 +1,6 @@ /* - * Copyright 2011-2018 Branimir Karadzic. All rights reserved. - * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause + * Copyright 2011-2022 Branimir Karadzic. All rights reserved. + * License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE */ #include "common.h" @@ -13,8 +13,8 @@ namespace class ExampleMesh : public entry::AppI { public: - ExampleMesh(const char* _name, const char* _description) - : entry::AppI(_name, _description) + ExampleMesh(const char* _name, const char* _description, const char* _url) + : entry::AppI(_name, _description, _url) { } @@ -30,6 +30,9 @@ public: bgfx::Init init; init.type = args.m_type; 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.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; @@ -152,4 +155,9 @@ public: } // namespace -ENTRY_IMPLEMENT_MAIN(ExampleMesh, "04-mesh", "Loading meshes."); +ENTRY_IMPLEMENT_MAIN( + ExampleMesh + , "04-mesh" + , "Loading meshes." + , "https://bkaradzic.github.io/bgfx/examples.html#mesh" + ); diff --git a/3rdparty/bgfx/examples/04-mesh/vs_mesh.sc b/3rdparty/bgfx/examples/04-mesh/vs_mesh.sc index 95095d94fd1..8ca8dbf559c 100644 --- a/3rdparty/bgfx/examples/04-mesh/vs_mesh.sc +++ b/3rdparty/bgfx/examples/04-mesh/vs_mesh.sc @@ -2,8 +2,8 @@ $input a_position, a_normal $output v_pos, v_view, v_normal, v_color0 /* - * Copyright 2011-2018 Branimir Karadzic. All rights reserved. - * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause + * Copyright 2011-2022 Branimir Karadzic. All rights reserved. + * License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE */ #include "../common/common.sh" |