Infinite level size with dynamic mesh / texture generation

Hello !

I would like to simulate a road which is “infinite”, i.e. the playground is not closed but my actor should be able to go infinitely into any direction and i would like to dynamically generate the ground and textures for its actual location.
Imagine for example a car driving west on a road.and I want the curvature of the road and its texture to be generated randomly, dynamically. on-the-fly.

Is this possible ? Can you please give me some C++ example / pointer on how to do this ?

thanks in advance,