Waving Flag

I am completely new to 3d or any graphics programming. However I need to create a screen where the whole surface is a waving flag. It will have a red satin like texture. The waves must be random and it must run on Win95/98/NT and 2000. All I need is a starting point to get me going, may be a sample or two. I will appreciate any help.

check our nehe.gamedev.net I think they have a flag tutorial