Sylvain
d4df5d33c5
GLES2: prevent batching if blend mode changes (see bug #4964 )
2021-11-15 09:43:44 +01:00
Sylvain
92f2fdfc84
GLES2: batch non joined lines (see #4964 )
2021-11-15 09:36:18 +01:00
Sylvain
17f156fae5
Fixed bug #4964 - opengles2 & batching = conjoined lines
...
put back the initial switch case because groups of joined lines cannot be batched.
2021-11-15 09:08:09 +01:00
Sylvain
d8888e468e
Fixed bug #4964 - opengles2 & batching = conjoined lines
2021-11-15 08:37:49 +01:00
Sylvain
70c8d20a46
Revert previous commit a50ca98e2b (see bug #4625 )
2021-11-13 15:04:19 +01:00
Sylvain
a50ca98e2b
Fixed bug #4625 - SDL_RenderSetLogicalSize issues
...
viewport becomes -2147483648x-2147483648 when logical_w/h is greater than window size.
division should be done with floats
2021-11-13 14:48:36 +01:00
Sylvain
e8731933cc
Fixed warning: macro is not used
2021-11-09 13:33:25 +01:00
Sylvain
c7065bf42f
Fix warning: declaration shadows a local variable
2021-11-09 13:33:24 +01:00
Sylvain
4960cc3dcb
Fixed a few warnings
2021-10-25 16:18:40 +02:00
Sylvain
b793394590
SDL_Renderer: make clear that we use render geometry for fillrect/copy/copyex when there is no specific back-end implementation (currently software, PSP, directfb)
2021-10-25 13:46:40 +02:00
Sylvain
502e9c3b45
SDL_Renderer simplifications:
...
- Factorize PrepQueueCmdDraw{,DrawTexture,Solid) into one single function
- Change SDL_Texture/Renderer r,g,b,a Uint8 into an SDL_Color, so that it can be passed directly to RenderGeometry
- Don't automatically queue a SET_DRAW_COLOR cmd for RenderGeometry (and update GLES2 renderer)
2021-10-24 22:27:56 -04:00
Sylvain
23e252bfc5
DirectFB: provide RenderCopyEx via RenderGeometry
2021-10-24 22:27:56 -04:00
Sylvain
79732c9d1e
Remove FillRects from back-end, where RenderGeometry can be used
2021-10-24 22:27:56 -04:00
Sylvain
f02ad2820f
Remove FillRects from back-end, where RenderGeometry can be used
2021-10-24 22:27:56 -04:00
Sylvain
70b10c753d
Use correct indices when using RenderGeometry / FillRects
2021-10-24 22:27:56 -04:00
Sylvain
16beed9aeb
Less code since color is constant when done with triangles
2021-10-24 22:27:56 -04:00
Sylvain
99a346439c
OpenGLES2: LINES and POINTS successive commands are combined into a single draw call
...
(using the same case for DRAW_GEOMETRY)
2021-10-24 22:27:56 -04:00
Sylvain
f0cdc1d0f6
OpenGLES2: remove FillRects, since it's can be done with RenderGeometry
2021-10-24 22:27:56 -04:00
Sylvain
37c39d5cb4
Use geometry to implement FillRects
2021-10-24 22:27:56 -04:00
Sylvain
b0eef52fe1
GLES2 batching: probably need to check for blendMode changes
2021-10-24 22:27:56 -04:00
Sylvain
c27e1249e1
Remove SDL_HAVE_RENDER_GEOMETRY define
2021-10-24 22:27:56 -04:00
Sylvain
77026f673b
Metal: remove RenderCopy and RenderCopyEx from back-end
2021-10-24 22:27:56 -04:00
Sylvain
0e5160a056
VITA: remove RenderCopy and RenderCopyEx from back-end
2021-10-24 22:27:56 -04:00
Sylvain
73f4ab4c13
Direct3D11: remove RenderCopy and RenderCopyEx from back-end
2021-10-24 22:27:56 -04:00
Sylvain
ab758398af
Direct3D: remove RenderCopy and RenderCopyEx from back-end
2021-10-24 22:27:56 -04:00
Sylvain
1fe7e3616b
OpenGL: a few opengl functions become unused
2021-10-24 22:27:56 -04:00
Sylvain
88548070a5
OpenGLES: remove RenderCopy and RenderCopyEx from back-end
2021-10-24 22:27:56 -04:00
Sylvain
d192515428
OpenGL: remove RenderCopy and RenderCopyEx from back-end
2021-10-24 22:27:56 -04:00
Sylvain
b92056bbea
OpenGLES2: remove RenderCopy and RenderCopyEx from back-end
2021-10-24 22:27:56 -04:00
Sylvain
76f9fb96d9
Use RenderGeometry to implement RenderCopy and RenderCopyEx at higher level
2021-10-24 22:27:56 -04:00
Sylvain
649a33ae47
X11: remove redundant 'wakeup_lock' mutex creation
2021-10-18 23:00:43 +02:00
Sylvain
8b1a2fe860
backout SDL_AndroidSetInputType()
2021-10-17 23:47:59 +02:00
Sylvain
6ef3bc5688
Add Dynapi for SDL_AndroidSetInputType()
2021-10-17 23:40:36 +02:00
Sylvain
ccb12457f9
Fixed bug #4843 - Can not get the ime candidatelist like chinese/japaness input method
2021-10-17 23:17:54 +02:00
Sylvain
50f969c1b2
Fixed bug #4841 - Out of bounds read (by 1 byte) in yuvnv12_rgb24_sseu
2021-10-17 22:02:19 +02:00
Sylvain
072e3fdfc4
Fixed bug #4534 : NEON implementation of Convert51ToStereo (Thanks Ryan!)
2021-10-14 23:17:08 +02:00
Sylvain
325ae5c35d
Android: getCurrentOrientation uses getContext() to retrieve the activity (see bug #4825 )
2021-10-13 08:35:56 +02:00
Sylvain
723f5cea43
Fixed bug #4825 - NullPointerException on SDLActivity.getCurrentOrientation() (Thanks Benau!)
2021-10-12 20:58:58 +02:00
Sylvain
172957387e
PSP: links for setting up, compiling and running on PSP
2021-10-04 22:12:08 +02:00
Sylvain
f080273acd
PSP: add implementation for RenderGeometry
2021-10-04 22:01:11 +02:00
Sylvain
dd9b2daf8d
PSP: fixed build
2021-10-04 21:56:42 +02:00
Sylvain
77acd44f28
DirectFB: fixed creation of palette textures
2021-10-01 22:30:51 +02:00
Sylvain
83d600904b
DirectFB: add partial support for RenderGeometry
...
allow to fill triangles with color or texture
but only uniform vertex color is handled (not per vertex color)
2021-09-30 23:47:37 +02:00
Sylvain
decd1b4d74
testdraw2: display FPS similarly to testsprit2. fix helper syntax
2021-09-23 22:28:45 +02:00
Sylvain
183eb0673b
Fixed bug #4711 : prevent opengl SDL_renderer from crashing if GL_ARB_multitexture isn't supported
2021-09-01 15:46:32 +02:00
Sylvain
1fe9ad04be
SDL_ConvertSurface: add an intermediate variable to remove static analysis false positive (see bug #4600 )
2021-08-27 14:09:47 +02:00
Sylvain
be6bee0b5a
SW_RenderGeometry: add a redundant check to clear static analysis (see bug #4600 )
2021-08-27 07:47:28 +02:00
Sylvain
54ca1d190e
SW_RenderGeometry: add a redundant check to clear static analysis (see bug #4600 )
2021-08-27 07:44:03 +02:00
Sylvain
b17aa5d080
SW_RenderGeometry: remove a few static analysis false positives (see bug #4600 )
2021-08-27 07:16:40 +02:00
Sylvain
e426bb80cb
Fixed bug #4671 - D3D_QueueGeometry: use "count / 3" (Thanks alittlesail!)
2021-08-20 07:50:30 +02:00
Sylvain
ae5336a3d2
Fixed bug #4669 : D3D_QueueGeometry: -0.5f offset position of vertexs
...
This similar to D3D_QueueCopy positions
2021-08-19 14:03:10 +02:00
Sylvain
154384a776
Add (uintptr_t) casts
2021-08-19 00:10:59 +02:00
Sylvain
08d6a4653e
Fix dynapi prototypes
2021-08-19 00:10:59 +02:00
Sylvain
93fb5a223e
Remove '\brief' markup in header 'SDL_render.h'
2021-08-19 00:10:59 +02:00
Sylvain
1670104ad8
Change 'size_indice' to 'size_indices'
2021-08-19 00:10:59 +02:00
Sylvain
a8f89a01aa
Change 'size_indice' to 'size_indices'
2021-08-19 00:10:59 +02:00
Sylvain
bc2173baf9
Add testgeometry to draw a non uniform triangle
...
--use-texture: an option to load icon.bmp as a texture
handle mouse motion: rotate the triangle
2021-08-19 00:10:59 +02:00
Sylvain
53bcb3e0e9
Add an option to 'testsprite2' to render slicing into triangles.
...
[--use-rendergeometry mode1|mode2]
mode1: Draw sprite2 as triangles that can be recombined as rect by software renderer
mode2: Draw sprite2 as triangles that can *not* be recombined as rect by software renderer
Use an 'indices' array
2021-08-19 00:10:59 +02:00
Sylvain
47db47c1cc
Add SDL_HAVE_RENDER_GEOMETRY to compile or not with RenderGeometry support
2021-08-19 00:10:59 +02:00
Sylvain
b9bd9da78f
OpenGLES2: transfert color as 4 bytes, instead of 4 floats
2021-08-19 00:10:59 +02:00
Sylvain Becker
c6ceaaeb4b
METAL: use Uchar4Normalized format to transfert color as 4 bytes, instead of 4 floats
2021-08-19 00:10:59 +02:00
Sylvain Becker
fd236af8eb
Update Xcode project to add SDL_triangle.{c,h}
2021-08-19 00:10:59 +02:00
Sylvain
eff840bb9b
Add OpenGLES implementation
2021-08-19 00:10:59 +02:00
Sylvain
32e7910135
Fix warnings
2021-08-19 00:10:59 +02:00
Sylvain
6e47f53869
Fix warnings
2021-08-19 00:10:59 +02:00
Sylvain
4869a3d294
Add Direct3D9 implementation (not tested)
2021-08-19 00:10:59 +02:00
Sylvain
4ba3763897
Save and restore SDL renderer state after transforming triangles to rect
2021-08-19 00:10:59 +02:00
Sylvain
cd0663e053
Fix declaration-after-statement and remove tabs
2021-08-19 00:10:59 +02:00
Sylvain Becker
cd4663dfcb
Update D3D11 for SDL_RenderGeometryRaw
2021-08-19 00:10:59 +02:00
Sylvain Becker
9f59170743
Update METAL backend for SDL_RenderGeometryRaw
2021-08-19 00:10:59 +02:00
Sylvain
61d9e9164f
For the software renderer, try to reinterpret triangles as SDL_Rect
...
With Dear ImGui + software renderer, it draws:
- by default at 250 fps
- drops to 70 fps if you show the color picker
- drops to 10 fps if put the color picker fullscreen
2021-08-19 00:10:59 +02:00
Sylvain
cc37c38e30
Add SDL_RenderGeometry based on SDL_RenderGeometryRaw
2021-08-19 00:10:59 +02:00
Sylvain
e481261173
Move to SDL_RenderGeometryRaw prototype with separate xy/uv/color pointer parameters
2021-08-19 00:10:59 +02:00
Sylvain
111c70e141
Use 64 bits precision to prevent overflow when interpolating color / texture with wide triangles
2021-08-19 00:10:59 +02:00
Sylvain
f73c1eff10
Use normalized texture coordinates
2021-08-19 00:10:59 +02:00
Sylvain
5828cc415a
Update METAL backend: fix a typo in drawline
2021-08-19 00:10:59 +02:00
Sylvain
9eab5195fe
Update dynapi files
2021-08-19 00:10:59 +02:00
Sylvain Becker
9a8a8e65b8
Update SDL_render_d3d11.c
...
Fix D3D11 compilation
2021-08-19 00:10:59 +02:00
Sylvain
a2cd4255c9
Update VisualC projects
2021-08-19 00:10:59 +02:00
Sylvain
55277c67bb
Update Makefiles OS2 and PSP
2021-08-19 00:10:59 +02:00
Sylvain Becker
121114d061
Update METAL compiled shaders
2021-08-19 00:10:59 +02:00
Sylvain Becker
2d01573bb9
Add METAL shaders
2021-08-19 00:10:59 +02:00
Sylvain Becker
1e77dae7b7
Add METAL implementation
2021-08-19 00:10:59 +02:00
Sylvain
1ebef0732a
Add D3D11 implementation (not yet tested)
2021-08-19 00:10:59 +02:00
Sylvain
3ee511d71c
Add software renderer implementation
2021-08-19 00:10:59 +02:00
Sylvain
37f78fc1cc
Add OpenGL implementation
2021-08-19 00:10:59 +02:00
Sylvain
faded41ab1
Add OpenGLES2 implementation
2021-08-19 00:10:59 +02:00
Sylvain
6e26d320c6
Add sysrender interface
2021-08-19 00:10:59 +02:00
Sylvain
f22fc4ca35
Add API: SDL_Vertex type and SDL_RenderGeometry
2021-08-19 00:10:59 +02:00
Sylvain
53a2608bd2
Renderer opengles2: turn color Uniform into Attribute.
...
all attributes are copied interleaved (based on rmg-nik initial patch+
+ minor clean up of data structure
+ add check for colorswap
2021-08-19 00:10:59 +02:00
Sylvain
f5b87273e1
Fixed bug #4397 - update IOS documentation
2021-06-02 08:32:43 +02:00
Sylvain
30359a689f
Android: document workaround to use JNI on native thread (see bug #4406 )
2021-06-01 20:11:59 +02:00
Sylvain
62a562dea2
X11: use x11sym loaded functions (see bug #3978 )
2021-05-12 23:37:18 +02:00
Sylvain
531d83bf6a
X11: allow using touchscreen, while pointer is grabbed (see bug #3978 )
2021-05-12 23:13:48 +02:00
Sylvain
7b284dbb34
EglChooseConfig: choose an accelerated configuration
...
- especially because we can be promoted to true color 888
make sure we don't select a potentially software implementation
- hopefully fix bug #1482 (EGL ChooseConfig selects software renderer on Android)
2021-04-30 22:01:48 +02:00
Sylvain
13472cec67
Fixed bug #4228 : move from jcenter() to mavenCentral()
...
SDL can use relinker. If it's enabled on your project, you need to update to version 1.4.3
2021-04-30 09:48:29 +02:00
Sylvain
a74f888ff9
Fixed bug #4337 - compilation of 'SDL_vulkan_utils' fails with 'VK_ERROR_INCOMPATIBLE_VERSION_KHR' undeclared
2021-04-29 22:25:00 +02:00
Sylvain
8ac0fb52cb
OpenSLES: CloseDevice() is called at higher level, if OpenDevice() fails
...
- explicit initialization of static variables
2021-04-29 09:29:02 +02:00
Sylvain
1f3df900f9
Error missing 'flags' initialization (see bug #2881 )
2021-04-28 23:40:26 +02:00
Sylvain
fcbf19b764
AAudio: make sure stream is not null to prevent crash in RequestStop (see #3710 )
2021-04-28 21:04:47 +02:00