#pragma once class OpenGLES { public: OpenGLES(); ~OpenGLES(); EGLSurface CreateSurface(Windows::UI::Xaml::Controls::SwapChainPanel^ panel, const Windows::Foundation::Size* renderSurfaceSize); void DestroySurface(const EGLSurface surface); void MakeCurrent(const EGLSurface surface); EGLBoolean SwapBuffers(const EGLSurface surface); void Reset(); private: void Initialize(); void Cleanup(); private: EGLDisplay mEglDisplay; EGLContext mEglContext; EGLConfig mEglConfig; };