feat: add getCameraFov to FilamentViewer
This commit is contained in:
@@ -86,7 +86,9 @@ namespace thermion_filament
|
|||||||
bool setCamera(EntityId asset, const char *nodeName);
|
bool setCamera(EntityId asset, const char *nodeName);
|
||||||
void setMainCamera();
|
void setMainCamera();
|
||||||
EntityId getMainCamera();
|
EntityId getMainCamera();
|
||||||
void setCameraFov(double fovDegrees, double aspect);
|
|
||||||
|
float getCameraFov(bool horizontal);
|
||||||
|
void setCameraFov(double fovDegrees, bool horizontal);
|
||||||
|
|
||||||
void createSwapChain(const void *surface, uint32_t width, uint32_t height);
|
void createSwapChain(const void *surface, uint32_t width, uint32_t height);
|
||||||
void destroySwapChain();
|
void destroySwapChain();
|
||||||
@@ -188,8 +190,6 @@ namespace thermion_filament
|
|||||||
Skybox *_skybox = nullptr;
|
Skybox *_skybox = nullptr;
|
||||||
Texture *_iblTexture = nullptr;
|
Texture *_iblTexture = nullptr;
|
||||||
IndirectLight *_indirectLight = nullptr;
|
IndirectLight *_indirectLight = nullptr;
|
||||||
bool _recomputeAabb = false;
|
|
||||||
bool _actualSize = false;
|
|
||||||
|
|
||||||
float _frameInterval = 1000.0 / 60.0;
|
float _frameInterval = 1000.0 / 60.0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user