Explorar el Código

Add url to examples

Leandro Freire hace 6 años
padre
commit
d7c70c49e3
Se han modificado 36 ficheros con 287 adiciones y 108 borrados
  1. 8 3
      examples/05-instancing/instancing.cpp
  2. 8 3
      examples/06-bump/bump.cpp
  3. 8 3
      examples/07-callback/callback.cpp
  4. 8 3
      examples/08-update/update.cpp
  5. 8 3
      examples/09-hdr/hdr.cpp
  6. 8 3
      examples/10-font/font.cpp
  7. 8 3
      examples/11-fontsdf/fontsdf.cpp
  8. 8 3
      examples/12-lod/lod.cpp
  9. 8 3
      examples/13-stencil/stencil.cpp
  10. 7 3
      examples/14-shadowvolumes/shadowvolumes.cpp
  11. 8 3
      examples/15-shadowmaps-simple/shadowmaps_simple.cpp
  12. 8 3
      examples/16-shadowmaps/shadowmaps.cpp
  13. 8 3
      examples/17-drawstress/drawstress.cpp
  14. 8 3
      examples/18-ibl/ibl.cpp
  15. 8 3
      examples/19-oit/oit.cpp
  16. 8 3
      examples/20-nanovg/nanovg.cpp
  17. 8 3
      examples/21-deferred/deferred.cpp
  18. 8 3
      examples/22-windows/windows.cpp
  19. 8 3
      examples/23-vectordisplay/main.cpp
  20. 8 3
      examples/24-nbody/nbody.cpp
  21. 8 3
      examples/26-occlusion/occlusion.cpp
  22. 8 3
      examples/27-terrain/terrain.cpp
  23. 8 3
      examples/28-wireframe/wireframe.cpp
  24. 8 3
      examples/29-debugdraw/debugdraw.cpp
  25. 8 3
      examples/30-picking/picking.cpp
  26. 8 3
      examples/31-rsm/reflectiveshadowmap.cpp
  27. 8 3
      examples/32-particles/particles.cpp
  28. 8 3
      examples/33-pom/pom.cpp
  29. 8 3
      examples/34-mvs/mvs.cpp
  30. 8 3
      examples/35-dynamic/dynamic.cpp
  31. 8 3
      examples/36-sky/sky.cpp
  32. 8 3
      examples/37-gpudrivenrendering/gpudrivenrendering.cpp
  33. 8 3
      examples/38-bloom/bloom.cpp
  34. 8 3
      examples/39-assao/assao.cpp
  35. 8 3
      examples/40-svt/svt.cpp
  36. 8 3
      examples/41-tess/tess.cpp

+ 8 - 3
examples/05-instancing/instancing.cpp

