-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[rtextures] Add texture scale to DrawTextureNPatch()
#4757
Comments
I quickly put together a |
@michelelorusso05 Afair, the requested functionality requires GL_REPEAT for textures repeat but unfortunately it is not supported on all raylib platform (OpenGL ES 2.0 / WebGL could not support it). Also note that NPatch drawing is probably moved to a separate example in the future, instead of being in the core raylib library. It seems to belong to a higher-level engine. |
That's a shame, I saw the other issue about nine patch repeat not being possible; however, this would be just a quick addition for patch texture scaling, as showed here: ezgif-489f2d58f677fd.mp4 |
DrawTextureNPatch()
@michelelorusso05 Still, it can be added to current N-Patch example for reference to other users. |
The only way to do it with the current library would be to create a new scaled texture everytime the scale needs to be updated (correct me if I'm mistaken); I understand that this would still be a very niche use case though, so that's okay if you think that this is not worth the pull request |
Please, before submitting a new issue verify and check:
It would be nice, if possible, to have a
scale
parameter onDrawTextureNPatch
, like we have onDrawTextureEx
. The scaling would be applied before the N-Patch slicing.Scale = 1 (default):

Scale = 2:
And so on.
The text was updated successfully, but these errors were encountered: