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");
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
import 'dart:typed_data';
|
||||
|
||||
export './texture_rgba_ffi.dart';
|
||||
|
||||
import 'texture_rgba_renderer_platform_interface.dart';
|
||||
|
||||
class TextureRgbaRenderer {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// ignore: unused_import
|
||||
// ignore: unused_import, unnecessary_import
|
||||
import 'dart:io';
|
||||
// Compatible with lint in Flutter 3.0.5
|
||||
// ignore: unused_import
|
||||
// ignore: unused_import, unnecessary_import
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue