DrawTextureNPatch method

  1. @override
void DrawTextureNPatch(
  1. TextureD texture,
  2. NPatchInfoD nPatchInfo,
  3. RectangleD dest,
  4. Vector2D origin,
  5. double rotation,
  6. ColorD tint,
)
override

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

Implementation

@override
void DrawTextureNPatch(
  TextureD texture,
  NPatchInfoD nPatchInfo,
  RectangleD dest,
  Vector2D origin,
  double rotation,
  ColorD 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,
);