the glmDraw function defined by him uses glVector3fv to render each polygon.Now i want to rasterize the triangles myself using a simple rasterization algorithm but i need x,y,z coordinates for that.Can anyone tell me how i can extract the x y z coordinates of vertices from the vector datastructures.
No, they are in world-space. All coordinates are given as floats, since a 3D environment is continuous, integers would only allow you to have discrete steps, which would be useless.
Try reading some book or beginners tutorials about OpenGL, many things will become clear to you then.
Abhijith: …are they relative to the screen…
you provide them in model space then they get “transformed” to eyespace with the Modelview matrix and to screen space with the ModelViewProjection matrix. this is a bit advanced if you are really new to 3d graphics. reading the OpenGL bible would help.