This library provides only hexagon related computations and is renderer agnostic. The examples below have been rendered using Cinder.
l = hex::layout::hexagonal(6);
l -= hex::layout::hexagonal(3);
l += hex::layout::parallelogram(10, 10, layout::options::vertical);
l += hex::layout::parallelogram(10, 10, layout::options::standard);
l -= hex::layout::hexagonal(3);
l += hex::layout::hexagonal(1);
vec2 v = vec2(e.getPos()) - getWindowCenter();
hex::point p(v.x, v.y);
hover = hex::lattice::point_to_cell(p, orientation, radius);
Red Blob Games: http://www.redblobgames.com/grids/hexagons/