ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
Backend.hpp File Reference

Unified host interface (IBackend) for backend-agnostic ZenitUI apps. More...

#include "UIContext.hpp"
#include <string>
#include <string_view>

Go to the source code of this file.

Classes

struct  ZenitUI::WindowConfig
 Backend-agnostic window and graphics-context creation parameters. More...
class  ZenitUI::IBackend
 Unified window, frame-loop, and subsystem host for interchangeable backends. More...

Detailed Description

Unified host interface (IBackend) for backend-agnostic ZenitUI apps.

Applications that want to switch between Raylib, SDL3, or custom backends without changing their main loop or asset loading can own an IBackend instance instead of calling library-specific window/context APIs directly.

Users integrating ZenitUI into an existing engine can still instantiate IPlatform, IRenderer, and IAssetProvider directly without IBackend.