Show
Ignore:
Timestamp:
03/25/10 15:14:46 (3 years ago)
Author:
robert
Message:

From Stephan Huber, "attached you'll find a small enhancement for GraphicsWindowCocoa?. My
submision adds a getter for the pixel-format. I need this for some
custom software so I can integrate CoreVideo?-playback with osg.
"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgViewer/GraphicsWindowCocoa.mm

    r11207 r11289  
    858858    _context = NULL; 
    859859    _window = NULL; 
     860    _pixelformat = NULL; 
     861     
    860862    _updateContext = false; 
    861863    _valid = _initialized = true; 
     
    978980    } 
    979981     
    980     NSOpenGLPixelFormat* pixelformat = [[NSOpenGLPixelFormat alloc] initWithAttributes:attr ]; 
    981     _context = [[NSOpenGLContext alloc] initWithFormat: pixelformat shareContext: sharedContext]; 
     982    _pixelformat = [[NSOpenGLPixelFormat alloc] initWithAttributes:attr ]; 
     983    _context = [[NSOpenGLContext alloc] initWithFormat: _pixelformat shareContext: sharedContext]; 
    982984     
    983985    if (!_context) {