summaryrefslogtreecommitdiff
path: root/source/platform/platform.h
blob: da8e0653187092005320c4986adaa3bcc0b23ee7 (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
#ifndef PLATFORM_H
#define PLATFORM_H

#define NIL 0

#include <X11/X.h>
#include <X11/Xlib.h>
 #include <X11/keysym.h>
#include <time.h>
#include <unistd.h>

typedef struct WindowProperties WindowProperties;
struct WindowProperties
{
    i32 x;
    i32 y;
    u32 height;
    u32 width;
    u32 border_width;
    i32 window_depth;
    u32 window_class;
    u64 value_mask;

};

typedef struct vertex vertex;

struct vertex
{
    i32 x;
    i32 y;
    i32 z;
};

typedef struct display_pos display_pos;

struct display_pos
{
    i32 x;
    i32 y;

};

typedef struct pos pos;
struct pos
{
    i32 x;
    i32 y;
    i32 z;

} ;




#endif /* PLATFORM_H */