GameDevTecnico / cubos

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

Add split screen to new renderer #1155

Closed tomas7770 closed 4 months ago

tomas7770 commented 4 months ago

Description

Ports the splitscreen plugin to the new renderer. For each DrawsTo relation with a target that has a SplitScreen component, the plugin sets the viewport in the relation. Plugins which draw to the target should use this viewport.

Checklist

github-actions[bot] commented 4 months ago

PR Preview Action v1.4.7 :---: :rocket: Deployed preview to https://GameDevTecnico.github.io/cubos/docs-preview/pr-1155/ on branch gh-pages at 2024-05-05 10:41 UTC

codecov[bot] commented 4 months ago

Codecov Report

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

Project coverage is 39.45%. Comparing base (c68a5f2) to head (9e55fcd).

Files Patch % Lines
engine/src/render/split_screen/plugin.cpp 0.00% 40 Missing :warning:
engine/src/render/ssao/plugin.cpp 0.00% 22 Missing :warning:
engine/src/render/deferred_shading/plugin.cpp 0.00% 17 Missing :warning:
engine/src/render/g_buffer_rasterizer/plugin.cpp 0.00% 12 Missing :warning:
engine/src/render/camera/draws_to.cpp 0.00% 4 Missing :warning:
engine/src/render/split_screen/split_screen.cpp 0.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1155 +/- ## ========================================== - Coverage 39.57% 39.45% -0.13% ========================================== Files 346 348 +2 Lines 26130 26211 +81 ========================================== Hits 10342 10342 - Misses 15788 15869 +81 ```

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