DrawTextureNPatch method

  1. @override
void DrawTextureNPatch(
  1. Texture texture,
  2. NPatchInfo nPatchInfo,
  3. Rectangle dest,
  4. Vector2 origin,
  5. double rotation,
  6. Color tint,
)
override

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

Implementation

@override
void DrawTextureNPatch(
  Texture texture,
  NPatchInfo nPatchInfo,
  Rectangle dest,
  Vector2 origin,
  double rotation,
  Color tint,
) => _ffi.DrawTextureNPatch(
  Texture$.Ref1(texture).asNativePointer<TextureC>().ref,
  NPatchInfo$.Ref1(nPatchInfo).asNativePointer<NPatchInfoC>().ref,
  Rectangle$.Ref1(dest).asNativePointer<RectangleC>().ref,
  Vector2$.Ref1(origin).asNativePointer<Vector2C>().ref,
  rotation,
  Color$.Ref1(tint).asNativePointer<ColorC>().ref,
);