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

Data-only minimap widget for the VS graph editor (Phase 7). More...

#include <vector>
+ Include dependency graph for MinimapWidget.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Olympe::MinimapNode
 A single node represented in the minimap. More...
 
struct  Olympe::MinimapViewport
 Normalised rectangle [0..1] representing the visible portion of the graph. More...
 
class  Olympe::MinimapWidget
 Singleton that maintains normalised minimap state. More...
 

Namespaces

namespace  Olympe
 < Provides AssetID and INVALID_ASSET_ID
 

Detailed Description

Data-only minimap widget for the VS graph editor (Phase 7).

Author
Olympe Engine
Date
2026-03-10

MinimapWidget converts absolute graph-space positions into normalised 0..1 coordinates suitable for rendering a miniature overview of the canvas. It also tracks the visible viewport rectangle and handles drag events.

No ImGui dependency — the UI layer calls UpdateNodes(), UpdateViewport(), and GetMinimapNodes() each frame and renders the result using whatever draw calls it likes.

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

Definition in file MinimapWidget.h.