diff --git a/RecastDemo/Include/Sample.h b/RecastDemo/Include/Sample.h index 4b39f2e9..de084dea 100644 --- a/RecastDemo/Include/Sample.h +++ b/RecastDemo/Include/Sample.h @@ -170,7 +170,7 @@ public: virtual void handleClick(const float* rayStartPos, const float* rayHitPos, bool shift); virtual void handleToggle(); virtual void handleStep(); - virtual void handleRender(); + virtual void render(); virtual void handleRenderOverlay(double* proj, double* model, int* view); virtual void handleMeshChanged(InputGeom* geom); virtual bool handleBuild(); diff --git a/RecastDemo/Include/Sample_SoloMesh.h b/RecastDemo/Include/Sample_SoloMesh.h index e2c52d93..40776b3f 100644 --- a/RecastDemo/Include/Sample_SoloMesh.h +++ b/RecastDemo/Include/Sample_SoloMesh.h @@ -74,7 +74,7 @@ public: void handleTools() override; void handleDebugMode() override; - void handleRender() override; + void render() override; void handleRenderOverlay(double* proj, double* model, int* view) override; void handleMeshChanged(InputGeom* geom) override; bool handleBuild() override; diff --git a/RecastDemo/Include/Sample_TempObstacles.h b/RecastDemo/Include/Sample_TempObstacles.h index dc361197..093f8aa3 100644 --- a/RecastDemo/Include/Sample_TempObstacles.h +++ b/RecastDemo/Include/Sample_TempObstacles.h @@ -71,7 +71,7 @@ public: void handleSettings() override; void handleTools() override; void handleDebugMode() override; - void handleRender() override; + void render() override; void handleRenderOverlay(double* proj, double* model, int* view) override; void handleMeshChanged(InputGeom* geom) override; bool handleBuild() override; diff --git a/RecastDemo/Include/Sample_TileMesh.h b/RecastDemo/Include/Sample_TileMesh.h index 62c9e9f0..5586bebf 100644 --- a/RecastDemo/Include/Sample_TileMesh.h +++ b/RecastDemo/Include/Sample_TileMesh.h @@ -91,7 +91,7 @@ public: void handleSettings() override; void handleTools() override; void handleDebugMode() override; - void handleRender() override; + void render() override; void handleRenderOverlay(double* proj, double* model, int* view) override; void handleMeshChanged(InputGeom* geom) override; bool handleBuild() override; diff --git a/RecastDemo/Source/Sample.cpp b/RecastDemo/Source/Sample.cpp index f079cb3d..3b2452cb 100644 --- a/RecastDemo/Source/Sample.cpp +++ b/RecastDemo/Source/Sample.cpp @@ -120,7 +120,7 @@ void Sample::handleTools() {} void Sample::handleDebugMode() {} -void Sample::handleRender() +void Sample::render() { if (!inputGeometry) { diff --git a/RecastDemo/Source/Sample_SoloMesh.cpp b/RecastDemo/Source/Sample_SoloMesh.cpp index f78c15a6..72994a57 100644 --- a/RecastDemo/Source/Sample_SoloMesh.cpp +++ b/RecastDemo/Source/Sample_SoloMesh.cpp @@ -184,7 +184,7 @@ void Sample_SoloMesh::handleDebugMode() } } -void Sample_SoloMesh::handleRender() +void Sample_SoloMesh::render() { if (!inputGeometry) { diff --git a/RecastDemo/Source/Sample_TempObstacles.cpp b/RecastDemo/Source/Sample_TempObstacles.cpp index 5c54118d..75517a42 100644 --- a/RecastDemo/Source/Sample_TempObstacles.cpp +++ b/RecastDemo/Source/Sample_TempObstacles.cpp @@ -1109,7 +1109,7 @@ void Sample_TempObstacles::handleDebugMode() } } -void Sample_TempObstacles::handleRender() +void Sample_TempObstacles::render() { if (!inputGeometry || inputGeometry->getVertCount() == 0) { diff --git a/RecastDemo/Source/Sample_TileMesh.cpp b/RecastDemo/Source/Sample_TileMesh.cpp index 77464fdd..8009d0cd 100644 --- a/RecastDemo/Source/Sample_TileMesh.cpp +++ b/RecastDemo/Source/Sample_TileMesh.cpp @@ -360,7 +360,7 @@ void Sample_TileMesh::handleDebugMode() } } -void Sample_TileMesh::handleRender() +void Sample_TileMesh::render() { if (!inputGeometry || inputGeometry->getVertCount() == 0) { diff --git a/RecastDemo/Source/main.cpp b/RecastDemo/Source/main.cpp index b7645234..a2bee773 100644 --- a/RecastDemo/Source/main.cpp +++ b/RecastDemo/Source/main.cpp @@ -514,7 +514,7 @@ int main(int /*argc*/, char** /*argv*/) app.rayEnd[1] = (float)y; app.rayEnd[2] = (float)z; - // Handle keyboard movement. + // Keyboard movement. const Uint8* keystate = SDL_GetKeyboardState(NULL); app.moveFront = rcClamp( app.moveFront + dt * 4 * ((keystate[SDL_SCANCODE_W] || keystate[SDL_SCANCODE_UP]) ? 1.0f : -1.0f), @@ -565,7 +565,7 @@ int main(int /*argc*/, char** /*argv*/) glEnable(GL_FOG); if (app.sample) { - app.sample->handleRender(); + app.sample->render(); } if (app.testCase) {