Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What should I use to replace SDL_Flip?

Tags:

graphics

sdl

d

I have a graphics engine in development, and I can't test it because there's no example on how to display an SDL_Surface on a window in SDL2, and there's no older SDL libraries to D. I can use examples from C++ too, but even with a lot of searching on he internet I only could find tutorials for SDL 1.2.


1 Answers

SDL_RenderPresent replaced SDL_Flip in SDL 2.

See the SDL 1.2 to 2.0 Migration Guide for more information.

like image 139
Vladimir Panteleev Avatar answered Oct 23 '25 01:10

Vladimir Panteleev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!