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

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

namespace dp
{

class OGLContext
{
public:
  virtual ~OGLContext() {}
  virtual void present() = 0;
  virtual void makeCurrent() = 0;
  virtual void doneCurrent() {}
  virtual void setDefaultFramebuffer() = 0;
  /// @ param w, h - pixel size of render target (logical size * visual scale)
  virtual void resize(int /*w*/, int /*h*/) {}
  virtual void setRenderingEnabled(bool enabled) {}
};

} // namespace dp