• Advertisement
Sign in to follow this  

red lines

This topic is 3535 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 );

Share this post


Link to post
Share on other sites
Advertisement
gah - solved it. I had a rogue texture set in the base code and it was overriding the colour.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement