Heightmap rendering implementation

Signed-off-by: Paul Holden <paulholden2@gmail.com>

- Add implementation for ipbuf_init/add_object/deinit.

- Rework heightmap attribute generation, removing internals like
  hmap_pos/nrm.

- Do some miscellaneous code cleanup, e.g. parameter names