DrawTextureRec method

  1. @override
void DrawTextureRec(
  1. TextureD texture,
  2. RectangleD source,
  3. Vector2D position,
  4. ColorD tint,
)
override

Draw a part of a texture defined by a rectangle

Implementation

@override
void DrawTextureRec(
  TextureD texture,
  RectangleD source,
  Vector2D position,
  ColorD tint,
) => _ffi.DrawTextureRec(
  $.Texture$.Ref1(texture).asNativePointer<TextureC>().ref,
  $.Rectangle$.Ref1(source).asNativePointer<RectangleC>().ref,
  $.Vector2$.Ref1(position).asNativePointer<Vector2C>().ref,
  $.Color$.Ref1(tint).asNativePointer<ColorC>().ref,
);