18#include "MockPlatform.hpp"
19#include "MockRenderer.hpp"
20#include "MockAssetProvider.hpp"
24namespace ZenitUI::Test
48 void frame(std::shared_ptr<Layout> root,
float dt = 1.0f / 60.0f);
49 void click(std::shared_ptr<Layout> root,
Vec2 pos);
64 float fixedDt{1.0f / 60.0f};
73 std::string_view
name()
const override;
Unified host interface (IBackend) for backend-agnostic ZenitUI apps.
Umbrella include for the whole framework.
Abstract name-based lookup and runtime lifecycle for textures and shaders.
Definition UIContext.hpp:449
Unified window, frame-loop, and subsystem host for interchangeable backends.
Definition Backend.hpp:49
Abstract 2D rendering backend.
Definition UIContext.hpp:106
In-memory IAssetProvider that mints synthetic texture and shader handles without touching the filesys...
Definition MockAssetProvider.hpp:23
Headless IBackend host wrapping MockPlatform, MockRenderer, and MockAssetProvider.
Definition MockBackend.hpp:59
std::string_view name() const override
Short human-readable backend identifier (e.g.
IAssetProvider & assets() override
Access the underlying asset provider.
void endDraw() override
Finish the frame and swap buffers.
IPlatform & platform() override
Access the underlying platform adapter.
bool init(const WindowConfig &config) override
Create the window and graphics context, and bind subsystems to UIContext.
IRenderer & renderer() override
Access the underlying renderer adapter.
void shutdown() override
Release pooled targets, unbind UIContext, and tear down the window/context.
bool pollFrame() override
Pump OS events for the next frame; returns false when the window should close.
float deltaTime() const override
Return the elapsed time in seconds since the previous pollFrame().
void beginDraw(Color clearColor) override
Begin presenting a frame and clear the main framebuffer to clearColor.
Recording IRenderer that tracks draw counts, clip stacks, render targets, dynamic textures,...
Definition MockRenderer.hpp:24
8-bit-per-channel RGBA color, non-premultiplied.
Definition CoreTypes.hpp:78
Per-instance UI context: backends, theme, text engine, frame state, and routing.
Definition UIContext.hpp:725
2D vector with component-wise arithmetic.
Definition CoreTypes.hpp:25
Backend-agnostic window and graphics-context creation parameters.
Definition Backend.hpp:31