Skip to contents

Set texture and rectangle to be used on shapes drawing.

Usage

set_shapes_texture(texture, source)

Arguments

texture

A texture.

source

A rectangle.

Note

This function has been auto-generated from the following Raylib function definition:

void SetShapesTexture(Texture2D texture, Rectangle source);

Examples

if (FALSE) {
set_shapes_texture(load_texture("file.png"), rectangle(10, 10, 200, 100))
}