Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Classes | Namespaces
GridSnapping.h File Reference

Grid-snapping helper for the VS graph canvas (Phase 7). More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Olympe::GridSnapping
 Singleton grid-snapping helper. More...
 

Namespaces

namespace  Olympe
 < Provides AssetID and INVALID_ASSET_ID
 

Detailed Description

Grid-snapping helper for the VS graph canvas (Phase 7).

Author
Olympe Engine
Date
2026-03-10

GridSnapping is a lightweight singleton that aligns node positions to a configurable grid. When disabled, Snap() / SnapX() / SnapY() return the input value unchanged so callers need no extra branch.

C++14 compliant — no std::optional, structured bindings, std::filesystem.

Definition in file GridSnapping.h.