LCOV - code coverage report
Current view: top level - eq/qt - shareContextWindow.h (source / functions) Hit Total Coverage
Test: Equalizer Lines: 0 1 0.0 %
Date: 2017-12-16 05:07:20 Functions: 0 1 0.0 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2015-2017, 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             :    Helper window to allow Open GL context sharing between Qt widgets and
      31             :    windows created by Equalizer.
      32             : 
      33             :    This window is not intended to be used for any actual work except for
      34             :    being able to provide a share OpenGLContext to WindowSystem::createWindow
      35             :    through the WindowSettings.
      36             : */
      37             : class ShareContextWindow : public eq::SystemWindow
      38             : {
      39             : public:
      40             :     ShareContextWindow(QOpenGLContext* context, NotifierInterface& parent,
      41             :                        const WindowSettings& settings)
      42             :         : SystemWindow(parent, settings)
      43             :         , _context(context)
      44             :     {
      45             :     }
      46             : 
      47           0 :     QOpenGLContext* getContext() const { return _context; }
      48             :     bool configInit() final
      49             :     {
      50             :         LBUNIMPLEMENTED;
      51             :         return false;
      52             :     }
      53             :     void configExit() final { LBUNIMPLEMENTED }
      54             :     void makeCurrent(const bool) const final { LBUNIMPLEMENTED }
      55             :     void doneCurrent() const final { LBUNIMPLEMENTED }
      56             :     void bindFrameBuffer() const final { LBUNIMPLEMENTED }
      57             :     void bindDrawFrameBuffer() const final { LBUNIMPLEMENTED }
      58             :     void updateFrameBuffer() const final { LBUNIMPLEMENTED }
      59             :     void swapBuffers() final { LBUNIMPLEMENTED }
      60             :     void flush() final { LBUNIMPLEMENTED }
      61             :     void finish() final { LBUNIMPLEMENTED }
      62             :     void joinNVSwapBarrier(const uint32_t, const uint32_t) final
      63             :     {
      64             :         LBUNIMPLEMENTED
      65             :     }
      66             :     void queryDrawableConfig(DrawableConfig&) final { LBUNIMPLEMENTED }
      67             :     void resize(const PixelViewport&) final { LBUNIMPLEMENTED }
      68             : private:
      69             :     QOpenGLContext* _context;
      70             : };
      71             : }
      72             : }
      73             : #endif // EQ_QT_SHARECONTEXTWINDOW_H

Generated by: LCOV version 1.11