Hi everyone !
I’ve just ported a SDL1.2 game using software surfaces to SDL2, and exclusively use SDL_Texture to have a huge speedup.
The last point is that the game offer the possibility to choose a smooth display filter (Scale2x and HQ4x). It was previously done with pixel manipulations since it was not a costly operation with SDL_Surface.
Now that we use SDL_Texture, I’ve heard that the only way to reliably do pixel manipulations is to use GLSL pixel shader.
I’m pretty new with modern display features, so I’ll ask some question before eating the documentation
-
Is it possible to apply a GL pixel shader on the SDL_Renderer directly, since I just want to modify the final result ?
-
If no, is there a way to apply it on each textures or should I let the possibility to still use SDL_Surface with all smoothed modes ?
-
Last question, but it’s not related to SDL so I might search by myself : if apply a shader on the renderer is possible, is that gonna work on mobile platform using GL ES too ?
Thanks to all readers, and I apologize for my bad English !