Bladeren bron

Sync SDL3 wiki -> header

SDL Wiki Bot 1 jaar geleden
bovenliggende
commit
dcfb069c75
2 gewijzigde bestanden met toevoegingen van 13 en 5 verwijderingen
  1. 9 4
      include/SDL3/SDL_render.h
  2. 4 1
      include/SDL3/SDL_surface.h

+ 9 - 4
include/SDL3/SDL_render.h

@@ -1363,12 +1363,16 @@ extern DECLSPEC int SDLCALL SDL_GetRenderScale(SDL_Renderer *renderer, float *sc
 /**
  * Set the colorspace used for drawing operations
  *
- * The default colorspace for drawing operations is SDL_COLORSPACE_SRGB, but you can change it to other colorspaces such as SDL_COLORSPACE_SCRGB for HDR rendering.
+ * The default colorspace for drawing operations is SDL_COLORSPACE_SRGB, but
+ * you can change it to other colorspaces such as SDL_COLORSPACE_SCRGB for HDR
+ * rendering.
  *
- * This does not affect the colorspace of textures, which is specified via properties when the texture is created and does not change.
+ * This does not affect the colorspace of textures, which is specified via
+ * properties when the texture is created and does not change.
  *
  * \param renderer the rendering context
- * \param colorspace an SDL_ColorSpace value describing the colorspace for drawing operations
+ * \param colorspace an SDL_ColorSpace value describing the colorspace for
+ *                   drawing operations
  * \returns 0 on success or a negative error code on failure; call
  *          SDL_GetError() for more information.
  *
@@ -1382,7 +1386,8 @@ extern DECLSPEC int SDLCALL SDL_SetRenderDrawColorspace(SDL_Renderer *renderer,
  * Get the colorspace used for drawing operations
  *
  * \param renderer the rendering context
- * \param colorspace a pointer filled in with an SDL_ColorSpace value describing the colorspace for drawing operations
+ * \param colorspace a pointer filled in with an SDL_ColorSpace value
+ *                   describing the colorspace for drawing operations
  * \returns 0 on success or a negative error code on failure; call
  *          SDL_GetError() for more information.
  *

+ 4 - 1
include/SDL3/SDL_surface.h

@@ -232,7 +232,10 @@ extern DECLSPEC void SDLCALL SDL_DestroySurface(SDL_Surface *surface);
  *   cd/m2 or nits) of the entire playback sequence. MaxFALL is calculated by
  *   averaging the decoded luminance values of all the pixels within a frame.
  *   MaxFALL is usually much lower than MaxCLL.
- * - `SDL_PROP_SURFACE_TONEMAP_OPERATOR_STRING`: the tone mapping operator used when converting between different colorspaces. Currently this supports the form "*=N", where N is a floating point scale factor applied in linear space.
+ * - `SDL_PROP_SURFACE_TONEMAP_OPERATOR_STRING`: the tone mapping operator
+ *   used when converting between different colorspaces. Currently this
+ *   supports the form "*=N", where N is a floating point scale factor applied
+ *   in linear space.
  *
  * \param surface the SDL_Surface structure to query
  * \returns a valid property ID on success or 0 on failure; call