bump: 0.0.7
This commit is contained in:
parent
4f059a9138
commit
0cda2d38d4
8 changed files with 144 additions and 66 deletions
20
lib/texture_rgba_ffi.dart
Normal file
20
lib/texture_rgba_ffi.dart
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import 'dart:ffi';
|
||||
|
||||
typedef F1 = Void Function(
|
||||
Pointer<Void> ptr, Pointer<Uint8> buffer, Int32 width, Int32 height);
|
||||
typedef F1Dart = void Function(
|
||||
Pointer<Void> ptr, Pointer<Uint8> buffer, int width, int height);
|
||||
|
||||
class Native {
|
||||
Native._();
|
||||
|
||||
static Native get _instance => Native._()..init();
|
||||
static Native get instance => _instance;
|
||||
|
||||
late F1Dart onRgba;
|
||||
|
||||
init() {
|
||||
final lib = DynamicLibrary.process();
|
||||
onRgba = lib.lookupFunction<F1, F1Dart>("FlutterRgbaRendererPluginOnRgba");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue