properly free memory in model/view matrix getters

This commit is contained in:
Nick Fisher
2023-11-03 22:43:04 +08:00
parent 48be185bba
commit 8120cbea6d
3 changed files with 16 additions and 4 deletions

View File

@@ -348,7 +348,7 @@ abstract class FilamentController {
Future<Matrix4> getCameraViewMatrix();
///
/// Set the camera position in world space.
/// Set the camera position in world space. Note this is not persistent - any viewport navigation will reset the camera transform.
///
Future setCameraPosition(double x, double y, double z);
@@ -374,7 +374,7 @@ abstract class FilamentController {
double aperture, double shutterSpeed, double sensitivity);
///
/// Rotate the camera by [rads] around the given axis.
/// Rotate the camera by [rads] around the given axis. Note this is not persistent - any viewport navigation will reset the camera transform.
///
Future setCameraRotation(double rads, double x, double y, double z);