1. 05 May, 2020 40 commits
  2. 01 May, 2020 40 commits
  3. 30 Apr, 2020 40 commits
  4. 29 Apr, 2020 40 commits
    • Sean McBride's avatar
      Fixed #17832: Observe NSView frame changes even for NSViews VTK didn't create · 7789697d
      Sean McBride authored
      Usually VTK creates its own NSViews, and in that case we were already observing NSViewFrameDidChangeNotification and reacting appropriately.
      
      But VTK can also be used in a different way, were clients create their own NSViews and point VTK to them. The SimpleCocoaVTK example does this.  In this case, VTK was not observing for NSVIew frame changes. That was ok unitl b75bc715.  But now that VTK creates its own framebuffer, it really needs to know when the NSView frame changes size.  So now we observe frame changes even for NSViews we didn't create.  In response, GetSize/SetSize will be invoked and do some necessary work. They will not however change the size of the NSView/NSWindow becuase a new 'if' contition limits that to happening only for NSViews created by VTK.
      7789697d
    • Sean McBride's avatar
      Fixed CAOpenGLLayer example being rendered as solid red · 4a0b3b0a
      Sean McBride authored
      The SimpleCocoaVTK example project has two kinds of NSViews, one being based on CAOpenGLLayer. That one has been broken in master for some time now, rendering as solid red. Fixed by invoking InitializeFromCurrentContext(). Bypassed vtkCocoaRenderWindow's implementation though because it mutates the NSView and NSWindow ivars, which is undesirable in this case. Instead, invoke super's implementation.
      4a0b3b0a
    • Sean McBride's avatar
      Create the NSOpenGLPixelFormat and NSOpenGLContext before the NSView/NSWindow · 36350987
      Sean McBride authored
      The motivation here is that if we switch to NSOpenGLView, we'll need the NSOpenGLPixelFormat to construct it. Seems to make no difference creating it before or after currently.
      
      Also moved the code that sets the NSWindow title higher up where the NSWindow is created.
      36350987
    • Sean McBride's avatar
      a12cdb6a