red lines
I draw a mesh in black and then I draw lines over the top of it using DrawArrays. Fun thing is that no matter what I set the colour to the lines are always in red. Any idea what I am doing wrong?
Code:
glDisable(GL_BLEND);
glColor3f(0.0f,0.0f,0.0f);
glInterleavedArrays( GL_V3F, 0, m_pTris );
glDrawArrays( GL_TRIANGLES, 0, m_vTriMeshPrimitives.size() * 3 );
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE);
glBlendFunc(GL_DST_ALPHA, GL_ONE);
glColor3f(1.0f,1.0f,1.0f);
glScalef(1.00001f,1.00001f,1.00001f);
glInterleavedArrays( GL_V3F, 0, m_pLines );
glDrawArrays( GL_LINES, 0, m_dwNumLines * 2 );
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement