NSOpenGLView visual transparency vs. mouse transparency

Not sure if this is the right place to ask, so please redirect me if I`m wrong.

The program Im writing has 2 rendering paths: one using pure CPU and based on NSView, the other OpenGL-accelerated and based on NSOpenGLView. Both of them have transparent main views on a transparent window. As an effect, this enables users to see through some parts of the window. My problem is that, unlike NSView, NSOpenGLView is not click-through. I suppose this is due to OpenGL output never making it back to RAM from VRAM (which is generally the right thing to do), but that also means that the compositor cant normally tell if the cursor is over a transparent pixel.
My question is: are there any standard workarounds for this? Potentially, Im able to calculate under-cursor transparency myself, without any buffer readback. One thing that I dont know is where to pass this information. Maybe some user-supplied hint from NSOpenGLView to the compositor, in case such hint exists at all…
Tried to directly call NSWindow::setIgnoresMouseEvents. When I passed true, the whole window became transparent for the cursor, which is not what I want.

P.S.: Tested under OS X 10.8.5–10.10.1 with the standard context using OpenGL 2.0 / GLSL 1.10 and GL_EXT_framebuffer_object. No GLUT / GLEW / GLFW.

Oh, great. Now this is the first link in Google for «NSOpenGLView mouse transparency»… =(

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.