diff --git a/RecastDemo/Include/Sample.h b/RecastDemo/Include/Sample.h index edb750ec..53d17b27 100644 --- a/RecastDemo/Include/Sample.h +++ b/RecastDemo/Include/Sample.h @@ -169,7 +169,7 @@ public: virtual void drawDebugUI(); virtual void onClick(const float* rayStartPos, const float* rayHitPos, bool shift); - virtual void handleToggle(); + virtual void onToggle(); virtual void singleStep(); virtual void render(); virtual void renderOverlay(double* proj, double* model, int* view); diff --git a/RecastDemo/Source/Sample.cpp b/RecastDemo/Source/Sample.cpp index f6277b89..601eb828 100644 --- a/RecastDemo/Source/Sample.cpp +++ b/RecastDemo/Source/Sample.cpp @@ -270,7 +270,7 @@ void Sample::onClick(const float* rayStartPos, const float* rayHitPos, bool shif } } -void Sample::handleToggle() +void Sample::onToggle() { if (tool) { diff --git a/RecastDemo/Source/main.cpp b/RecastDemo/Source/main.cpp index c90f7c88..d5c97ae0 100644 --- a/RecastDemo/Source/main.cpp +++ b/RecastDemo/Source/main.cpp @@ -304,7 +304,7 @@ int main(int /*argc*/, char** /*argv*/) case SDLK_SPACE: if (app.sample) { - app.sample->handleToggle(); + app.sample->onToggle(); } break; case SDLK_1: