Skip to content
Snippets Groups Projects
Commit a517873b authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Allow overlay disable

parent abff7283
No related branches found
No related tags found
1 merge request!277Resolves #334 window effect bugs
Pipeline #22457 passed
...@@ -237,6 +237,8 @@ void Overlay::_drawAxis(const Eigen::Matrix4d &pose, const Eigen::Vector3f &scal ...@@ -237,6 +237,8 @@ void Overlay::_drawAxis(const Eigen::Matrix4d &pose, const Eigen::Vector3f &scal
} }
void Overlay::draw(ftl::rgbd::FrameSet &fs, ftl::rgbd::FrameState &state, const Eigen::Vector2f &screenSize) { void Overlay::draw(ftl::rgbd::FrameSet &fs, ftl::rgbd::FrameState &state, const Eigen::Vector2f &screenSize) {
if (!value("enabled", false)) return;
double zfar = 8.0f; double zfar = 8.0f;
auto intrin = state.getLeft(); auto intrin = state.getLeft();
intrin = intrin.scaled(screenSize[0], screenSize[1]); intrin = intrin.scaled(screenSize[0], screenSize[1]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment