src/ui/canvas.h

Fri, 07 Feb 2020 02:01:21 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Fri, 07 Feb 2020 02:01:21 +0200
changeset 49
d56cc7387dad
parent 47
cd6704009eb9
child 51
1a9eac27698d
permissions
-rw-r--r--

wrote the id color in terms of the id value in the shader now that I can get the id to the shader properly

#pragma once
#include "gl/partrenderer.h"

class Canvas : public PartRenderer
{
	Q_OBJECT
public:
	Canvas(
		Model* model,
		DocumentManager* documents,
		const ldraw::ColorTable& colorTable,
		QWidget* parent = nullptr);
protected:
	void mouseMoveEvent(QMouseEvent* event) override;
signals:
	void newStatusText(const QString& newStatusText);
};

mercurial