Closed DiogoMendonc-a closed 1 month ago
PR Preview Action v1.4.7
:---:
:rocket: Deployed preview to https://GameDevTecnico.github.io/cubos/docs-preview/pr-1189/
on branch gh-pages
at 2024-05-26 11:43 UTC
Attention: Patch coverage is 0%
with 143 lines
in your changes are missing coverage. Please review.
Project coverage is 40.37%. Comparing base (
1d9683b
) to head (81cb2f5
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Feel free to merge @DiogoMendonc-a! The CI is failing but it isn't your fault; lets hope it starts working on other PRs.
Description
The two main UI components are UIElement and UICanvas. For it to work properly, each UIElement must be a child of a UICanvas, or of another UIElement.
Each UIElement generates a list of drawing commands, UIDrawList, that are then pooled together by the UICanvas at the root of the hierarchy.
Each entry in a draw list contains a UIDrawList::Type and a UIDrawList::Command. The Type holds information that is common for all similar commands, and the Command contains the specifics to that one command. Each entry also has a raw data buffer to hold the data the command needs to pass to the shaders.
After aggregating the draw commands, the UICanvas draws them, grouped by type.
Checklist