btt.h (310B)
1 #pragma once 2 3 #include "memory_arena.h" 4 #include "heightmap.h" 5 6 struct BTT { 7 BTT * left; 8 BTT * right; 9 10 BTT * left_sibling; 11 BTT * right_sibling; 12 BTT * bottom; 13 14 // u8 level; 15 }; 16 17 struct BTTs { 18 BTT * left_root; 19 BTT * right_root; 20 }; 21 22 BTTs btt_from_heightmap( const array2d< u16 > hm, MemoryArena * arena );