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

Set camera cursors

parent 8221d646
No related branches found
No related tags found
1 merge request!316Resolves #343 GUI and Frame Refactor
Pipeline #28369 failed
......@@ -353,6 +353,12 @@ CameraView::CameraView(ftl::gui2::Screen* parent, ftl::gui2::Camera* ctrl) :
imview_ = new ftl::gui2::FTLImageView(this);
panel_ = new ftl::gui2::MediaPanel(screen(), ctrl);
if (ctrl_->isMovable()) {
imview_->setCursor(nanogui::Cursor::Hand);
} else {
imview_->setCursor(nanogui::Cursor::Crosshair);
}
}
CameraView::~CameraView() {
......
......@@ -111,6 +111,7 @@ void ftl::gui2::ImageView::bindImage(GLuint imageId) {
mImageID = imageId;
updateImageParameters();
}
Vector2f ftl::gui2::ImageView::imageCoordinateAt(const Vector2f& position) const {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment