diff options
author | Thomas--S <Thomas--S@users.noreply.github.com> | 2017-04-22 21:17:46 +0200 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2018-01-03 04:05:21 +0000 |
commit | f3b9d8707691b16d9c8b6a2e9e13db54b091dc93 (patch) | |
tree | 7eb55d8965838aa0b0af74d7d30519a9b5a6d053 /src/nodedef.h | |
parent | 345e1041a204ca9d40a25b71ae239ce3275f0755 (diff) | |
download | minetest-f3b9d8707691b16d9c8b6a2e9e13db54b091dc93.tar.gz minetest-f3b9d8707691b16d9c8b6a2e9e13db54b091dc93.tar.bz2 minetest-f3b9d8707691b16d9c8b6a2e9e13db54b091dc93.zip |
Connected Nodeboxes: Add `disconnected` boxes
The `disconnected_*` boxes are the opposites of the `connect_*` ones,
i.e. when a node has no suitable neighbours on the respective side, the
according disconnected box is drawn.
* disconnected_top
* disconnected_bottom
* disconnected_front
* disconnected_left
* disconnected_back
* disconnected_right
* disconnected (when there is *no* neighbour)
* disconnected_sides (when there are *no* neighbours to the sides)
Diffstat (limited to 'src/nodedef.h')
-rw-r--r-- | src/nodedef.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nodedef.h b/src/nodedef.h index 790c7fd28..d46712310 100644 --- a/src/nodedef.h +++ b/src/nodedef.h @@ -107,6 +107,14 @@ struct NodeBox std::vector<aabb3f> connect_left; std::vector<aabb3f> connect_back; std::vector<aabb3f> connect_right; + std::vector<aabb3f> disconnected_top; + std::vector<aabb3f> disconnected_bottom; + std::vector<aabb3f> disconnected_front; + std::vector<aabb3f> disconnected_left; + std::vector<aabb3f> disconnected_back; + std::vector<aabb3f> disconnected_right; + std::vector<aabb3f> disconnected; + std::vector<aabb3f> disconnected_sides; NodeBox() { reset(); } |