Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BoingX like transparency with Carbon OverlayWindow



I am trying to display objects in transparent windows (similar to the BoingX sample) but using Carbon's

   CreateNewWindow (kOverlayWindowClass, ...)

I show the window, create a Context {AGL_RGBA, AGL_DOUBLEBUFFER, AGL_DEPTH_SIZE 32, AGL_NONE} and set it's drawable to be the overlay window. Finally, I paint some polygon and swap buffers.

At first this seems to work, yay. My polygon shows up on the screen without any visible trace of a window. Now the problem begins. I need this polygon-in-overlay-window as drag and drop feedback. In other words I have to move this window. Done similar things before with QuickDraw and QuickTime painting into overlay windows. That worked. But with with OpenGL-based painting the desktop background behind my overlay seems be copied into the overlay. As I move the window the desktop region originally covered by the window moves with the window.

I am guessing this has something to do with double buffering but then again this problem manifests itself even before I ever do an aglSwapbuffers. Is there some other property I need to set with the overlay window or the OpenGL content?

any clue appreciated

Prof. Dr. Alexander Repenning
vCard: http://www.cs.colorado.edu/~ralex/AlexanderRepenning.vcf

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.