SDL Wiki Bot
a6374123c7
Sync SDL3 wiki -> header
2024-02-04 21:10:23 +00:00
Sam Lantinga
327b976bc4
SDL_COLORSPACE_JPEG is the default YUV colorspace
2024-02-04 13:09:40 -08:00
Sam Lantinga
89b9d6cbdc
SDL_RenderReadPixels() now returns a surface
...
Fixes https://github.com/libsdl-org/SDL/issues/8977
2024-02-03 11:49:15 -08:00
SDL Wiki Bot
ab571633d1
Sync SDL3 wiki -> header
2024-02-03 15:37:23 +00:00
Sam Lantinga
50a805cdd1
Use YUV colorspaces instead of a global YUV conversion mode
...
Fixes https://github.com/libsdl-org/SDL/issues/8669
2024-02-03 07:36:18 -08:00
SDL Wiki Bot
2819988f8b
Sync SDL3 wiki -> header
2024-02-03 04:40:24 +00:00
Sam Lantinga
a2c45f61bb
Updated scRGB render colorspace documentation
2024-02-02 20:38:48 -08:00
SDL Wiki Bot
c007c7ed55
Sync SDL3 wiki -> header
2024-02-02 21:14:23 +00:00
Sam Lantinga
9591b2cfb4
Finalized the SDL render API colorspaces
...
The renderer will always use the sRGB colorspace for drawing, and will default to the sRGB output colorspace. If you want blending in linear space and HDR support, you can select the scRGB output colorspace, which is supported by the direct3d11 and direct3d12
2024-02-02 13:13:53 -08:00
SDL Wiki Bot
dcfb069c75
Sync SDL3 wiki -> header
2024-02-01 20:18:29 +00:00
Sam Lantinga
dd28ab0489
Added SDL_SetRenderDrawColorspace() and SDL_GetRenderDrawColorspace()
2024-02-01 12:17:35 -08:00
SDL Wiki Bot
d15fb9e063
Sync SDL3 wiki -> header
2024-01-30 17:49:26 +00:00
Sam Lantinga
f257eb4481
Added the concept of colorspace to the SDL renderer
...
This allows color operations to happen in linear space between sRGB input and sRGB output. This is currently supported on the direct3d11, direct3d12 and opengl renderers.
This is a good resource on blending in linear space vs sRGB space:
https://blog.johnnovak.net/2016/09/21/what-every-coder-should-know-about-gamma/
Also added testcolorspace to verify colorspace changes
2024-01-30 09:48:02 -08:00
Sam Lantinga
554f0625d3
Renderer colors now have floating point precision
2024-01-30 09:48:02 -08:00
SDL Wiki Bot
aba3038353
Sync SDL3 wiki -> header
2024-01-27 21:01:19 +00:00
Sam Lantinga
3b55c7d1f4
Shortened SDL property names
2024-01-27 13:00:50 -08:00
SDL Wiki Bot
1885e6b2e0
Sync SDL3 wiki -> header
2024-01-27 20:47:21 +00:00
Sam Lantinga
8a4284b7df
Clarified the use of SDL_RENDERER_SOFTWARE when creating a renderer
...
Fixes https://github.com/libsdl-org/sdlwiki/issues/458
2024-01-27 12:46:41 -08:00
SDL Wiki Bot
4d6e2d8b73
Sync SDL3 wiki -> header
2024-01-20 14:33:19 +00:00
Sam Lantinga
308906ba25
Added SDL_FlipSurface() to flip a surface vertically or horizontally
...
Fixes https://github.com/libsdl-org/SDL/issues/8857
2024-01-20 06:31:37 -08:00
Ryan C. Gordon
82f2c4d581
render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture.
2024-01-08 14:16:16 -05:00
SDL Wiki Bot
95066ce2a0
Sync SDL3 wiki -> header
2024-01-08 19:10:31 +00:00
Ryan C. Gordon
df438a3170
opengl: OpenGL renderers need to support texture target in properties.
...
Otherwise this has to become an awkward heuristic in sdl2-compat.
2024-01-08 14:08:35 -05:00
SDL Wiki Bot
4942027117
Sync SDL3 wiki -> header
2024-01-08 17:34:23 +00:00
Ryan C. Gordon
e056f52f7d
include: Remove string literals from properties documentation.
...
I'm going to let the wiki bridge clean up the word wrapping for me, here. :)
2024-01-08 12:33:29 -05:00
SDL Wiki Bot
e8c595af5c
Sync SDL3 wiki -> header
2024-01-08 17:16:19 +00:00
Ryan C. Gordon
adef35b9ec
include: Attempt to make new properties documentation wiki bridge friendly.
2024-01-08 12:14:08 -05:00
SDL Wiki Bot
4ffec098b7
Sync SDL3 wiki -> header
2024-01-08 15:18:26 +00:00
Ryan C. Gordon
9bc7cfc755
render: Added SDL_GetTextureRenderer().
2024-01-08 10:17:38 -05:00
Sam Lantinga
7eae08cfc4
Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture()
...
Now that we have the OpenGL texture properties, you can directly bind them yourself.
Fixes https://github.com/libsdl-org/SDL/issues/2124
2024-01-07 20:19:19 -08:00
SDL Wiki Bot
4d5bffc323
Sync SDL3 wiki -> header
2024-01-08 01:02:25 +00:00
Sam Lantinga
1a13dae219
Added constant definitions for SDL properties
...
Fixes https://github.com/libsdl-org/SDL/issues/8622
2024-01-07 16:59:41 -08:00
Sam Lantinga
5b3ee51c6c
Updated copyright for 2024
2024-01-01 13:15:26 -08:00
Sylvain
84a0d5f623
Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled()
2023-12-17 15:39:53 -08:00
SDL Wiki Bot
e4582e6edc
Sync SDL3 wiki -> header
2023-11-30 15:22:19 +00:00
Ryan C. Gordon
dfee3f9e92
render: Replaced SDL_RenderFlush with SDL_FlushRenderer.
...
This uses the same `SDL_VerbNoun` format as the rest of SDL3, and also
adds stronger effort to invalidate cached state in the backend, so cooperation
improves with apps that are using lowlevel rendering APIs directly.
Fixes #367 .
2023-11-29 14:24:26 -05:00
Ryan C. Gordon
6ba90f7775
render: Batching is always enabled now!
...
Make sure your app uses SDL_RenderFlush() before it talks to D3D/OpenGL/etc!
Fixes #8584 .
2023-11-23 20:37:52 -05:00
Sam Lantinga
1c64366b80
Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties()
2023-11-14 06:06:51 -08:00
Ryan C. Gordon
8766aa39d6
Sync wiki -> headers.
2023-11-13 13:03:42 -05:00
Sam Lantinga
0907f345cb
Added property types: pointer, string, number, float
2023-11-12 10:48:38 -08:00
Sam Lantinga
d3e43668d0
Revert "Sync SDL3 wiki -> header"
...
This reverts commit 43571769f1
.
2023-11-12 09:02:22 -08:00
SDL Wiki Bot
43571769f1
Sync SDL3 wiki -> header
2023-11-12 15:55:10 +00:00
Sam Lantinga
b374105975
Replaced SDL_GetTextureDXGIResource() with texture properties
...
Fixes https://github.com/libsdl-org/SDL/issues/8529
2023-11-10 20:38:13 -08:00
Ryan C. Gordon
aa7baf63aa
Sync wiki -> headers.
2023-11-09 20:11:23 -05:00
Sam Lantinga
6c91b28e71
Added the "SDL.renderer.d3d12.command_queue" property
...
Fixes https://github.com/libsdl-org/SDL/issues/8491
2023-11-08 12:01:48 -08:00
Sam Lantinga
a1941fad6c
Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties.
2023-11-08 12:01:48 -08:00
Sam Lantinga
b5057edf29
Remove unused SDL_TextureModulate enum
...
Fixes https://github.com/libsdl-org/SDL/issues/6387
2023-11-07 09:23:26 -08:00
Ryan C. Gordon
c53843a961
docs: Remove Doxygen \brief
tags.
...
Doxygen and the wiki bridge don't need them; they'll both just use the first
line/sentence instead.
Fixes #8446 .
2023-11-06 10:26:06 -05:00
Ryan C. Gordon
ac71831350
Sync wiki -> headers
2023-10-12 15:20:53 -04:00
Sam Lantinga
4368f70ff9
Added properties to various SDL objects
...
The following objects now have properties that can be user modified:
* SDL_AudioStream
* SDL_Gamepad
* SDL_Joystick
* SDL_RWops
* SDL_Renderer
* SDL_Sensor
* SDL_Surface
* SDL_Texture
* SDL_Window
2023-10-11 22:38:00 -07:00