You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Set texture and rectangle to be used on shapes drawing NOTE: It can be useful when using basic shapes and one single font, defining a font char white rectangle would allow drawing everything in a single draw call
Parameters
Parameter
Default Value
Note
texture
source
Return value
None.
Notes
Example
// Set a custom texture for shapes renderingtex=raylib.LoadTexture("atlas.png")
source= {x:0, y:0, width:1, height:1}
raylib.SetShapesTexturetex, source