Skip to content
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

[Renderers/SDL2] Create initial SDL2 renderer #115

Merged
merged 7 commits into from
Dec 28, 2024
Merged

Conversation

nicbarker
Copy link
Owner

@nicbarker nicbarker commented Dec 27, 2024

This PR creates an SDL2 renderer and corresponding example.

In the process of getting SDL2 running I realised we aren't outputting the correct dimensions for wrapped lines of text. That has been fixed here.

cc @juniorrantila the original author of this PR

@nicbarker nicbarker merged commit ac473d6 into main Dec 28, 2024
3 checks passed
@nicbarker nicbarker deleted the juniorrantila branch December 28, 2024 06:48
@ColleagueRiley
Copy link

@nicbarker I don't think allocating a texture/surface each time the user wants to draw text is a good idea...

Also I don't get the point of cloning the string, especially with calloc.

nicbarker added a commit that referenced this pull request Jan 14, 2025
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.

3 participants