diff options
author | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2018-07-30 21:10:25 +0300 |
---|---|---|
committer | Roman Kuznetsov <r.kuznetsow@gmail.com> | 2018-08-01 16:21:56 +0300 |
commit | bc461840fe7462cb6d55cd3f577824de07583e0c (patch) | |
tree | 660b121ddc9dcecc4405151117b355687a77773e /drape/oglcontext.hpp | |
parent | bf38632215f55ed8fe284d2e53013bf2fd216aff (diff) |
Graphic context added.
Diffstat (limited to 'drape/oglcontext.hpp')
-rw-r--r-- | drape/oglcontext.hpp | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/drape/oglcontext.hpp b/drape/oglcontext.hpp index baaa5bcc3a..709df24b61 100644 --- a/drape/oglcontext.hpp +++ b/drape/oglcontext.hpp @@ -1,19 +1,15 @@ #pragma once +#include "drape/graphic_context.hpp" + namespace dp { -class OGLContext +class OGLContext: public GraphicContext { public: - virtual ~OGLContext() {} - virtual void present() = 0; - virtual void makeCurrent() = 0; - virtual void doneCurrent() {} - virtual void setDefaultFramebuffer() = 0; - // w, h - pixel size of render target (logical size * visual scale). - virtual void resize(int /*w*/, int /*h*/) {} - virtual void setRenderingEnabled(bool /*enabled*/) {} - virtual void setPresentAvailable(bool /*available*/) {} - virtual bool validate() { return true; } + void SetApiVersion(ApiVersion apiVersion) override; + void Init() override; + void SetClearColor(float r, float g, float b, float a) override; + void Clear(ContextConst clearBits) override; }; } // namespace dp |