DrawTexture method

  1. @override
void DrawTexture(
  1. TextureD texture,
  2. int posX,
  3. int posY,
  4. ColorD tint,
)
override

Draw a Texture2D

Implementation

@override
void DrawTexture(
  TextureD texture,
  int posX,
  int posY,
  ColorD tint,
) => _ffi.DrawTexture(
  $.Texture$.Ref1(texture).asNativePointer<TextureC>().ref,
  posX,
  posY,
  $.Color$.Ref1(tint).asNativePointer<ColorC>().ref,
);