UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
UltraGridOpenGLView Class Reference
Inheritance diagram for UltraGridOpenGLView:
Inheritance graph
Collaboration diagram for UltraGridOpenGLView:
Collaboration graph

Instance Methods

(void) - initialize:
 

Public Attributes

NSOpenGLContext * context
 

Protected Attributes

NSWindow * window
 

Detailed Description

Definition at line 78 of file mac_gl_common.m.

Method Documentation

◆ initialize:

- (void) initialize: (struct state_mac_gl *) s

Definition at line 93 of file mac_gl_common.m.

178 : (struct state_mac_gl *) s
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 //[window setTitle:@"UltraGrid OpenGL view"];
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

Member Data Documentation

◆ context

- (NSOpenGLContext*) context

Definition at line 82 of file mac_gl_common.m.

◆ window

- (NSWindow*) window
protected

Definition at line 80 of file mac_gl_common.m.


The documentation for this class was generated from the following file: