setShapesTexture function

void setShapesTexture(
  1. Texture2D texture,
  2. Rectangle source
)

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.

Implementation

void setShapesTexture(Texture2D texture, Rectangle source) {
  return library.SetShapesTexture(texture.ref, source.ref);
}