I'm new to OpenGL. I simply want to thicken one line using glLineWidth, but that also affects all other lines as well. So I tried the other way by putting glLineWidth inside between begin and end, then it didn't work. My code is shown below:
glBegin(GL_LINES);
glLineWidth(3);
glVertex2f(5, 10);
glVertex2f(30, 35);
glEnd();
glBegin(GL_LINES);
glVertex2f(20, 25);
glVertex2f(50, 55);
glEnd();
So is there any way to make only this line thicken? I've been googling but can't find a simple solution :S