-
-
Notifications
You must be signed in to change notification settings - Fork 683
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
ebiten: expose the default implementation of FinalScreenDrawer #3139
Comments
Makes sense. |
Thanks for adding the feature! Line 145 in 366f489
|
This was typo. Thanks! |
The type of first argument of DefaultDrawFinalScreen I want to call DefaultDrawFinalScreen from my own FinalScreenDrawer.DrawFinalScreen, so I think it would save me the trouble of casting FinalScreen to *Image or preparing an *Image of the same size as FinalScreen. |
Oh that's true... Let me fix this |
Fixed! |
Operating System
What feature would you like to be added?
I may want to call the following code in DrawFinalScreen that I have implemented in my Game.
https://github.com/hajimehoshi/ebiten/blob/v2.8.1/gameforui.go#L139-L155
I would like this code to be a function and be able to call it like
ebiten.DrawFinalScreenDefault(screen, offscreen, geoM)
.Why is this needed?
Whether or not a filter is applied when drawing a game depends on the situation. For example, I may want to draw the Ebitengine splash screen unfiltered when the game starts up, and apply the CRT filter on the title screen and beyond.
Now Ebitengine does not allow me to call the default behavior if Game implements FinalScreenDrawer.
The text was updated successfully, but these errors were encountered: