blob: 31fe702dd25a0e9fae50aebc74ebc1fe83af67cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#ifndef FUSE_INTERNAL_H
#define FUSE_INTERNAL_H
#include "fuse.h"
#include "fuse_backend.h"
#define FUSE_TODO \
do { \
fprintf(stderr, "FUSE TODO: %s() in %s:%d\n", __func__, __FILE__, __LINE__); \
abort(); \
} while(0)
typedef struct {
void *data;
size_t idk;
} FuseHash;
struct fuse_canvas_t {
void *memory; // memory pointer to be slit into separate arenas
Arena arena; // arena the manages all our memory and will be split into smaller arenas
FuseCmd *cmdbuffer_ptr;
Arena element_data_arena;
FuseHash element_data; // persistent element data
size_t cmdbuffer_head;
size_t cmdbuffer_size;
size_t hot;
size_t active;
size_t current_frame;
size_t current_id;
float width;
float height;
float pointer_x;
float pointer_y;
uint64_t current_time_ns;
int pointer_state;
bool debug;
};
struct fuse_font_t {
int x;
};
struct fuse_style_t {
int x;
};
struct fuse_window_t {
int x;
};
static FuseCanvas f__canvas;
#endif
|