As I understand it, to view a structure in 3d, one defines it in terms of polygons and to view it in 3d one gets a 2d projection of the individual polygons rotated according to the given angle in space. If this is the case...what is the role of Directx and OpenGL? I have heard that they provide the primitives to draw, like sphere, cube, polygons etc. So does directx help in rendering the prmitives in 3d? And is one of the jobs of a graphics games engine programmer to use the libraries and provide for the rendering of wire meshes etc? What else does a graphics game engine do? I am very new to the subject so please answer it in an easy to understand way.
Also does directx have facilities for handling lighting and texturing and can you tell me a little more about it?