So…there is this post about creating transparent windows for OSX:
and there is this snippet:
HWND m_hWnd = WindowFromDC(wglGetCurrentDC()); LONG style = ::GetWindowLong(m_hWnd, GWL_STYLE); style &= ~WS_DLGFRAME; style &= ~WS_CAPTION; style &= ~WS_BORDER; style &= WS_POPUP; LONG exstyle = ::GetWindowLong(m_hWnd, GWL_EXSTYLE); exstyle &= ~WS_EX_DLGMODALFRAME; ::SetWindowLong(m_hWnd, GWL_STYLE, style); ::SetWindowLong(m_hWnd, GWL_EXSTYLE, exstyle); SetWindowPos(m_hWnd, HWND_TOPMOST, 0,0,0,0, SWP_NOSIZE|SWP_NOMOVE);
(from this post: http://forum.openframeworks.cc/t/can-of-do-this-stuff/2875/1)
for removing the window chrome (works fine), but how do I make the background transparent? Right now I am getting whatever I set the background color to.
From looking through the OSX transparent window stuff it looks like it is something to do with glClear(), but it looks like there is some Cocoa-specific stuff in there so I’m guessing I would need something Windows API-ish to get it flowing smoothly. If someone could point me in the right direction I’d appreciate it.