From a5f79320a5b468ac5ffd47faaa886cf803801991 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: Sat, 30 May 2020 11:12:10 -0700 Subject: [PATCH] Cleanup. --- examples/41-tess/tess.cpp | 2 +- examples/42-bunnylod/bunnylod.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/41-tess/tess.cpp b/examples/41-tess/tess.cpp index 56fdac9fb..52a49c502 100644 --- a/examples/41-tess/tess.cpp +++ b/examples/41-tess/tess.cpp @@ -928,6 +928,6 @@ namespace ENTRY_IMPLEMENT_MAIN( ExampleTessellation , "41-tess" - , "Adaptive Gpu Tessellation." + , "Adaptive GPU Tessellation." , "https://bkaradzic.github.io/bgfx/examples.html#tess" ); diff --git a/examples/42-bunnylod/bunnylod.cpp b/examples/42-bunnylod/bunnylod.cpp index f91d3ed7d..4b3de5175 100644 --- a/examples/42-bunnylod/bunnylod.cpp +++ b/examples/42-bunnylod/bunnylod.cpp @@ -40,14 +40,14 @@ public: // It will takes long time if there are too many vertices. ProgressiveMesh(vertices, stride, (const float *)(vb->data + offset), triangles, (const int *)ib->data, m_map, permutation); - // rearrange the vertex Array + // rearrange the vertex Array char * temp = (char *)Alloc(vertices * stride); bx::memCopy(temp, vb->data, vb->size); for (i = 0; idata + permutation[i] * stride , temp + i * stride, stride); } Free(temp); - + // update the changes in the entries in the triangle Array for (i = 0; idata + i * sizeof(uint32_t)); @@ -145,7 +145,7 @@ public: m_vb = bgfx::createVertexBuffer(vb, mesh->m_layout); m_ib = bgfx::createDynamicIndexBuffer(ib, BGFX_BUFFER_INDEX32); - + m_numVertices = vertices; m_numTriangles = indices/3; m_totalVertices = m_numVertices; @@ -377,6 +377,6 @@ public: ENTRY_IMPLEMENT_MAIN( ExampleBunnyLOD , "42-bunnylod" - , "Bunny LOD" + , "Progressive Mesh LOD" , "https://bkaradzic.github.io/bgfx/examples.html#bunnylod" );