one of the Floater97's implementation, and use it to map a image on a modal
the draw function just do the painting work in a simple way,you need to write other OpenGL's code to run it.
with the function draw(args) you can get the parameterized model with the function draw(flename,args) you can map the image(BMP) on the model
to run the code,you need intel MKL library