|
Author |
Topic: bezierVertex and text drawing order (Read 330 times) |
|
mattgilbert
|
bezierVertex and text drawing order
« on: Jul 13th, 2004, 6:58pm » |
|
I'm not sure if this is a bug or the way things are supposed to work, but text that is drawn after bezier lines drawn with bezierVertex isn't drawn on top like I would expect. Look at this example: www.mattgilbert.net/bezierPlayOddText/ In the code, the elements are drawn in this order: beziers rect text While the rect is behind the text like i'd expect, the bezier is in front of both. But it's not that simple. Move the mouse to make the beziers draw over the box to see what I mean. matt
|
|
|
|
fry
|
Re: bezierVertex and text drawing order
« Reply #1 on: Jul 14th, 2004, 6:07am » |
|
hrm.. yeah, another line hack that's breaking things. so that lines look better when used with 3D objects, they're being scooted just slightly forward in the z direction (0.5 to 1.0 or so). but this is horking things up for 2D stuff. the workaround is to use a call to translate() to move things back a little.
|
« Last Edit: Jul 14th, 2004, 6:08am by fry » |
|
|
|
|
|