|
@@ -253,7 +253,7 @@ extern SDL_DECLSPEC SDL_Renderer * SDLCALL SDL_CreateRenderer(SDL_Window *window
|
|
|
* displayed, required if this isn't a software renderer using a surface
|
|
|
* - `SDL_PROP_RENDERER_CREATE_SURFACE_POINTER`: the surface where rendering
|
|
|
* is displayed, if you want a software renderer without a window
|
|
|
- * - `SDL_PROP_RENDERER_CREATE_OUTPUT_COLORSPACE_NUMBER`: an SDL_ColorSpace
|
|
|
+ * - `SDL_PROP_RENDERER_CREATE_OUTPUT_COLORSPACE_NUMBER`: an SDL_Colorspace
|
|
|
* value describing the colorspace for output to the display, defaults to
|
|
|
* SDL_COLORSPACE_SRGB. The direct3d11, direct3d12, and metal renderers
|
|
|
* support SDL_COLORSPACE_SRGB_LINEAR, which is a linear color space and
|
|
@@ -386,21 +386,21 @@ extern SDL_DECLSPEC const char * SDLCALL SDL_GetRendererName(SDL_Renderer *rende
|
|
|
* - `SDL_PROP_RENDERER_TEXTURE_FORMATS_POINTER`: a (const SDL_PixelFormat *)
|
|
|
* array of pixel formats, terminated with SDL_PIXELFORMAT_UNKNOWN,
|
|
|
* representing the available texture formats for this renderer.
|
|
|
- * - `SDL_PROP_RENDERER_OUTPUT_COLORSPACE_NUMBER`: an SDL_ColorSpace value
|
|
|
+ * - `SDL_PROP_RENDERER_OUTPUT_COLORSPACE_NUMBER`: an SDL_Colorspace value
|
|
|
* describing the colorspace for output to the display, defaults to
|
|
|
* SDL_COLORSPACE_SRGB.
|
|
|
* - `SDL_PROP_RENDERER_HDR_ENABLED_BOOLEAN`: true if the output colorspace is
|
|
|
* SDL_COLORSPACE_SRGB_LINEAR and the renderer is showing on a display with
|
|
|
* HDR enabled. This property can change dynamically when
|
|
|
- * SDL_EVENT_DISPLAY_HDR_STATE_CHANGED is sent.
|
|
|
+ * SDL_EVENT_WINDOW_HDR_STATE_CHANGED is sent.
|
|
|
* - `SDL_PROP_RENDERER_SDR_WHITE_POINT_FLOAT`: the value of SDR white in the
|
|
|
* SDL_COLORSPACE_SRGB_LINEAR colorspace. When HDR is enabled, this value is
|
|
|
* automatically multiplied into the color scale. This property can change
|
|
|
- * dynamically when SDL_EVENT_DISPLAY_HDR_STATE_CHANGED is sent.
|
|
|
+ * dynamically when SDL_EVENT_WINDOW_HDR_STATE_CHANGED is sent.
|
|
|
* - `SDL_PROP_RENDERER_HDR_HEADROOM_FLOAT`: the additional high dynamic range
|
|
|
* that can be displayed, in terms of the SDR white point. When HDR is not
|
|
|
* enabled, this will be 1.0. This property can change dynamically when
|
|
|
- * SDL_EVENT_DISPLAY_HDR_STATE_CHANGED is sent.
|
|
|
+ * SDL_EVENT_WINDOW_HDR_STATE_CHANGED is sent.
|
|
|
*
|
|
|
* With the direct3d renderer:
|
|
|
*
|
|
@@ -576,7 +576,7 @@ extern SDL_DECLSPEC SDL_Texture * SDLCALL SDL_CreateTextureFromSurface(SDL_Rende
|
|
|
*
|
|
|
* These are the supported properties:
|
|
|
*
|
|
|
- * - `SDL_PROP_TEXTURE_CREATE_COLORSPACE_NUMBER`: an SDL_ColorSpace value
|
|
|
+ * - `SDL_PROP_TEXTURE_CREATE_COLORSPACE_NUMBER`: an SDL_Colorspace value
|
|
|
* describing the texture colorspace, defaults to SDL_COLORSPACE_SRGB_LINEAR
|
|
|
* for floating point textures, SDL_COLORSPACE_HDR10 for 10-bit textures,
|
|
|
* SDL_COLORSPACE_SRGB for other RGB textures and SDL_COLORSPACE_JPEG for
|
|
@@ -713,7 +713,7 @@ extern SDL_DECLSPEC SDL_Texture * SDLCALL SDL_CreateTextureWithProperties(SDL_Re
|
|
|
*
|
|
|
* The following read-only properties are provided by SDL:
|
|
|
*
|
|
|
- * - `SDL_PROP_TEXTURE_COLORSPACE_NUMBER`: an SDL_ColorSpace value describing
|
|
|
+ * - `SDL_PROP_TEXTURE_COLORSPACE_NUMBER`: an SDL_Colorspace value describing
|
|
|
* the texture colorspace.
|
|
|
* - `SDL_PROP_TEXTURE_FORMAT_NUMBER`: one of the enumerated values in
|
|
|
* SDL_PixelFormat.
|
|
@@ -753,14 +753,8 @@ extern SDL_DECLSPEC SDL_Texture * SDLCALL SDL_CreateTextureWithProperties(SDL_Re
|
|
|
*
|
|
|
* With the vulkan renderer:
|
|
|
*
|
|
|
- * - `SDL_PROP_TEXTURE_VULKAN_TEXTURE_POINTER`: the VkImage associated with
|
|
|
- * the texture
|
|
|
- * - `SDL_PROP_TEXTURE_VULKAN_TEXTURE_U_POINTER`: the VkImage associated with
|
|
|
- * the U plane of a YUV texture
|
|
|
- * - `SDL_PROP_TEXTURE_VULKAN_TEXTURE_V_POINTER`: the VkImage associated with
|
|
|
- * the V plane of a YUV texture
|
|
|
- * - `SDL_PROP_TEXTURE_VULKAN_TEXTURE_UV_POINTER`: the VkImage associated with
|
|
|
- * the UV plane of a NV12/NV21 texture
|
|
|
+ * - `SDL_PROP_TEXTURE_VULKAN_TEXTURE_NUMBER`: the VkImage associated with the
|
|
|
+ * texture
|
|
|
*
|
|
|
* With the opengl renderer:
|
|
|
*
|
|
@@ -792,11 +786,6 @@ extern SDL_DECLSPEC SDL_Texture * SDLCALL SDL_CreateTextureWithProperties(SDL_Re
|
|
|
* - `SDL_PROP_TEXTURE_OPENGLES2_TEXTURE_TARGET_NUMBER`: the GLenum for the
|
|
|
* texture target (`GL_TEXTURE_2D`, `GL_TEXTURE_EXTERNAL_OES`, etc)
|
|
|
*
|
|
|
- * With the vulkan renderer:
|
|
|
- *
|
|
|
- * - `SDL_PROP_TEXTURE_VULKAN_TEXTURE_NUMBER`: the VkImage associated with the
|
|
|
- * texture
|
|
|
- *
|
|
|
* \param texture the texture to query.
|
|
|
* \returns a valid property ID on success or 0 on failure; call
|
|
|
* SDL_GetError() for more information.
|