Skip to content

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

Parameters

Parameter Default Value Note
texture
source

Return value

None.

Notes

Example

// 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

Clone this wiki locally