Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OvGame not rendering properly #338

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

adriengivry
Copy link
Owner

@adriengivry adriengivry commented Nov 29, 2024

Description

OvGame isn't properly rendering the game since post-process effects have been added. It seems like drawing directly to the backbuffer isn't supported anymore, as the renderer relies on an output framebuffer.

This PR adds a framebuffer to OvGame, and implements a solution to blit the framebuffer onto the backbuffer.

Related Issues

Fixes #337
Fixes #331

@adriengivry adriengivry added Bug Something isn't working Graphics Graphical feature labels Nov 29, 2024
@adriengivry adriengivry self-assigned this Nov 29, 2024
@adriengivry adriengivry marked this pull request as draft November 29, 2024 16:48
@adriengivry adriengivry changed the title Fix OvGame not rendering properly [WIP] Fix OvGame not rendering properly Nov 29, 2024
@adriengivry adriengivry force-pushed the fix/ovgame_framebuffer branch from 918c639 to d215a76 Compare February 9, 2025 22:28
@adriengivry adriengivry changed the title [WIP] Fix OvGame not rendering properly Fix OvGame not rendering properly Feb 9, 2025
@adriengivry adriengivry marked this pull request as ready for review February 9, 2025 22:30
@adriengivry
Copy link
Owner Author

Ready for review! I ended up adding a BlitToBackBuffer method to the Framebuffer class to blit its content to the backbuffer.

@adriengivry adriengivry added the Critical Something that should be fixed quickly label Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Critical Something that should be fixed quickly Graphics Graphical feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OvGame isn't rendering properly OvGame runtime crash since renderer refactor
1 participant