]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - src/client/client.h
Improve batch rendering: Use multiple OpenGL texture units
[dragonblocks_alpha.git] / src / client / client.h
1 #ifndef _CLIENT_H_
2 #define _CLIENT_H_
3
4 #include <stdbool.h>
5 #include <pthread.h>
6 #include "client/client_commands.h"
7 #include "client/scene.h"
8 #include "server/server_commands.h"
9 #include "network.h"
10 #include "types.h"
11
12 #ifdef RELEASE
13         #define RESSOURCEPATH ""
14 #else
15         #define RESSOURCEPATH "../"
16 #endif
17
18 typedef struct Client
19 {
20         int fd;
21         pthread_mutex_t mtx;
22         ClientState state;
23         char *name;
24 } Client;
25
26 void client_disconnect(bool send, const char *detail);
27 void client_send_position(v3f64 pos);
28
29 #endif