add setMaterialInstanceAt to FilamentApp interface
This commit is contained in:
@@ -557,6 +557,15 @@ class FFIFilamentApp extends FilamentApp<Pointer> {
|
||||
return instance;
|
||||
}
|
||||
|
||||
///
|
||||
///
|
||||
///
|
||||
Future setMaterialInstanceAt(ThermionEntity entity, int index,
|
||||
MaterialInstance materialInstance) async {
|
||||
RenderableManager_setMaterialInstanceAt(renderableManager, entity, index,
|
||||
(materialInstance as FFIMaterialInstance).pointer);
|
||||
}
|
||||
|
||||
///
|
||||
///
|
||||
///
|
||||
|
||||
@@ -196,7 +196,13 @@ abstract class FilamentApp<T> {
|
||||
///
|
||||
///
|
||||
Future<MaterialInstance> getMaterialInstanceAt(
|
||||
ThermionEntity entity, int index);
|
||||
ThermionEntity entity, int primitiveIndex);
|
||||
|
||||
///
|
||||
///
|
||||
///
|
||||
Future setMaterialInstanceAt(
|
||||
ThermionEntity entity, int primitiveIndex, MaterialInstance materialInstance);
|
||||
|
||||
///
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user