kewuwsi
10-02-2007, 07:14 AM
Hi, all.
I have piece of code like this:
...................
glEnable(GL_LINE_SMOOTH);
//glEnable(GL_BLEND);
glDisable(GL_TEXTURE_2D);
glDisable(GL_LIGHTING);
glLineWidth(myWidth);
glBegin(GL_LINES);
glColor3fv(1.0, 1.0, 1.0);
glVertex3fv(centerPoint.getValue());
glVertex3fv(leadingPoint.getValue());
glEnd();
.................
just try to draw a white line:
The problem is, I always get a black line. Anybody know what could be the reason? anything related to the shaders I am using?
I have piece of code like this:
...................
glEnable(GL_LINE_SMOOTH);
//glEnable(GL_BLEND);
glDisable(GL_TEXTURE_2D);
glDisable(GL_LIGHTING);
glLineWidth(myWidth);
glBegin(GL_LINES);
glColor3fv(1.0, 1.0, 1.0);
glVertex3fv(centerPoint.getValue());
glVertex3fv(leadingPoint.getValue());
glEnd();
.................
just try to draw a white line:
The problem is, I always get a black line. Anybody know what could be the reason? anything related to the shaders I am using?