-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Added tiled 9-grid texture rendering function #12076
base: main
Are you sure you want to change the base?
Conversation
This looks good to me. I'll add it for the 3.4 milestone, thanks! |
Changes to SDL_dynapi_overrides.h and SDL_dynapi_procs.h must not be |
Gotcha, amended, clean commit with generated api is ready. |
Actually, just revert the dynapi changes entirely. We’ll regenerate them once we merge, to avoid conflicts with other new API functions. |
* New function SDL_RenderTexture9GridTiled, borders and center is tiled instead of stretched
All right, I will keep that in mind for the future |
Question: this tiles left-to-right, and is not configurable. |
Never came across such behavior. Even in modern game engines it's not configurable. The most common and default behavior is just this. |
Hmm, build failed due to |
That's expected because you didn't add dynapi. You can ignore it. |
Yes, it previously passed CI, you’re good to go. Thank you very much! |
I think at that point they can implement it themselves on top of existing primitives. I think we're as robust with 9grid stuff as we want to be after this PR merges. |
Description
New function
SDL_RenderTexture9GridTiled
, borders and center is tiled instead of stretched. This is a known alternative method for 9-slicing.Here is the difference (right is tiled):