add android bindings for bg image transform
This commit is contained in:
@@ -80,6 +80,7 @@ interface FilamentInterop : Library {
|
||||
fun remove_ibl(viewer:Pointer);
|
||||
|
||||
fun set_background_image(viewer:Pointer, path:String);
|
||||
fun set_background_image_position(viewer:Pointer, x:Float, y:Float);
|
||||
|
||||
fun load_texture(asset:Pointer, path:String, renderableIndex:Int);
|
||||
fun set_texture(asset:Pointer);
|
||||
|
||||
@@ -231,6 +231,13 @@ class PolyvoxFilamentPlugin: FlutterPlugin, MethodCallHandler, ActivityAware {
|
||||
result.success("OK");
|
||||
}
|
||||
}
|
||||
"setBackgroundImagePosition" -> {
|
||||
executor.execute {
|
||||
val args = call.arguments as ArrayList<Any?>
|
||||
_lib.set_background_image_position(_viewer!!, (args[0] as Double).toFloat(), (args[1] as Double).toFloat())
|
||||
result.success("OK");
|
||||
}
|
||||
}
|
||||
"loadSkybox" -> {
|
||||
executor.execute {
|
||||
_lib.load_skybox(_viewer!!, getAssetPath(call.arguments as String))
|
||||
|
||||
Reference in New Issue
Block a user