drawTextureNPatch function

void drawTextureNPatch(
  1. Texture2D texture,
  2. NPatchInfo nPatchInfo,
  3. Rectangle dest,
  4. Vector2 origin,
  5. double rotation,
  6. Color tint,
)

Draws a texture (or part of it) that stretches or shrinks nicely.

Implementation

void drawTextureNPatch(
  Texture2D texture,
  NPatchInfo nPatchInfo,
  Rectangle dest,
  Vector2 origin,
  double rotation,
  Color tint,
) {
  return library.DrawTextureNPatch(
    texture.ref,
    nPatchInfo.ref,
    dest.ref,
    origin.ref,
    rotation,
    tint.ref,
  );
}