• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 10.2 Quartz over OpenGL? (window shadow on underlay?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 10.2 Quartz over OpenGL? (window shadow on underlay?)


  • Subject: Re: 10.2 Quartz over OpenGL? (window shadow on underlay?)
  • From: arekkusu <email@hidden>
  • Date: Fri, 23 May 2003 07:51:56 -0700

Found this discussion in the archives, have a related question...

Joshua Davis wrote:
> Thanks for your efficient help. For the benefit of future readers, you
> can get an NSView to draw over an NSOpenGLContext by placing the OpenGL
> surface beneath the view's window and then making the window
> non-opaque. (That's my understanding, anyway.) This is how an
> NSOpenGLView would do it:
>
> long negativeOne = -1;
> [[self openGLContext] setValues:&negativeOne
> forParameter:NSOpenGLCPSurfaceOrder];
> [[self window] setOpaque:NO];
>
> You do not need to call -setAlpha: on the window. 1.0 alpha is fine,
> apparently.



My problem is, my GL view fills part of the window horizontally edge to
edge.

After I place it under the 2D view, and fill the 2D view with
clearcolor, the next time my window shadow is invalidated (bringing
another app to the front, for instance) there is a gap in the shadow
where the GL view is.

This makes sense if the window manager is calculating the shadow based
only on the 2D quartz content's alpha, but it's not what I want.

Is there any way to keep a normal shadow behind GL content?



thanks,
-alex
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: 10.2 Quartz over OpenGL? (window shadow on underlay?)
      • From: "Kenneth C. Dyke" <email@hidden>
  • Prev by Date: NSImageView inside NSScrollView
  • Next by Date: Re: Subversion revision controll system
  • Previous by thread: Re: NSImageView inside NSScrollView
  • Next by thread: Re: 10.2 Quartz over OpenGL? (window shadow on underlay?)
  • Index(es):
    • Date
    • Thread