diff options
| author | Vasco <[email protected]> | 2026-08-23 02:25:33 +0100 |
|---|---|---|
| committer | Vasco <[email protected]> | 2026-08-23 02:25:33 +0100 |
| commit | dc96fcd771bea09d726a760266739906e95c09a6 (patch) | |
| tree | 5af4d4d7660a90a04016fae4defec3c2a422477d /Fuse/fuse_backend.h | |
Peak 0.1.1
Diffstat (limited to 'Fuse/fuse_backend.h')
| -rw-r--r-- | Fuse/fuse_backend.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Fuse/fuse_backend.h b/Fuse/fuse_backend.h new file mode 100644 index 0000000..57f9f80 --- /dev/null +++ b/Fuse/fuse_backend.h @@ -0,0 +1,42 @@ +#ifndef FUSE_BACKEND_H +#define FUSE_BACKEND_H + +typedef enum { + FUSE_CMD_CLIP = 0, + FUSE_CMD_RECT, + FUSE_CMD_LINE, + FUSE_CMD_COUNT +} FuseCmdType; + +typedef struct { + float x, y, w, h; +} FuseClip; + +typedef struct { + float x, y, w, h; + uint32_t color; +} FuseRect; + +typedef struct { + float x1, y1, x2, y2; + float thickness; + uint32_t color; +} FuseLine; + +typedef struct { + union { + FuseClip clip; + FuseRect rect; + FuseLine line; + }; + uint8_t type; +} FuseCmd; + + +static const char* fuse_cmd_name[] = { + [FUSE_CMD_RECT] = "RECT", + [FUSE_CMD_CLIP] = "CLIP", + [FUSE_CMD_LINE] = "LINE", +}; + +#endif |
