add stride_align for onRgba (#6)
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
1c79d8dd88
commit
044bb260d9
9 changed files with 89 additions and 40 deletions
|
|
@ -23,9 +23,10 @@ class TextureRgbaRenderer {
|
|||
}
|
||||
|
||||
/// Provide the rgba data to the texture.
|
||||
Future<bool> onRgba(int key, Uint8List data, int height, int width) {
|
||||
Future<bool> onRgba(
|
||||
int key, Uint8List data, int height, int width, int stride_align) {
|
||||
return TextureRgbaRendererPlatform.instance
|
||||
.onRgba(key, data, height, width);
|
||||
.onRgba(key, data, height, width, stride_align);
|
||||
}
|
||||
|
||||
Future<int> getTexturePtr(int key) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue