Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
platform
Android
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
18
class
AndroidSharedGlContext
:
public
Eegeo::Concurrency::Tasks::IGlTaskContext
19
{
20
public
:
21
AndroidSharedGlContext
(
22
EGLDisplay display,
23
EGLContext context,
24
EGLSurface surface,
25
IAndroidSharedGlContextUsageGuard
& guard);
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;
37
IAndroidSharedGlContextUsageGuard
& m_guard;
38
};
39
40
#if defined(EEGEO_UNITY)
41
#pragma clang diagnostic pop
42
#endif
43
}
44
}
Generated on Sat Jun 10 2023 02:00:28 for eeGeo Platform SDK by
1.8.3.1