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

Add SDL3_ttf unit #19

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Free-Pascal-meets-SDL-Website
Copy link
Contributor

Adds

  • SDL3_ttf.pas
  • SDL_textengine.inc

@suve
Copy link

suve commented Feb 24, 2025

The C headers for SDL_ttf do not include SDL_textengine.h by themselves; if anything, it's SDL_textengine.h that contains #include <SDL3/SDL_ttf.h>. This effectively turns the TextEngine stuff into a separate, optional API on top of SDL_ttf.

I think our units should work similarly - instead of {$INCLUDE sdl_textengine.inc} in SDL3_ttf.pas, turn TextEngine into a proper, separate unit that may then use SDL3_ttf.pas.

@Free-Pascal-meets-SDL-Website
Copy link
Contributor Author

@suve I changed it into a unit according to your suggestion. If this is ok with you, please merge.

Best regards

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.

None yet

2 participants