replaced static offset with an offsetof call, this makes things better for the future
renamed cubeMesh to cube, as it's clear that it returns a mesh
added bind and unbind to mesh, to remove code duplication