27 #include <android/native_window.h> 31 struct ContextInitInfo
33 SwapChainDesc SwapChainAttribs;
34 void *pNativeWndHandle =
nullptr;
40 typedef EGLContext NativeGLContextType;
42 GLContext(
const ContextInitInfo &Info, DeviceCaps &DeviceCaps );
45 bool Init( ANativeWindow* window );
52 EGLint Resume( ANativeWindow* window );
54 const SwapChainDesc& GetSwapChainDesc()
const{
return SwapChainAttribs_; }
56 NativeGLContextType GetCurrentNativeGLContext();
60 ANativeWindow* window_ =
nullptr;
61 EGLDisplay display_ = EGL_NO_DISPLAY;
62 EGLSurface surface_ = EGL_NO_SURFACE;
63 EGLContext context_ = EGL_NO_CONTEXT;
67 int32_t color_size_ = 0;
68 int32_t depth_size_ = 0;
69 int32_t major_version_ = 0;
70 int32_t minor_version_ = 0;
73 bool gles_initialized_ =
false;
74 bool egl_context_initialized_ =
false;
75 bool context_valid_ =
false;
77 SwapChainDesc SwapChainAttribs_;
81 bool InitEGLSurface();
82 bool InitEGLContext();
83 void AttachToCurrentEGLContext();
84 void FillDeviceCaps( DeviceCaps &DeviceCaps );
Namespace for the OpenGL implementation of the graphics engine.
Definition: BufferD3D11Impl.h:34