DrawBillboardPro method

  1. @override
  2. @Deprecated("Broken by a dart:ffi bug: the trailing Color argument gets corrupted " "(or crashes) once the preceding float-only args exceed the CPU's 8 " "float registers. Use DrawBillboard/DrawBillboardRec, or wait for the fix. " "See dart-lang/sdk#63976.")
void DrawBillboardPro(
  1. Camera3DD camera,
  2. TextureD texture,
  3. RectangleD source,
  4. Vector3D position,
  5. Vector3D up,
  6. Vector2D size,
  7. Vector2D origin,
  8. double rotation,
  9. ColorD tint,
)
override

Draw a billboard texture defined by source and rotation

Implementation

@override
@Deprecated(
  "Broken by a dart:ffi bug: the trailing Color argument gets corrupted "
  "(or crashes) once the preceding float-only args exceed the CPU's 8 "
  "float registers. Use DrawBillboard/DrawBillboardRec, or wait for the fix. "
  "See dart-lang/sdk#63976."
)
void DrawBillboardPro(
  Camera3DD camera,
  TextureD texture,
  RectangleD source,
  Vector3D position,
  Vector3D up,
  Vector2D size,
  Vector2D origin,
  double rotation,
  ColorD tint,
) => _ffi.DrawBillboardPro(
  $.Camera3D$.Ref1(camera).asNativePointer<Camera3DC>().ref,
  $.Texture$.Ref1(texture).asNativePointer<TextureC>().ref,
  $.Rectangle$.Ref1(source).asNativePointer<RectangleC>().ref,
  $.Vector3$.Ref1(position).asNativePointer<Vector3C>().ref,
  $.Vector3$.Ref2(up).asNativePointer<Vector3C>().ref,
  $.Vector2$.Ref1(size).asNativePointer<Vector2C>().ref,
  $.Vector2$.Ref2(origin).asNativePointer<Vector2C>().ref,
  rotation,
  $.Color$.Ref1(tint).asNativePointer<ColorC>().ref,
);