Rendering single lines

Allright, this may sound as a very dumb question to most of you developers here, but I’m still going to ask it…

So, I wonder if it’s possible to render a single, (un)colored, (un)lightened, (un)textured line in OpenGL? I mean, I might just draw a really thin square, but woulnd’t that be unneficient, and unneccessary, since I only want to draw a single line?

glBegin(GL_LINES);
{
glVertex(start point);
glVertex(end point);
}
glEnd();

For (un)lit, (un)textured lines, enable/disable states as you wich. If you want textures, enable it. If you don’t want lighting, disable it, and so on.

Hey, thanks man! You really helped me!