add setMaterialInstanceAt to FilamentApp interface
This commit is contained in:
1 parent
3e6f95e0bf
commit
dc5c1161cc
2 files changed
+16
-1
No files matched your search
@@ -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