Welcome to mirror list, hosted at ThFree Co, Russian Federation.

qtoglcontext.hpp « qt - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2bc7000de3eae43efb1a6d366009fa4d966c1952 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include "drape/oglcontext.hpp"

#include <QtGui/QWindow>
#include <QtGui/QOpenGLContext>

class QtOGLContext: public dp::OGLContext
{
public:
  QtOGLContext(QWindow * surface, QtOGLContext * contextToShareWith);
  ~QtOGLContext();

  virtual void present();
  virtual void makeCurrent();
  virtual void setDefaultFramebuffer();

private:
  QOpenGLContext * m_nativeContext;
  QWindow * m_surface;
  bool m_isContextCreated;
};