blob: 5c0bed7765437c081df46df30ed40b078a73127e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#pragma once
#include "drape/glIncludes.hpp"
#include "drape/oglcontext.hpp"
namespace android
{
class AndroidOGLContext : public dp::OGLContext
{
public:
AndroidOGLContext(bool supportedES3, EGLDisplay display, EGLSurface surface,
EGLConfig config, AndroidOGLContext * contextToShareWith);
~AndroidOGLContext();
void makeCurrent() override;
void doneCurrent() override;
void present() override;
void setDefaultFramebuffer() override;
void setRenderingEnabled(bool enabled) override;
void setSurface(EGLSurface surface);
void resetSurface();
void clearCurrent();
private:
// {@ Owned by Context
EGLContext m_nativeContext;
// @}
// {@ Owned by Factory
EGLSurface m_surface;
EGLDisplay m_display;
// @}
};
} // namespace android
|