Skip to content

Update render function params to floating point #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2025

Conversation

coat
Copy link
Contributor

@coat coat commented Apr 5, 2025

I discovered that specifying a src and/or dst Rect to renderTexture made it stop rendering at all for me, and noticed certain render functions in SDL3 now support subpixel resolution and expect FRects and FPoints instead of integer Rects and Points in SDL2. I did a quick pass and I think the rest of the render related functions are correct (with some missing which I'll add in another PR)

Certain render methods in SDL3 support subpixel resolution and expect
FRects and FPoints instead of integer Rects and Points in SDL2.

https://wiki.libsdl.org/SDL3/SDL_RenderTexture
@hazeycode hazeycode merged commit 41efa4c into zig-gamedev:main Apr 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants