TachyonUI
1.1.0
High-performance UI for building tools.
Toggle main menu visibility
Loading...
Searching...
No Matches
gui_layered_window.h
Go to the documentation of this file.
1
#pragma once
2
3
// Library internal: a layered window (WS_EX_LAYERED, Windows) shows a picture given to it rather
4
// than a GPU surface. The graphics backends draw a transparent window offscreen, read it back,
5
// and hand it over here. Elsewhere no window is layered and these do nothing.
6
7
#include <
gui_core/gui_base_types.h
>
8
9
#include <cstdint>
10
#include <span>
11
12
namespace
tachyon
13
{
16
bool
IsLayeredWindow
(
void
* nativeWindow);
17
20
void
ShowLayeredPixels
(
void
* nativeWindow, std::span<const uint8_t> bgra,
uint2
size);
21
}
gui_base_types.h
tachyon
Definition
gui_logging.h:24
tachyon::IsLayeredWindow
bool IsLayeredWindow(void *nativeWindow)
Whether the native window is layered: it gets no swapchain, and shows what ShowLayeredPixels gives it...
tachyon::ShowLayeredPixels
void ShowLayeredPixels(void *nativeWindow, std::span< const uint8_t > bgra, uint2 size)
Shows bgra (size pixels, BGRA8, premultiplied alpha) in the layered window.
tachyon::uint2
Definition
gui_base_types.h:74
gui_core
windows
gui_layered_window.h
Generated by
1.18.0