Question For Rendering

Ok i was wondering after i have read this.
http://nehe.gamedev.net/tutorial/cel_shading/25001/
Is it in any way possible to turn the Dx Open Gl rendering file to a working toon shader ?
http://nehe.gamedev.net/tutorial/cel_shading/25001/
Is it in any way possible to turn the Dx Open Gl rendering file to a working toon shader ?