DrawTextureRec method

  1. @override
void DrawTextureRec(
  1. Texture texture,
  2. Rectangle source,
  3. Vector2 position,
  4. Color tint,
)
override

Draw a part of a texture defined by a rectangle

Implementation

@override
void DrawTextureRec(
  Texture texture,
  Rectangle source,
  Vector2 position,
  Color 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,
);