]> git.lizzy.rs Git - nothing.git/blob - src/game/level/level_editor/proto_rect.h
(#788) Introduced bugs
[nothing.git] / src / game / level / level_editor / proto_rect.h
1 #ifndef PROTO_RECT_H_
2 #define PROTO_RECT_H_
3
4 typedef struct RectLayer RectLayer;
5
6 typedef struct {
7     // TODO: ProtoRect cannot be deactivated after unpressed
8     bool active;
9     Sint32 x, y;
10     Vec begin, end;
11 } ProtoRect;
12
13 int proto_rect_render(const ProtoRect *proto_rect,
14                       Camera *camera,
15                       Color color);
16 int proto_rect_event(ProtoRect *proto_rect,
17                      const SDL_Event *event,
18                      const Camera *camera,
19                      Color color,
20                      RectLayer *layer);
21
22 #endif  // PROTO_RECT_H_