On 21 Aug 2013, at 13:11, niallcwhe...@eircom.net wrote:
> Regardless of values is glColor3f, black is the only line colour drawn.
>
> Suggestions gratefully received.
Do you have lighting enabled? If so you probably want to disable it while
drawing the lines, and then re-enable it. Or you can
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);