it's kind of finished
This commit is contained in:
23
src/tool.h
Normal file
23
src/tool.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include "input.h"
|
||||
|
||||
#define TOOL_COUNT (TOOL_CROP + 1)
|
||||
enum ToolType
|
||||
{
|
||||
TOOL_PAN,
|
||||
TOOL_MOVE,
|
||||
TOOL_ROTATE,
|
||||
TOOL_SCALE,
|
||||
TOOL_CROP
|
||||
};
|
||||
|
||||
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