Line ThickNess
I used glLineWidth to change the thinkness of a line i drew. But that also changes all the other lines to the same thinkness on the screen. I en/disabled GL_LINE_SMOOTH but it still happens. Is there a way I can make it so the thinkness will only change for that one line and not everything?
thx
nuke
Yeah.. you have to remember that OpenGL is a state-thingy (one of those american country-type things) *grin*
lol.. but you know what I mean :D. So if during one rendering frame you change the line width up, it will stay up until it''s brought down again. So just do this.
increase line width.
draw line.
decrease line width.
Note: this is something to remember for later, as soon as you get into using multitexturing e.t.c you''ll need to make sure you know this hehe, or you''ll find you run into problems
lol.. but you know what I mean :D. So if during one rendering frame you change the line width up, it will stay up until it''s brought down again. So just do this.
increase line width.
draw line.
decrease line width.
Note: this is something to remember for later, as soon as you get into using multitexturing e.t.c you''ll need to make sure you know this hehe, or you''ll find you run into problems
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement