You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if we use the demo helper with the flag SDL_RESIZABLE and then resize the window, the animation in not well drawn.
This seems to be because the function gl4dhInit() takes two arguments w and h used two creates two textures (for colors and depth).
There should be a way to resize those textures when resizing the window.
Thus, I would suggest to add the following function to gl4dhAnimeManager.c:
The textures should then be properly resized and fit the window.
Would you allow me to add this feature?
Would there be things to add before? (Like allowing the user to specify a resize function for each animation?)
Should we make sure the textures actually exist before trying to resize them?
The text was updated successfully, but these errors were encountered:
Gothor
changed the title
Resizing window in AnimeManager (demo helper) should resize textures
Resizing window with AnimeManager (demo helper) should resize textures
May 18, 2023
Hi!
Currently, if we use the demo helper with the flag SDL_RESIZABLE and then resize the window, the animation in not well drawn.
This seems to be because the function gl4dhInit() takes two arguments w and h used two creates two textures (for colors and depth).
There should be a way to resize those textures when resizing the window.
Thus, I would suggest to add the following function to gl4dhAnimeManager.c:
that could then be called the following way:
The textures should then be properly resized and fit the window.
Would you allow me to add this feature?
Would there be things to add before? (Like allowing the user to specify a resize function for each animation?)
Should we make sure the textures actually exist before trying to resize them?
The text was updated successfully, but these errors were encountered: