void CALLBACK cb_end_data(void *data) { Tessellator *tess = static_cast<Tessellator *>(data); tess->finalize_primitive(); }