Temporary controls drawing...

Hi,

In my application I want to draw some temporary controls over a scene to give an example say marquee rectangle. I can not use overlay context since I do not have one.

Also, I am in a RGBA mode hence I can not use glLogicOp(GL_INVERT) to erase the drawn control.

Is there any function or combination of gl functions which will give me same effect as glLogicOP(GL_INVERT) ?

Is is there any other way to acheive the same effect as smooth marquee rectangle without using overlay context and in RGBA mode ?

Thanks in advance,
Nitin

Also, I am in a RGBA mode hence I can not use glLogicOp(GL_INVERT) to erase the drawn control.

No, you can - since OpenGL 1.1 : Logical Operation

glEnable( GL_COLOR_LOGIC_OP );

P.S
I guess, you are using M$DN SDK - right?
Well, its part about glLogicOp is kind of outdated.

[This message has been edited by Serge K (edited 01-10-2001).]

I can not use it since I am developing my control for Mac and they have their own implementation.

Originally posted by Serge K:
[b] No, you can - since OpenGL 1.1 : Logical Operation

glEnable( GL_COLOR_LOGIC_OP );

P.S
I guess, you are using M$DN SDK - right?
Well, its part about glLogicOp is kind of outdated.

[This message has been edited by Serge K (edited 01-10-2001).][/b]

What???
Are you saing that Apple still has OpenGL 1.0? (which is “dead” long time by now)

But if you mean - “can not use SDK” - No, you can.
You can use MSDN online SDK as OpenGL API reference (except Win specific WGL functions - on the Mac you have to use AGL functions instead).

[This message has been edited by Serge K (edited 01-11-2001).]

Thanks for your help Serge…
I was able to make it work.