src/editmodes/drawmode.h

Sat, 05 Jul 2014 01:17:48 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Sat, 05 Jul 2014 01:17:48 +0300
changeset 827
82469b40567e
parent 825
f7649c9bfd9a
child 829
bb903e89e23c
permissions
-rw-r--r--

- now compiles

#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 endDraw();
	void updateRectVerts();
};

mercurial