drawing flat and smooth frame requires calculation of the normal of the surfaces and need alot of effort to do in coding part
am i right?
is there a function in opengl i can use to skip all those horible calculation for normal in order to draw flat or smooth polygon?
Nope, but it’s not that difficult to do, and if you don’t want to do it yourself, then download the source code for the Graphics Gems books, one of them (sorry, don’t rember wich one) has complete source code that calculates all the normals for a mesh to create a nice smooth object.
do u mind to tell me where i can obtain these information please?