@@ -62,8 +62,8 @@ static const uint16_t s_cubeIndices[36] =
 class ExampleInstancing : public entry::AppI
 {
 public:
-	ExampleInstancing(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleInstancing(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -261,4 +261,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleInstancing, "05-instancing", "Geometry instancing.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleInstancing
+    , "05-instancing"
+    , "Geometry instancing."
+    , "https://bkaradzic.github.io/bgfx/examples.html#instancing"
+    );

+ 8 - 3
examples/06-bump/bump.cpp

@@ -85,8 +85,8 @@ static const uint16_t s_cubeIndices[36] =
 class ExampleBump : public entry::AppI
 {
 public:
-	ExampleBump(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleBump(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -370,4 +370,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleBump, "06-bump", "Loading textures.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleBump
+    , "06-bump"
+    , "Loading textures."
+    , "https://bkaradzic.github.io/bgfx/examples.html#bump"
+    );

+ 8 - 3
examples/07-callback/callback.cpp

@@ -307,8 +307,8 @@ private:
 class ExampleCallback : public entry::AppI
 {
 public:
-	ExampleCallback(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleCallback(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -498,4 +498,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleCallback, "07-callback", "Implementing application specific callbacks for taking screen shots, caching OpenGL binary shaders, and video capture.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleCallback
+    , "07-callback"
+    , "Implementing application specific callbacks for taking screen shots, caching OpenGL binary shaders, and video capture."
+    , "https://bkaradzic.github.io/bgfx/examples.html#callback"
+    );

+ 8 - 3
examples/08-update/update.cpp

@@ -145,8 +145,8 @@ static const uint32_t kTexture2dSize = 256;
 class ExampleUpdate : public entry::AppI
 {
 public:
-	ExampleUpdate(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleUpdate(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 		, m_cube(kTextureSide)
 	{
 	}
@@ -723,4 +723,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleUpdate, "08-update", "Updating textures.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleUpdate
+    , "08-update"
+    , "Updating textures."
+    , "https://bkaradzic.github.io/bgfx/examples.html#update"
+    );

+ 8 - 3
examples/09-hdr/hdr.cpp

@@ -140,8 +140,8 @@ void setOffsets4x4Lum(bgfx::UniformHandle _handle, uint32_t _width, uint32_t _he
 class ExampleHDR : public entry::AppI
 {
 public:
-	ExampleHDR(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleHDR(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -629,4 +629,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleHDR, "09-hdr", "Using multiple views with frame buffers, and view order remapping.");
+ENTRY_IMPLEMENT_MAIN(
+        ExampleHDR
+        , "09-hdr"
+        , "Using multiple views with frame buffers, and view order remapping."
+        , "https://bkaradzic.github.io/bgfx/examples.html#hdr"
+        );

+ 8 - 3
examples/10-font/font.cpp

@@ -54,8 +54,8 @@ static const char* s_fontFilePath[] =
 class ExampleFont : public entry::AppI
 {
 public:
-	ExampleFont(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleFont(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -329,4 +329,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleFont, "10-font", "Use the font system to display text and styled text.");
+ENTRY_IMPLEMENT_MAIN(
+        ExampleFont
+        , "10-font"
+        , "Use the font system to display text and styled text."
+        , "https://bkaradzic.github.io/bgfx/examples.html#font"
+        );

+ 8 - 3
examples/11-fontsdf/fontsdf.cpp

@@ -37,8 +37,8 @@ TrueTypeHandle loadTtf(FontManager* _fm, const char* _filePath)
 class ExampleFontSDF : public entry::AppI
 {
 public:
-	ExampleFontSDF(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleFontSDF(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -282,4 +282,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleFontSDF, "11-fontsdf", "Use a single distance field font to render text of various size.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleFontSDF
+    , "11-fontsdf"
+    , "Use a single distance field font to render text of various size."
+    , "https://bkaradzic.github.io/bgfx/examples.html#fontsdf"
+    );

+ 8 - 3
examples/12-lod/lod.cpp

@@ -29,8 +29,8 @@ static const KnightPos knightTour[8*4] =
 class ExampleLod : public entry::AppI
 {
 public:
-	ExampleLod(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleLod(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -311,4 +311,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleLod, "12-lod", "Mesh LOD transitions.");
+ENTRY_IMPLEMENT_MAIN(
+        ExampleLod
+        , "12-lod"
+        , "Mesh LOD transitions."
+        , "https://bkaradzic.github.io/bgfx/examples.html#lod"
+        );

+ 8 - 3
examples/13-stencil/stencil.cpp

@@ -789,8 +789,8 @@ struct Mesh
 class ExampleStencil : public entry::AppI
 {
 public:
-	ExampleStencil(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleStencil(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -1402,4 +1402,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleStencil, "13-stencil", "Stencil reflections and shadows.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleStencil
+    , "13-stencil"
+    , "Stencil reflections and shadows."
+    , "https://bkaradzic.github.io/bgfx/examples.html#stencil"
+    );

+ 7 - 3
examples/14-shadowvolumes/shadowvolumes.cpp

@@ -1760,8 +1760,8 @@ enum Scene
 class ExampleShadowVolumes : public entry::AppI
 {
 public:
-	ExampleShadowVolumes(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleShadowVolumes(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -2834,4 +2834,8 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleShadowVolumes, "14-shadowvolumes", "Shadow volumes.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleShadowVolumes
+    , "14-shadowvolumes"
+    , "Shadow volumes."
+    , "https://bkaradzic.github.io/bgfx/examples.html#shadowvolumes");

+ 8 - 3
examples/15-shadowmaps-simple/shadowmaps_simple.cpp

@@ -61,8 +61,8 @@ static const uint16_t s_planeIndices[] =
 class ExampleShadowmapsSimple : public entry::AppI
 {
 public:
-	ExampleShadowmapsSimple(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleShadowmapsSimple(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -505,4 +505,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleShadowmapsSimple, "15-shadowmaps-simple", "Shadow maps example");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleShadowmapsSimple
+    , "15-shadowmaps-simple"
+    , "Shadow maps example"
+    , "https://bkaradzic.github.io/bgfx/examples.html#shadowmaps-simple"
+    );

+ 8 - 3
examples/16-shadowmaps/shadowmaps.cpp

@@ -1284,8 +1284,8 @@ struct SceneSettings
 class ExampleShadowmaps : public entry::AppI
 {
 public:
-	ExampleShadowmaps(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleShadowmaps(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -3251,4 +3251,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleShadowmaps, "16-shadowmaps", "Shadow maps example.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleShadowmaps
+    , "16-shadowmaps"
+    , "Shadow maps example."
+    , "https://bkaradzic.github.io/bgfx/examples.html#shadowmaps"
+    );

+ 8 - 3
examples/17-drawstress/drawstress.cpp

@@ -100,8 +100,8 @@ int32_t threadFunc(bx::Thread* _thread, void* _userData);
 class ExampleDrawStress : public entry::AppI
 {
 public:
-	ExampleDrawStress(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleDrawStress(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -459,4 +459,9 @@ int32_t threadFunc(bx::Thread* _thread, void* _userData)
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleDrawStress, "17-drawstress", "Draw stress, maximizing number of draw calls.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleDrawStress
+    , "17-drawstress"
+    , "Draw stress, maximizing number of draw calls."
+    , "https://bkaradzic.github.io/bgfx/examples.html#drawstress"
+    );

+ 8 - 3
examples/18-ibl/ibl.cpp

@@ -398,8 +398,8 @@ struct Settings
 class ExampleIbl : public entry::AppI
 {
 public:
-	ExampleIbl(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleIbl(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -832,4 +832,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleIbl, "18-ibl", "Image-based lighting.");
+ENTRY_IMPLEMENT_MAIN(
+        ExampleIbl
+        , "18-ibl"
+        , "Image-based lighting."
+        , "https://bkaradzic.github.io/bgfx/examples.html#ibl"
+        );

+ 8 - 3
examples/19-oit/oit.cpp

@@ -152,8 +152,8 @@ void screenSpaceQuad(float _textureWidth, float _textureHeight, bool _originBott
 class ExampleOIT : public entry::AppI
 {
 public:
-	ExampleOIT(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleOIT(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -550,4 +550,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleOIT, "19-oit", "Weighted, Blended Order Independent Transparency.");
+ENTRY_IMPLEMENT_MAIN(
+        ExampleOIT
+        , "19-oit"
+        , "Weighted, Blended Order Independent Transparency."
+        , "https://bkaradzic.github.io/bgfx/examples.html#oit"
+        );

+ 8 - 3
examples/20-nanovg/nanovg.cpp

@@ -1385,8 +1385,8 @@ void renderDemo(struct NVGcontext* vg, float mx, float my, float width, float he
 class ExampleNanoVG : public entry::AppI
 {
 public:
-	ExampleNanoVG(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleNanoVG(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -1505,4 +1505,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleNanoVG, "20-nanovg", "NanoVG is small antialiased vector graphics rendering library.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleNanoVG
+    , "20-nanovg"
+    , "NanoVG is small antialiased vector graphics rendering library."
+    , "https://bkaradzic.github.io/bgfx/examples.html#nanovg"
+    );

+ 8 - 3
examples/21-deferred/deferred.cpp

@@ -193,8 +193,8 @@ void screenSpaceQuad(float _textureWidth, float _textureHeight, float _texelHalf
 class ExampleDeferred : public entry::AppI
 {
 public:
-	ExampleDeferred(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleDeferred(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -895,4 +895,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleDeferred, "21-deferred", "MRT rendering and deferred shading.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleDeferred
+    , "21-deferred"
+    , "MRT rendering and deferred shading."
+    , "https://bkaradzic.github.io/bgfx/examples.html#deferred"
+    );

+ 8 - 3
examples/22-windows/windows.cpp

@@ -69,8 +69,8 @@ static const uint16_t s_cubeIndices[36] =
 class ExampleWindows : public entry::AppI
 {
 public:
-	ExampleWindows(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleWindows(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -378,7 +378,12 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleWindows, "22-windows", "Rendering into multiple windows.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleWindows
+    , "22-windows"
+    , "Rendering into multiple windows."
+    , "https://bkaradzic.github.io/bgfx/examples.html#windows"
+    );
 
 void cmdCreateWindow(const void* _userData)
 {

+ 8 - 3
examples/23-vectordisplay/main.cpp

@@ -37,8 +37,8 @@ bgfx::VertexLayout PosColorVertex::ms_layout;
 class ExampleVectorDisplay : public entry::AppI
 {
 public:
-	ExampleVectorDisplay(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleVectorDisplay(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -218,4 +218,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleVectorDisplay, "23-vectordisplay", "Rendering lines as oldschool vectors.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleVectorDisplay
+    , "23-vectordisplay"
+    , "Rendering lines as oldschool vectors."
+    , "https://bkaradzic.github.io/bgfx/examples.html#vectordisplay"
+    );

+ 8 - 3
examples/24-nbody/nbody.cpp

@@ -113,8 +113,8 @@ const uint32_t kMaxParticleCount      = 32 * 1024;
 class ExampleNbody : public entry::AppI
 {
 public:
-	ExampleNbody(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleNbody(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -458,4 +458,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleNbody, "24-nbody", "N-body simulation with compute shaders using buffers.");
+ENTRY_IMPLEMENT_MAIN(
+        ExampleNbody
+        , "24-nbody"
+        , "N-body simulation with compute shaders using buffers."
+        , "https://bkaradzic.github.io/bgfx/examples.html#nbody"
+        );

+ 8 - 3
examples/26-occlusion/occlusion.cpp

@@ -65,8 +65,8 @@ static const uint16_t s_cubeIndices[36] =
 class ExampleOcclusion : public entry::AppI
 {
 public:
-	ExampleOcclusion(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleOcclusion(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -311,4 +311,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleOcclusion, "26-occlusion", "Using occlusion query for conditional rendering.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleOcclusion
+    , "26-occlusion"
+    , "Using occlusion query for conditional rendering."
+    , "https://bkaradzic.github.io/bgfx/examples.html#occlusion"
+    );

+ 8 - 3
examples/27-terrain/terrain.cpp

@@ -62,8 +62,8 @@ struct BrushData
 class ExampleTerrain : public entry::AppI
 {
 public:
-	ExampleTerrain(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleTerrain(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -522,4 +522,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleTerrain, "27-terrain", "Terrain painting example.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleTerrain
+    , "27-terrain"
+    , "Terrain painting example."
+    , "https://bkaradzic.github.io/bgfx/examples.html#terrain"
+    );

+ 8 - 3
examples/28-wireframe/wireframe.cpp

@@ -271,8 +271,8 @@ struct Uniforms
 class ExampleWireframe : public entry::AppI
 {
 public:
-	ExampleWireframe(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleWireframe(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -521,4 +521,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleWireframe, "28-wirefame", "Drawing wireframe mesh.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleWireframe
+    , "28-wirefame"
+    , "Drawing wireframe mesh."
+    , "https://bkaradzic.github.io/bgfx/examples.html#wireframe"
+    );

+ 8 - 3
examples/29-debugdraw/debugdraw.cpp

@@ -761,8 +761,8 @@ void imageCheckerboard(void* _dst, uint32_t _width, uint32_t _height, uint32_t _
 class ExampleDebugDraw : public entry::AppI
 {
 public:
-	ExampleDebugDraw(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleDebugDraw(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -1224,4 +1224,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleDebugDraw, "29-debugdraw", "Debug draw.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleDebugDraw
+    , "29-debugdraw"
+    , "Debug draw."
+    , "https://bkaradzic.github.io/bgfx/examples.html#debugdraw"
+    );

+ 8 - 3
examples/30-picking/picking.cpp

@@ -21,8 +21,8 @@ namespace
 class ExamplePicking : public entry::AppI
 {
 public:
-	ExamplePicking(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExamplePicking(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -442,4 +442,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExamplePicking, "30-picking", "Mouse picking via GPU texture readback.");
+ENTRY_IMPLEMENT_MAIN(
+    ExamplePicking
+    , "30-picking"
+    , "Mouse picking via GPU texture readback."
+    , "https://bkaradzic.github.io/bgfx/examples.html#picking"
+    );

+ 8 - 3
examples/31-rsm/reflectiveshadowmap.cpp

@@ -186,8 +186,8 @@ void screenSpaceQuad(float _textureWidth, float _textureHeight, float _texelHalf
 class ExampleRSM : public entry::AppI
 {
 public:
-	ExampleRSM(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleRSM(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 		, m_reading(0)
 		, m_currFrame(UINT32_MAX)
 		, m_cameraSpin(false)
@@ -758,4 +758,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleRSM, "31-rsm", "Global Illumination with Reflective Shadow Map.");
+ENTRY_IMPLEMENT_MAIN(
+        ExampleRSM
+        , "31-rsm"
+        , "Global Illumination with Reflective Shadow Map."
+        , "https://bkaradzic.github.io/bgfx/examples.html#rsm"
+        );

+ 8 - 3
examples/32-particles/particles.cpp

@@ -229,8 +229,8 @@ struct Emitter
 class ExampleParticles : public entry::AppI
 {
 public:
-	ExampleParticles(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleParticles(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -452,4 +452,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleParticles, "32-particles", "Particles.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleParticles
+    , "32-particles"
+    , "Particles."
+    , "https://bkaradzic.github.io/bgfx/examples.html#particles"
+    );

+ 8 - 3
examples/33-pom/pom.cpp

@@ -111,8 +111,8 @@ static const uint16_t s_cubeIndices[36] =
 class ExamplePom : public entry::AppI
 {
 public:
-	ExamplePom(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExamplePom(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -385,4 +385,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExamplePom, "33-pom", "Parallax mapping.");
+ENTRY_IMPLEMENT_MAIN(
+        ExamplePom
+        , "33-pom"
+        , "Parallax mapping."
+        , "https://bkaradzic.github.io/bgfx/examples.html#pom"
+        );

+ 8 - 3
examples/34-mvs/mvs.cpp

@@ -105,8 +105,8 @@ static const uint16_t s_cubeTriStrip[] =
 class ExampleMvs : public entry::AppI
 {
 public:
-	ExampleMvs(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleMvs(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -281,4 +281,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleMvs, "34-mvs", "Multiple vertex streams.");
+ENTRY_IMPLEMENT_MAIN(
+        ExampleMvs
+        , "34-mvs"
+        , "Multiple vertex streams."
+        , "https://bkaradzic.github.io/bgfx/examples.html#mvs"
+        );

+ 8 - 3
examples/35-dynamic/dynamic.cpp

@@ -83,8 +83,8 @@ static const uint16_t s_cubeTriStrip[] =
 class ExampleDynamic : public entry::AppI
 {
 public:
-	ExampleDynamic(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleDynamic(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -282,4 +282,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleDynamic, "35-dynamic", "Dynamic buffers update.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleDynamic
+    , "35-dynamic"
+    , "Dynamic buffers update."
+    , "https://bkaradzic.github.io/bgfx/examples.html#dynamic"
+    );

+ 8 - 3
examples/36-sky/sky.cpp

@@ -400,8 +400,8 @@ namespace
 	class ExampleProceduralSky : public entry::AppI
 	{
 	public:
-		ExampleProceduralSky(const char* _name, const char* _description)
-			: entry::AppI(_name, _description)
+        ExampleProceduralSky(const char* _name, const char* _description, const char* _url)
+            : entry::AppI(_name, _description, _url)
 		{
 		}
 
@@ -661,4 +661,9 @@ namespace
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleProceduralSky, "36-sky", "Perez dynamic sky model.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleProceduralSky
+    , "36-sky"
+    , "Perez dynamic sky model."
+    , "https://bkaradzic.github.io/bgfx/examples.html#sky"
+    );

+ 8 - 3
examples/37-gpudrivenrendering/gpudrivenrendering.cpp

@@ -306,8 +306,8 @@ float rand01()
 class GPUDrivenRendering : public entry::AppI
 {
 public:
-	GPUDrivenRendering(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    GPUDrivenRendering(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -1143,4 +1143,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(GPUDrivenRendering, "37-gpudrivenrendering", "GPU-Driven Rendering.");
+ENTRY_IMPLEMENT_MAIN(
+    GPUDrivenRendering
+    , "37-gpudrivenrendering"
+    , "GPU-Driven Rendering."
+    , "https://bkaradzic.github.io/bgfx/examples.html#gpudrivenrendering"
+    );

+ 8 - 3
examples/38-bloom/bloom.cpp

@@ -182,8 +182,8 @@ void screenSpaceQuad(float _textureWidth, float _textureHeight, float _texelHalf
 class ExampleDeferred : public entry::AppI
 {
 public:
-	ExampleDeferred(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleDeferred(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -658,4 +658,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleDeferred, "38-bloom", "Bloom.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleDeferred
+    , "38-bloom"
+    , "Bloom."
+    , "https://bkaradzic.github.io/bgfx/examples.html#bloom"
+    );

+ 8 - 3
examples/39-assao/assao.cpp

@@ -247,8 +247,8 @@ namespace
 	class ExampleASSAO : public entry::AppI
 	{
 	public:
-		ExampleASSAO(const char* _name, const char* _description)
-			: entry::AppI(_name, _description)
+        ExampleASSAO(const char* _name, const char* _description, const char* _url)
+            : entry::AppI(_name, _description, _url)
 			, m_currFrame(UINT32_MAX)
 			, m_enableSSAO(true)
 			, m_enableTexturing(true)
@@ -1200,6 +1200,11 @@ namespace
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleASSAO, "39-assao", "Adaptive Screen Space Ambient Occlusion.");
+ENTRY_IMPLEMENT_MAIN(
+        ExampleASSAO
+        , "39-assao"
+        , "Adaptive Screen Space Ambient Occlusion."
+        , "https://bkaradzic.github.io/bgfx/examples.html#assao"
+        );
 
 

+ 8 - 3
examples/40-svt/svt.cpp

@@ -64,8 +64,8 @@ static const uint16_t s_planeIndices[] =
 class ExampleSVT : public entry::AppI
 {
 public:
-	ExampleSVT(const char* _name, const char* _description)
-		: entry::AppI(_name, _description)
+    ExampleSVT(const char* _name, const char* _description, const char* _url)
+        : entry::AppI(_name, _description, _url)
 	{
 	}
 
@@ -372,4 +372,9 @@ public:
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleSVT, "40-svt", "Sparse Virtual Textures.");
+ENTRY_IMPLEMENT_MAIN(
+        ExampleSVT
+        , "40-svt"
+        , "Sparse Virtual Textures."
+        , "https://bkaradzic.github.io/bgfx/examples.html#svt"
+        );

+ 8 - 3
examples/41-tess/tess.cpp

@@ -320,8 +320,8 @@ namespace
 	class ExampleTessellation : public entry::AppI
 	{
 	public:
-		ExampleTessellation(const char* _name, const char* _description)
-			: entry::AppI(_name, _description)
+        ExampleTessellation(const char* _name, const char* _description, const char* _url)
+            : entry::AppI(_name, _description, _url)
 		{
 		}
 
@@ -925,4 +925,9 @@ namespace
 
 } // namespace
 
-ENTRY_IMPLEMENT_MAIN(ExampleTessellation, "41-tess", "Adaptive Gpu Tessellation.");
+ENTRY_IMPLEMENT_MAIN(
+    ExampleTessellation
+    , "41-tess"
+    , "Adaptive Gpu Tessellation."
+    , "https://bkaradzic.github.io/bgfx/examples.html#tess"
+    );