Added the hint SDL_HINT_RENDER_LINE_METHOD to select the line rendering method

This commit is contained in:
Sam Lantinga 2022-01-08 11:36:29 -08:00
parent 836a4ec7b1
commit 09ece861d1
3 changed files with 59 additions and 7 deletions

View file

@ -114,6 +114,14 @@ typedef struct SDL_VertexSolid
} SDL_VertexSolid;
typedef enum
{
SDL_RENDERLINEMETHOD_POINTS,
SDL_RENDERLINEMETHOD_LINES,
SDL_RENDERLINEMETHOD_GEOMETRY,
} SDL_RenderLineMethod;
/* Define the SDL renderer structure */
struct SDL_Renderer
{
@ -214,6 +222,9 @@ struct SDL_Renderer
/* Whether or not to scale relative mouse motion */
SDL_bool relative_scaling;
/* The method of drawing lines */
SDL_RenderLineMethod line_method;
/* Remainder from scaled relative motion */
float xrel;
float yrel;