ploting obj

1–>I am new to opengl i dont know how to plot the line by using 3 vertices i.e x,y,z .
The pixel is placed at xyz axis
and also how to zoom.

2–> I wants to draw 3d object and that must be moved (like aeroplain)

a line is defined by two points

glBegin(Gl_LINE);
glVertex2f(0, 0);
glVertex2f(1, 1);
glEnd();

this will draw a line from (0, 0) to (1, 1)

zooming can be accomplished by moving an object closer to the eye or farther or scaling the model
or …

  1. glTranslatef(…) - Translation
  2. glScalef(…) - scaling