inverting stippled lines

Started by
1 comment, last by RPTD 19 years, 5 months ago
if you have already used blender you know that all there is opengl... from snout to tail. now they've got the same effect there like you know from file selection dialogs: a rectangle with alternating dots that invert what is behind. i wanna do a similar selection rectangle for my map editor. i can do stippled lines that have the dot-nodot look but i can't figure out how i can make that line invert the color on the screen. somebody has an idea?

Life's like a Hydra... cut off one problem just to have two more popping out.
Leader and Coder: Project Epsylon | Drag[en]gine Game Engine

Advertisement
glBlendEquation(GL_LOGIC_OP) with glLogicOp(GL_INVERT) or something like that could work. Check the specification for information.
thx for the tip it worked. the BlendFunc is not involved though. the following did the trick:
glEnable( GL_COLOR_LOGIC_OP );glLogicOp( GL_INVERT );

Life's like a Hydra... cut off one problem just to have two more popping out.
Leader and Coder: Project Epsylon | Drag[en]gine Game Engine

This topic is closed to new replies.

Advertisement