Carbon windows and AGL

Philippe C.D. Robert philippe.robert at gmx.net
Thu Apr 26 15:07:38 PDT 2007


Hi,

I am new to Carbon, so forgive me if this is a stupid question...

I am developing a crossplatform rendering framework (in plain C)  
which is supposed to open multiple OpenGL windows, each one in its  
own posix thread. On OS X I create the windows using the  
CreateNewWindow function and a window event handler:

CreateNewWindow(kDocumentWindowClass,  
(kWindowStandardHandlerAttribute|kWindowStandardDocumentAttributes),  
&winBounds, &w->winRef);

My problem now is, the so created windows have no decoration at all  
and lie in the background. What am I doing wrong?

Thanks,

-Phil



More information about the MacOSX-dev mailing list