All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
AndroidSharedGlContext.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "IGlTaskContext.h"
6 #include "Graphics.h"
7 
8 namespace Eegeo
9 {
10  namespace Android
11  {
12  class IAndroidSharedGlContextUsageGuard;
13 
14 #if defined(EEGEO_UNITY)
15 #pragma clang diagnostic push
16 #pragma clang diagnostic ignored "-Wunused-private-field"
17 #endif
19  {
20  public:
22  EGLDisplay display,
23  EGLContext context,
24  EGLSurface surface,
26  void CreateContext();
27  void SetContext();
28  void FlushContext();
29  void Unbind();
30 
31  void UpdateSurface(EGLSurface surface);
32 
33  private:
34  EGLDisplay m_display;
35  EGLContext m_context;
36  EGLSurface m_surface;
38  };
39 
40 #if defined(EEGEO_UNITY)
41 #pragma clang diagnostic pop
42 #endif
43  }
44 }