need help with draw straight line and dotline

Hello everyone…I’m kind of newbie in this forum and thia openGL I really need help u guys or some walkthrough would be great…

since I’m a novice…I 'really want to know how to draw straight line and dot line using opengGL…

then I want to incorporate it with the button…
is it possbile…?

really need help u guys expertise outside there…

thanks in advanced

Have you tried http://nehe.gamedev.net ? There are nice tutorials there. As for making lines dotted, glLineStipple and glEnable(GL_LINE_STIPPLE) are the calls you should make.

// David