DrawTextureNPatch method
void
DrawTextureNPatch(
- Texture texture,
- NPatchInfo nPatchInfo,
- Rectangle dest,
- Vector2 origin,
- double rotation,
- 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,
);