bump: 0.0.12
This commit is contained in:
parent
8d66a7c55e
commit
f15e5eee20
8 changed files with 36 additions and 33 deletions
|
|
@ -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._();
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue