LCOV - code coverage report
Current view: top level - eq/qt - shareContextWindow.h (source / functions) Hit Total Coverage
Test: Equalizer Lines: 0 2 0.0 %
Date: 2016-09-29 05:02:09 Functions: 0 1 0.0 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2015, Juan Hernando <jhernando@fi.upm.es>
       3             :  *
       4             :  * This library is free software; you can redistribute it and/or modify it under
       5             :  * the terms of the GNU Lesser General Public License version 2.1 as published
       6             :  * by the Free Software Foundation.
       7             :  *
       8             :  * This library is distributed in the hope that it will be useful, but WITHOUT
       9             :  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
      10             :  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
      11             :  * details.
      12             :  *
      13             :  * You should have received a copy of the GNU Lesser General Public License
      14             :  * along with this library; if not, write to the Free Software Foundation, Inc.,
      15             :  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      16             :  */
      17             : 
      18             : #ifndef EQ_QT_SHARECONTEXTWINDOW_H
      19             : #define EQ_QT_SHARECONTEXTWINDOW_H
      20             : 
      21             : #include "types.h"
      22             : 
      23             : #include <eq/systemWindow.h> // base class
      24             : 
      25             : namespace eq
      26             : {
      27             : namespace qt
      28             : {
      29             : 
      30             : /**
      31             :    Helper window to allow Open GL context sharing between Qt widgets and
      32             :    windows created by Equalizer.
      33             : 
      34             :    This window is not intended to be used for any actual work except for
      35             :    being able to provide a share OpenGLContext to WindowSystem::createWindow
      36             :    through the WindowSettings.
      37             : */
      38             : class ShareContextWindow : public eq::SystemWindow
      39             : {
      40             : public:
      41             :     ShareContextWindow( QOpenGLContext* context,
      42             :                         NotifierInterface& parent,
      43             :                         const WindowSettings& settings )
      44             :         : SystemWindow( parent, settings )
      45             :         , _context(context)
      46             :     {}
      47             : 
      48             : 
      49           0 :     QOpenGLContext* getContext() const
      50             :     {
      51           0 :         return _context;
      52             :     }
      53             : 
      54             :     bool configInit() final { LBUNIMPLEMENTED; return false; }
      55             :     void configExit() final { LBUNIMPLEMENTED }
      56             :     void makeCurrent( const bool ) const final { LBUNIMPLEMENTED }
      57             :     void doneCurrent() const final { LBUNIMPLEMENTED }
      58             :     void bindFrameBuffer() const final { LBUNIMPLEMENTED }
      59             :     void bindDrawFrameBuffer() const final { LBUNIMPLEMENTED }
      60             :     void updateFrameBuffer() const final { LBUNIMPLEMENTED }
      61             :     void swapBuffers() final { LBUNIMPLEMENTED }
      62             :     void flush() final { LBUNIMPLEMENTED }
      63             :     void finish() final { LBUNIMPLEMENTED }
      64             :     void joinNVSwapBarrier( const uint32_t, const uint32_t ) final
      65             :         { LBUNIMPLEMENTED }
      66             :     void queryDrawableConfig( DrawableConfig& ) final { LBUNIMPLEMENTED }
      67             :     bool processEvent( const Event& ) final { LBUNIMPLEMENTED; return false; }
      68             : 
      69             : private:
      70             :     QOpenGLContext* _context;
      71             : };
      72             : 
      73             : }
      74             : }
      75             : #endif // EQ_QT_SHARECONTEXTWINDOW_H

Generated by: LCOV version 1.11