The Update(TM), Part 1
This commit is contained in:
23
src/tool.h
23
src/tool.h
@@ -1,23 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "input.h"
|
||||
|
||||
enum ToolType
|
||||
{
|
||||
TOOL_PAN,
|
||||
TOOL_MOVE,
|
||||
TOOL_ROTATE,
|
||||
TOOL_SCALE,
|
||||
TOOL_CROP,
|
||||
TOOL_COUNT
|
||||
};
|
||||
|
||||
struct Tool
|
||||
{
|
||||
Input* input = NULL;
|
||||
ToolType type = TOOL_PAN;
|
||||
bool isEnabled = false;
|
||||
};
|
||||
|
||||
void tool_init(Tool* self, Input* input);
|
||||
void tool_tick(Tool* self);
|
||||
Reference in New Issue
Block a user