GameDevTecnico / cubos

A still very barebones game engine focused on voxels and data-oriented programming
https://gamedevtecnico.github.io/cubos/
MIT License
80 stars 20 forks source link

1270 add UI images #1276

Open DiogoMendonc-a opened 1 week ago

DiogoMendonc-a commented 1 week ago

Description

Adds a Image asset that loads images from files using stb_image. Adds a UIImage component that uses an Image asset to store a Texture and draw it to screen. Adds a UINativeAspectRatio that changes an element's size to fit the native aspect ratio.

Checklist

github-actions[bot] commented 4 days ago

PR Preview Action v1.4.7 :---: :rocket: Deployed preview to https://GameDevTecnico.github.io/cubos/preview/pr-1276/ on branch gh-pages at 2024-07-07 15:13 UTC

codecov[bot] commented 1 day ago

Codecov Report

Attention: Patch coverage is 0% with 145 lines in your changes missing coverage. Please review.

Project coverage is 35.31%. Comparing base (ab6f330) to head (c7e57e1).

Files Patch % Lines
engine/src/ui/image/plugin.cpp 0.00% 68 Missing :warning:
engine/src/image/image.cpp 0.00% 26 Missing :warning:
engine/src/ui/canvas/plugin.cpp 0.00% 24 Missing :warning:
engine/src/image/plugin.cpp 0.00% 10 Missing :warning:
engine/src/image/bridge.cpp 0.00% 9 Missing :warning:
engine/src/ui/canvas/native_aspect_ratio.cpp 0.00% 4 Missing :warning:
engine/include/cubos/engine/image/bridge.hpp 0.00% 2 Missing :warning:
engine/src/ui/image/image.cpp 0.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1276 +/- ## ========================================== - Coverage 40.78% 35.31% -5.48% ========================================== Files 361 369 +8 Lines 26493 30603 +4110 ========================================== Hits 10806 10806 - Misses 15687 19797 +4110 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.