SDL/src/render
Andreas M?ller 87bc1fb552 GLES2: Get sin/cos out of vertex shader
The only place angle is activated and causes effect is RenderCopyEx. All other
methods which use vertex shader, leave angle disabled and cause useless sin/cos
calculation in shader.

To get around shader's interface is changed to a vector that contains results
of sin and cos. To behave properly when disabled, cos value is set with offset
-1.0 making 0.0 default when deactivated.

As nice side effect it simplifies GLES2_UpdateVertexBuffer: All attributes are
vectors now.

Additional background:

* On RaspberryPi it gives a performace win for operations. Tested with
  [1] numbers go down for 5-10% (not easy to estimate due to huge variation).
* SDL_RenderCopyEx was tested with [2]
* It works around left rotated display caused by low accuracy sin implemetation
  in RaspberryPi/VC4 [3]

[1] https://github.com/schnitzeltony/sdl2box
[2] https://github.com/schnitzeltony/sdl2rendercopyex
[3] https://github.com/anholt/mesa/issues/110

Signed-off-by: Andreas M?ller <schnitzeltony@gmail.com>
2018-08-28 12:57:51 -07:00
..
direct3d Fixed bug 4134 - Render targets lose scale quality after minimizing a fullscreen window 2018-05-07 19:52:25 -07:00
direct3d11 Fixed bug 4134 - Render targets lose scale quality after minimizing a fullscreen window 2018-05-07 19:52:25 -07:00
metal Fixed bug 4134 - Render targets lose scale quality after minimizing a fullscreen window 2018-05-07 19:52:25 -07:00
opengl Fixed bug 4134 - Render targets lose scale quality after minimizing a fullscreen window 2018-05-07 19:52:25 -07:00
opengles Fixed bug 4134 - Render targets lose scale quality after minimizing a fullscreen window 2018-05-07 19:52:25 -07:00
opengles2 GLES2: Get sin/cos out of vertex shader 2018-08-28 12:57:51 -07:00
psp Fixed bug 4134 - Render targets lose scale quality after minimizing a fullscreen window 2018-05-07 19:52:25 -07:00
software Fixed bug 4134 - Render targets lose scale quality after minimizing a fullscreen window 2018-05-07 19:52:25 -07:00
SDL_d3dmath.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_d3dmath.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_render.c Fixed race condition where Android touch events could get scaled by a render target's viewport 2018-06-18 13:13:56 -07:00
SDL_sysrender.h Fixed race condition where Android touch events could get scaled by a render target's viewport 2018-06-18 13:13:56 -07:00
SDL_yuv_sw_c.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_yuv_sw.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00