src/editmodes/drawmode.h

Fri, 04 Jul 2014 23:44:44 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Fri, 04 Jul 2014 23:44:44 +0300
changeset 826
d7a21e4a4ec3
parent 825
f7649c9bfd9a
child 827
82469b40567e
permissions
-rw-r--r--

- merged with main

#include "abstracteditmode.h"

class DrawMode : public AbstractDrawMode
{
	DEFINE_CLASS (DrawMode, AbstractDrawMode)
	bool _rectdraw;

public:
	DrawMode (GLRenderer* renderer);

	virtual void render (QPainter& painter) const override;
	virtual EditModeType type() const override;
	virtual bool preAddVertex (Vertex const& pos) override;
	virtual bool mouseReleased (MouseEventData const& data) override;
	virtual bool mouseMoved (QMouseEvent*) override;

private:
	void updateRectVerts();
};

mercurial