I’m using opengl on a mac, with a voodoo 2 card. The actual procedures are like so:
GLvoid DrawBuilding(int by, int bx)
{
glPushMatrix();
glTranslatef(bx * griddist,by * griddist,0.0f);
glEnable(GL_LINE_SMOOTH);
glLineWidth(160000/(px*px));
{where px is your distance away, a value ranging from anything up to a distance of 600}
This is then used to draw a large grid of vertical lines, disappearing into the distance. It works perfectly, except the line widths do not change. Replacing GL_LINES with GL_POINTS and glLineWidth with glPointSize gives a series of points which get bigger when you get closer, and I was hoping to do this also with lines.
How do I change the minimum and maximum linewidths? I tried out the previous procedure and recieved 0.0 for min and 10.0 for max… is it a fault with the driver? (I know that on some ati drivers, points come out as squares even with GL_POINT_SMOOTH enabled, is this a similar case?) I appreciate your comments
Even staying within the range of 0.0 and 10.0, I’m getting just single thickness lines (using glLineWidth(8.0f) for example). There aren’t any other variables to enable beforehand ?