Hi,
I'm using QGLView and glColor3f to set a line colour to any colour, but it
only renders black lines.
For example:
void CubeView::plotLine( QVector3D start, QVector3D end )
{
glColor3f(1.0f,1.0f,1.0f); // Set my lines colour...
glLineWidth(3.0);
glEnable(GL_LINE_SMOOTH);
glBegin(GL_LINES);
glVertex3f(start.x(), start.y(), start.z());
glVertex3f(end.x(), end.y(), end.z());
glEnd();
glFlush();
}
Regardless of values is glColor3f, black is the only line colour drawn.
Suggestions gratefully received.
Niall.
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development