View Full Version : Black border

02-21-2001, 02:16 PM
I am working on an application where graphics symbols like circles and rectangles have to be overlayed over a texture. Sometimes depending on the color of the texture, these graphic symbols are not clearly visible.

We have come up with a scheme to draw black border of 1 pixel width around these symbols(for example, inside and outside of rectangle) to make it stand out, depending on the texture background. How would this black bordering be implemented in OpenGL?

R Gopal

02-21-2001, 07:34 PM
It can be difficult to get OpenGL to draw a black border of 1 pixel width. For OpenGL would it be more natural to first draw a little bigger black symbol and then on top of that your symbol.