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: ea28215670383bfc473563f060ee1d2338c63101 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

namespace dp
{

class OGLContext
{
public:
  virtual ~OGLContext() {}
  virtual void present() = 0;
  virtual void makeCurrent() = 0;
  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