bump: 0.0.12

This commit is contained in:
Kingtous 2023-03-03 02:16:13 +00:00
parent 8d66a7c55e
commit f15e5eee20
8 changed files with 36 additions and 33 deletions

View file

@ -1,9 +1,9 @@
import 'dart:ffi';
typedef F1 = Void Function(Pointer<Void> ptr, Pointer<Uint8> buffer, Int len,
Int32 width, Int32 height, Int stride_align);
Int32 width, Int32 height, Int strideAlign);
typedef F1Dart = void Function(Pointer<Void> ptr, Pointer<Uint8> buffer,
int len, int width, int height, int stride_align);
int len, int width, int height, int strideAlign);
class Native {
Native._();

View file

@ -24,9 +24,9 @@ class TextureRgbaRenderer {
/// Provide the rgba data to the texture.
Future<bool> onRgba(
int key, Uint8List data, int height, int width, int stride_align) {
int key, Uint8List data, int height, int width, int strideAlign) {
return TextureRgbaRendererPlatform.instance
.onRgba(key, data, height, width, stride_align);
.onRgba(key, data, height, width, strideAlign);
}
Future<int> getTexturePtr(int key) {

View file

@ -38,13 +38,13 @@ class MethodChannelTextureRgbaRenderer extends TextureRgbaRendererPlatform {
@override
Future<bool> onRgba(
int key, Uint8List data, int height, int width, int stride_align) async {
int key, Uint8List data, int height, int width, int strideAlign) async {
return await methodChannel.invokeMethod<bool>('onRgba', {
"data": data,
"height": height,
"width": width,
"key": key,
"stride_align": stride_align,
"stride_align": strideAlign,
}) ??
false;
}

View file

@ -40,7 +40,7 @@ abstract class TextureRgbaRendererPlatform extends PlatformInterface {
}
Future<bool> onRgba(
int key, Uint8List data, int height, int width, int stride_align) {
int key, Uint8List data, int height, int width, int strideAlign) {
throw UnimplementedError('onRgba() has not been implemented.');
}