Sam Lantinga
|
1f32dd8edc
Fixed overdraw with duplicate points, fixed not drawing single point lines
|
3 years ago |
Sam Lantinga
|
3b083b9911
Fixed compile warning
|
3 years ago |
Sam Lantinga
|
4ef2529bf9
More efficient calculation of render_count
|
3 years ago |
Sam Lantinga
|
5346c93b62
Fixed assertion on number of points rendered
|
3 years ago |
Sam Lantinga
|
4b71962031
Prevent overdraw with connected line segments
|
3 years ago |
Sam Lantinga
|
09ece861d1
Added the hint SDL_HINT_RENDER_LINE_METHOD to select the line rendering method
|
3 years ago |
Sam Lantinga
|
c1e6079836
As an optimization, draw horizontal and vertical lines using rectangles
|
3 years ago |
Sam Lantinga
|
3da7c6305a
Assert that we have drawn the expected number of points
|
3 years ago |
Sam Lantinga
|
9f56faeedc
Added line drawing using Bresenham's line algorithm (thanks @rtrussell!)
|
3 years ago |
Sam Lantinga
|
fe3a33a092
Use RenderGeometry for drawing lines at all scales
|
3 years ago |
Sam Lantinga
|
1694782b2a
Remove redundant work when render scale is 1.0
|
3 years ago |
Sam Lantinga
|
2026a78dc2
Don't flush in RenderDraw*WithRects()
|
3 years ago |
Ryan C. Gordon
|
cc2013378d
render: Fixed some compiler warnings.
|
3 years ago |
Sylvain
|
8ea8b2e697
Use QueueDrawLine if provided, otherwise use RenderGeometry
|
3 years ago |
Sylvain Becker
|
c498727471
render: Use RenderGeometry to draw lines
|
3 years ago |
Sam Lantinga
|
120c76c84b
Updated copyright for 2022
|
3 years ago |
Sylvain
|
3d5fcb5da6
Fix warning
|
3 years ago |
Sylvain
|
4342e6bd21
SDL_render.c: lighten the cast syntax
|
3 years ago |
Alex Szpakowski
|
3a5e148b13
Renderer backends use SDL_Color instead of int for geometry colors.
|
3 years ago |
Sylvain
|
b7885abc44
Fixed bug #5087: SDL_RenderGeometryRaw() passes colors as int* instead of SDL_Color*
|
3 years ago |
Sylvain
|
8927d73b1c
RenderGeometry: simplify casting (Thanks Daniel Gibson)
|
3 years ago |
Sylvain
|
3e43d6e34b
SDL_RenderGeometry: remove some warning "dereferencing type-punned pointer might break strict-aliasing"
|
3 years ago |
Sylvain
|
d09f80ef18
SDL_DrawPointsF: fix error message typo
|
3 years ago |
Sylvain
|
6dafc85017
SDL_DrawLines: minor simpification:
|
3 years ago |
Sylvain
|
a0818a63e3
Fixed bug #5071 - Float conversion warnings in SDL_render.c (see also #5003)
|
3 years ago |
Sylvain
|
e14d10263c
Change viewport and cliprect to float version: from SDL_Rect to SDL_FRect
|
3 years ago |
Ozkan Sezer
|
e18be04bc6
Fixed undefined behavior in QueueCmdSetDrawColor()
|
3 years ago |
Sylvain
|
161dd83c9a
Don´t use "trunc" as var name, since it's also a function
|
3 years ago |
Sylvain
|
49369142bd
Fixed bug #4625: with integer scale, viewport (as reported by SDL_RenderGetViewport) becomes -2147483648x-2147483648
|
3 years ago |
Sylvain
|
70c8d20a46
Revert previous commit a50ca98e2b9ca10368b62e93b6a0977dc68fd584 (see bug #4625)
|
3 years ago |