Download the Waves program with source code.


(Click here to enlarge)

This program gives you an idea of how to map a single texture to a 3D moving object.  Its not a perfect wave generator but it still is a good effect.  You can make a wave by pressing PageUp or PageDown.


P300, 64MB, with a decent video card that supports OpenGL.