use bgfx's new C99 API