From 07a0ecd74325171243b5bb77bf34d77c7e881fd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Thu, 15 Aug 2019 08:11:34 -0700 Subject: [PATCH] Cleanup. --- examples/00-helloworld/helloworld.cpp | 11 ++++++++--- examples/01-cubes/cubes.cpp | 7 ++++++- examples/02-metaballs/metaballs.cpp | 11 ++++++++--- examples/03-raymarch/raymarch.cpp | 11 ++++++++--- examples/04-mesh/mesh.cpp | 11 ++++++++--- 5 files changed, 38 insertions(+), 13 deletions(-) diff --git a/examples/00-helloworld/helloworld.cpp b/examples/00-helloworld/helloworld.cpp index ed8f55917..b28d271f0 100644 --- a/examples/00-helloworld/helloworld.cpp +++ b/examples/00-helloworld/helloworld.cpp @@ -15,8 +15,8 @@ namespace class ExampleHelloWorld : public entry::AppI { public: - ExampleHelloWorld(const char* _name, const char* _description) - : entry::AppI(_name, _description) + ExampleHelloWorld(const char* _name, const char* _description, const char* _url) + : entry::AppI(_name, _description, _url) { } @@ -129,4 +129,9 @@ public: } // namespace -ENTRY_IMPLEMENT_MAIN(ExampleHelloWorld, "00-helloworld", "Initialization and debug text."); +ENTRY_IMPLEMENT_MAIN( + ExampleHelloWorld + , "00-helloworld" + , "Initialization and debug text." + , "https://bkaradzic.github.io/bgfx/examples.html#helloworld" + ); diff --git a/examples/01-cubes/cubes.cpp b/examples/01-cubes/cubes.cpp index 1373d44fa..33e87e130 100644 --- a/examples/01-cubes/cubes.cpp +++ b/examples/01-cubes/cubes.cpp @@ -362,4 +362,9 @@ public: } // namespace -ENTRY_IMPLEMENT_MAIN(ExampleCubes, "01-cubes", "Rendering simple static mesh.", "https://bkaradzic.github.io/bgfx/examples.html#cubes"); +ENTRY_IMPLEMENT_MAIN( + ExampleCubes + , "01-cubes" + , "Rendering simple static mesh." + , "https://bkaradzic.github.io/bgfx/examples.html#cubes" + ); diff --git a/examples/02-metaballs/metaballs.cpp b/examples/02-metaballs/metaballs.cpp index 2c3629e65..b5a9b032b 100644 --- a/examples/02-metaballs/metaballs.cpp +++ b/examples/02-metaballs/metaballs.cpp @@ -480,8 +480,8 @@ uint32_t triangulate(uint8_t* _result, uint32_t _stride, const float* __restrict class ExampleMetaballs : public entry::AppI { public: - ExampleMetaballs(const char* _name, const char* _description) - : entry::AppI(_name, _description) + ExampleMetaballs(const char* _name, const char* _description, const char* _url) + : entry::AppI(_name, _description, _url) { } @@ -795,4 +795,9 @@ public: } // namespace -ENTRY_IMPLEMENT_MAIN(ExampleMetaballs, "02-metaball", "Rendering with transient buffers and embedding shaders."); +ENTRY_IMPLEMENT_MAIN( + ExampleMetaballs + , "02-metaball" + , "Rendering with transient buffers and embedding shaders." + , "https://bkaradzic.github.io/bgfx/examples.html#metaballs" + ); diff --git a/examples/03-raymarch/raymarch.cpp b/examples/03-raymarch/raymarch.cpp index 0670e5b01..57e8642c0 100644 --- a/examples/03-raymarch/raymarch.cpp +++ b/examples/03-raymarch/raymarch.cpp @@ -102,8 +102,8 @@ void renderScreenSpaceQuad(uint8_t _view, bgfx::ProgramHandle _program, float _x class ExampleRaymarch : public entry::AppI { public: - ExampleRaymarch(const char* _name, const char* _description) - : entry::AppI(_name, _description) + ExampleRaymarch(const char* _name, const char* _description, const char* _url) + : entry::AppI(_name, _description, _url) { } @@ -264,4 +264,9 @@ public: } // namespace -ENTRY_IMPLEMENT_MAIN(ExampleRaymarch, "03-raymarch", "Updating shader uniforms."); +ENTRY_IMPLEMENT_MAIN( + ExampleRaymarch + , "03-raymarch" + , "Updating shader uniforms." + , "https://bkaradzic.github.io/bgfx/examples.html#raymarch" + ); diff --git a/examples/04-mesh/mesh.cpp b/examples/04-mesh/mesh.cpp index b30f9b76d..b836efbb3 100644 --- a/examples/04-mesh/mesh.cpp +++ b/examples/04-mesh/mesh.cpp @@ -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) { } @@ -152,4 +152,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" + );