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/include/osgViewer/api/Cocoa/GraphicsWindowCocoa

    r10887 r11289  
    2626@class GraphicsWindowCocoaGLView; 
    2727@class NSOpenGLContext; 
     28@class NSOpenGLPixelFormat; 
    2829@class NSWindow; 
    2930@class NSView; 
     
    3233class GraphicsWindowCocoaWindow; 
    3334class NSOpenGLContext; 
     35class NSOpenGLPixelFormat; 
    3436class NSWindow; 
    3537class NSView; 
     
    159161        NSOpenGLContext* getContext() { return _context; } 
    160162        GraphicsWindowCocoaWindow* getWindow() { return _window; } 
     163        NSOpenGLPixelFormat* getPixelFormat() { return _pixelformat; } 
    161164                 
    162165        void setVSync(bool f); 
     
    191194        GraphicsWindowCocoaGLView*      _view; 
    192195        NSOpenGLContext*                _context; 
     196        NSOpenGLPixelFormat*            _pixelformat; 
    193197        bool                            _updateContext; 
    194198};