diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2013-03-24 12:24:17 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2013-03-24 12:24:17 (GMT) |
| commit | 9b5b85f9b01cbda7ef9a7ec2a15b2a35630a5b9d (patch) | |
| tree | ac7d040253b459ce102e476cb19ab59e3cfa90d7 /src/game/DecorationTool.h | |
| parent | 6bf98ccdca39936a3c51367862eed7c49f8786ec (diff) | |
| parent | bdc69f31c0be94191015838886bdcc2bc67f1acb (diff) | |
| download | powder-9b5b85f9b01cbda7ef9a7ec2a15b2a35630a5b9d.zip powder-9b5b85f9b01cbda7ef9a7ec2a15b2a35630a5b9d.tar.gz | |
Merge branch 'reorganisation' of github.com:FacialTurd/The-Powder-Toy
Diffstat (limited to 'src/game/DecorationTool.h')
| -rw-r--r-- | src/game/DecorationTool.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/game/DecorationTool.h b/src/game/DecorationTool.h deleted file mode 100644 index 679c854..0000000 --- a/src/game/DecorationTool.h +++ /dev/null @@ -1,43 +0,0 @@ - -#ifndef DECORATIONTOOL_H_ -#define DECORATIONTOOL_H_ - -#include "Tool.h" - -class DecorationTool: public Tool -{ -public: - enum ToolType { BlendAdd = DECO_ADD, BlendRemove = DECO_SUBTRACT, BlendMultiply = DECO_MULTIPLY, BlendDivide = DECO_DIVIDE, BlendSet = DECO_DRAW, BlendSmudge = DECO_SMUDGE, Remove = DECO_CLEAR }; - - ToolType decoMode; - - unsigned char Red; - unsigned char Green; - unsigned char Blue; - unsigned char Alpha; - - DecorationTool(ToolType decoMode_, string name, string description, int r, int g, int b, std::string identifier): - Tool(0, name, description, r, g, b, identifier), - decoMode(decoMode_), - Red(0), - Green(0), - Blue(0), - Alpha(0) - { - } - virtual ~DecorationTool() {} - virtual void Draw(Simulation * sim, Brush * brush, ui::Point position){ - sim->ApplyDecorationPoint(position.X, position.Y, Red, Green, Blue, Alpha, decoMode, brush); - } - virtual void DrawLine(Simulation * sim, Brush * brush, ui::Point position1, ui::Point position2, bool dragging) { - sim->ApplyDecorationLine(position1.X, position1.Y, position2.X, position2.Y, Red, Green, Blue, Alpha, decoMode, brush); - } - virtual void DrawRect(Simulation * sim, Brush * brush, ui::Point position1, ui::Point position2) { - sim->ApplyDecorationBox(position1.X, position1.Y, position2.X, position2.Y, Red, Green, Blue, Alpha, decoMode); - } - virtual void DrawFill(Simulation * sim, Brush * brush, ui::Point position) { - - } -}; - -#endif |
