mirror of https://github.com/axmolengine/axmol.git
24 lines
527 B
C++
24 lines
527 B
C++
#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;
|
|
};
|