add missing Camera_getFov method
This commit is contained in:
1 parent
cf8e0f6ed2
commit
aaa74f0267
1 file changed
+5
@@ -66,6 +66,11 @@ namespace thermion
|
||||
return camera->getFocusDistance();
|
||||
}
|
||||
|
||||
EMSCRIPTEN_KEEPALIVE float Camera_getFov(TCamera *tCamera, bool horizontal) {
|
||||
auto *camera = reinterpret_cast<Camera *>(tCamera);
|
||||
return camera->getFieldOfViewInDegrees(horizontal ? Camera::Fov::HORIZONTAL : Camera::Fov::VERTICAL);
|
||||
}
|
||||
|
||||
EMSCRIPTEN_KEEPALIVE double4x4 Camera_getProjectionMatrix(TCamera *const tCamera) {
|
||||
auto *camera = reinterpret_cast<Camera *>(tCamera);
|
||||
return convert_mat4_to_double4x4(camera->getProjectionMatrix());
|
||||
|
||||
Reference in new issue
Block a user