-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathengine.hpp
More file actions
73 lines (66 loc) · 1.44 KB
/
Copy pathengine.hpp
File metadata and controls
73 lines (66 loc) · 1.44 KB
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
64
65
66
67
68
69
70
71
72
73
#ifndef ENGINE_CVE_H
#define ENGINE_CVE_H
#include <cstdint>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/extensions/XShm.h>
#include <time.h>
typedef int32_t CID;
extern "C" struct cluster {
int32_t root;
int32_t node;
int32_t prev;
int32_t next;
int32_t size;
int32_t super;
int32_t total;
int32_t id;
int32_t mask;
int32_t x;
int32_t y;
int32_t x_min;
int32_t x_max;
int32_t y_min;
int32_t y_max;
int32_t __pad;
};
extern "C" struct map {
Display *display;
Screen *screen;
XImage *GameImage;
XImage *OutputImage;
XSizeHints *SizeHintsGameWindow;
XSizeHints *SizeHints;
int32_t GameWindow;
int32_t OutputWindow;
int32_t running;
int32_t frameno;
XShmSegmentInfo shminfo;
struct timespec time_start;
struct timespec time_target;
struct timespec time_iddle;
int64_t bytes_partition;
int64_t bytes_clusters;
int64_t bytes_cluster_list;
int64_t bytes_framebuffer;
int64_t bytes_backbuffer;
int64_t offset_partition;
int64_t offset_clusters;
int64_t offset_cluster_list;
int64_t offset_framebuffer;
int64_t offset_backbuffer;
int64_t pixels;
int32_t width;
int32_t height;
int32_t pitch;
int32_t red_shift;
int32_t green_shift;
int32_t blue_shift;
};
static_assert(256 == sizeof(struct map));
extern "C" void *EngineInit(void);
extern "C" void EngineFree(void *base);
extern "C" int EngineUpdateAndRender(void *base);
extern "C" void EngineTime(void *base);
extern "C" void EngineDelay(void *base);
#endif