TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
gui_default_graphics_context.h
Go to the documentation of this file.
1#pragma once
2
3// The graphics backends built in, made by the API they render with.
4
6
7#include <memory>
8#include <string_view>
9
10namespace tachyon
11{
15 std::unique_ptr<GraphicsContext> CreateGraphicsContext(GraphicsAPI api);
16
19 std::unique_ptr<GraphicsContext> CreateDefaultGraphicsContext();
20
24 std::string_view GraphicsAPIBuildOption(GraphicsAPI api);
25}
Definition gui_logging.h:24
std::unique_ptr< GraphicsContext > CreateDefaultGraphicsContext()
The default graphics backend, not yet initialized: Metal when it's built in (TACHYON_METAL,...
std::string_view GraphicsAPIBuildOption(GraphicsAPI api)
The build option that builds api's backend in: "TACHYON_VULKAN", "TACHYON_D3D12", "TACHYON_METAL",...
std::unique_ptr< GraphicsContext > CreateGraphicsContext(GraphicsAPI api)
A graphics backend for api, not yet initialized: GraphicsAPI::None is the null backend,...
GraphicsAPI
The graphics API a backend presents with; window backends create their windows to match (SDL: SDL_WIN...
Definition gui_graphics_api.h:14