DrawBillboardPro method
- @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.")
- Camera3D camera,
- Texture texture,
- Rectangle source,
- Vector3 position,
- Vector3 up,
- Vector2 size,
- Vector2 origin,
- double rotation,
- Color 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(
Camera3D camera,
Texture texture,
Rectangle source,
Vector3 position,
Vector3 up,
Vector2 size,
Vector2 origin,
double rotation,
Color 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,
);