I saw the “boingX” sample in the apple dev section: it uses the “NSOpenGLCPSurfaceOpacity” method to create a 3d object right on the desktop (masking the ogl background context)
I’m wondering if it’s possible to use this (or corresponding) statement in a simple glut or (carbon) project
Originally posted by <GioFX>:
[b]I saw the “boingX” sample in the apple dev section: it uses the “NSOpenGLCPSurfaceOpacity” method to create a 3d object right on the desktop (masking the ogl background context)
I’m wondering if it’s possible to use this (or corresponding) statement in a simple glut or (carbon) project
thanks in advance
Gio[/b]
NSOpenGLCPSurfaceOpacity is a Cocoa class so if you want it you should use Cocoa for the entire app. I believe that if you really want to you can mix it with Carbon code (or GLUT if you like) but it is tricky and I wouldn’t recomend it.
ok … and what about the agl corresponding “NSOpenGLCPSurfaceOpacity” statement? I cant find it, it’s possible to take a look at the cocoa source code of this class?