ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
ZenitUI::Vertex2D Struct Reference

Interleaved 2D vertex passed to IRenderer::drawGeometry. More...

#include <CoreTypes.hpp>

Public Attributes

Vec2 pos {}
Vec2 uv {0.5f, 0.5f}
Color color {255, 255, 255, 255}

Detailed Description

Interleaved 2D vertex passed to IRenderer::drawGeometry.

Coordinates are in logical pixels. For untextured geometry, set uv to {0.5f, 0.5f} so backends binding a 1x1 white texture sample cleanly.


The documentation for this struct was generated from the following file: