Results 1 to 5 of 5

Thread: Temporary controls drawing...

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2001
    Location
    Pune, India
    Posts
    4

    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

  2. #2
    Senior Member Regular Contributor
    Join Date
    Apr 2000
    Location
    Redlands, CA, USA
    Posts
    233

    Re: Temporary controls drawing...

    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).]

  3. #3
    Junior Member Newbie
    Join Date
    Jan 2001
    Location
    Pune, India
    Posts
    4

    Re: Temporary controls drawing...

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


    Originally posted by Serge K:
    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).]

  4. #4
    Senior Member Regular Contributor
    Join Date
    Apr 2000
    Location
    Redlands, CA, USA
    Posts
    233

    Re: Temporary controls drawing...

    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).]

  5. #5
    Junior Member Newbie
    Join Date
    Jan 2001
    Location
    Pune, India
    Posts
    4

    Re: Temporary controls drawing...

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

Similar Threads

  1. Replies: 0
    Last Post: 08-24-2017, 06:23 AM
  2. Temporary Register Limit
    By jgrossm1 in forum OpenGL: GLSL
    Replies: 4
    Last Post: 10-28-2007, 07:58 PM
  3. Any way to temporary disable the far clipping plane?
    By Aleksandar Momcilovic in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 07-10-2004, 09:59 AM
  4. Temporary OGL Context
    By A027298 in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 03-03-2001, 07:43 AM
  5. Disable Opengl (temporary) on my computer
    By djekk in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 01-03-2001, 04:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean