]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - src/client/client_node.h
e3884f13091d69180406fbf6719d4cc629b662d5
[dragonblocks_alpha.git] / src / client / client_node.h
1 #ifndef _CLIENT_NODE_H_
2 #define _CLIENT_NODE_H_
3
4 #include "client/object.h"
5 #include "client/texture.h"
6 #include "map.h"
7
8 typedef enum
9 {
10         NV_NONE,
11         NV_TRANSPARENT,
12         NV_SOLID,
13 } NodeVisibility;
14
15 typedef struct
16 {
17         struct
18         {
19                 char *paths[6];                 // input
20                 int indices[6];                 // input
21                 Texture *textures[6];   // output
22         } tiles;
23         NodeVisibility visibility;
24         void (*render)(v3s32 pos, MapNode *node, Vertex3D *vertex, int f, int v);
25 } ClientNodeDefintion;
26
27 extern ClientNodeDefintion client_node_definitions[];
28 void client_node_init();
29
30 #endif