View Full Version : GL_LINE wireframe... color
PollyPocket4eva
11-07-2008, 04:24 PM
Hi, I am using the function glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
to display my scene in wireframe and am wondering whether it is possible to specify the wire color of a particular object.
Please help. Thanks!
ZbuffeR
11-08-2008, 12:50 AM
set the color for the object before sending the commands to draw it.
then set back the color to its original value before sending the commands for the other objects.
ie :
glColor3ub(255,255,0); // bright yellow
// draw object here ...
glColor3ub(255,255,255); // back to default white
http://www.opengl.org/sdk/docs/man/
http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.