All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
AndroidGLContextProxy.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "IGlTaskContextFactory.h"
6 #include "AndroidSharedGlContext.h"
7 
8 namespace Eegeo
9 {
10  namespace Android
11  {
13  {
14  public:
16  : m_sharedGLContext(sharedGLContext)
17  {
18  }
19 
20  void CreateContext() { m_sharedGLContext.CreateContext(); }
21  void SetContext() { m_sharedGLContext.SetContext(); }
22  void FlushContext() { m_sharedGLContext.FlushContext(); }
23  void Unbind() { m_sharedGLContext.Unbind(); }
24 
25  private:
26  AndroidSharedGlContext& m_sharedGLContext;
27  };
28  }
29 }