drawTextureRec function

void drawTextureRec(
  1. Texture2D texture,
  2. Rectangle source,
  3. Vector2 position,
  4. Color tint,
)

Draw a part of a texture defined by a rectangle.

Implementation

void drawTextureRec(
  Texture2D texture,
  Rectangle source,
  Vector2 position,
  Color tint,
) {
  return library.DrawTextureRec(
    texture.ref,
    source.ref,
    position.ref,
    tint.ref,
  );
}