-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.SetShapesTexture
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
| Parameter | Default Value | Note |
|---|---|---|
| texture | ||
| source |
None.
// Set a custom texture for shapes rendering
tex = raylib.LoadTexture("atlas.png")
source = {x:0, y:0, width:1, height:1}
raylib.SetShapesTexture tex, source