179{
180 window = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, 100, 100)
181#ifdef __MAC_10_12
182 styleMask:NSWindowStyleMaskBorderless
183#else
184 styleMask:NSBorderlessWindowMask
185#endif
186 backing:NSBackingStoreBuffered
187 defer:NO];
188 [window autorelease];
189
190
191 context = [[NSOpenGLContext alloc] initWithFormat: s->pixFmt
192 shareContext:nil];
193 [self setOpenGLContext:context];
194 [context makeCurrentContext];
195 [context release];
196 printf("OpenGL renderer: %s %s (GLSL: %s)\n", glGetString(GL_RENDERER), glGetString(GL_VERSION), glGetString(GL_SHADING_LANGUAGE_VERSION));
197
198 [window setContentSize:NSMakeSize(100, 100)];
199}
NSOpenGLContext * context