mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
move control to its own directory
This commit is contained in:
parent
663ec48e00
commit
92f57b66d1
12 changed files with 17 additions and 19 deletions
31
support/hololens/ServoApp/ServoControl/OpenGLES.h
Normal file
31
support/hololens/ServoApp/ServoControl/OpenGLES.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#pragma once
|
||||
|
||||
class OpenGLES {
|
||||
public:
|
||||
OpenGLES();
|
||||
~OpenGLES();
|
||||
|
||||
EGLSurface
|
||||
CreateSurface(winrt::Windows::UI::Xaml::Controls::SwapChainPanel const &);
|
||||
EGLSurface CreateSurface(winrt::Windows::UI::Core::CoreWindow const &);
|
||||
|
||||
void GetSurfaceDimensions(const EGLSurface surface, EGLint *width,
|
||||
EGLint *height);
|
||||
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 = EGL_NO_DISPLAY;
|
||||
EGLContext mEglContext = nullptr;
|
||||
EGLConfig mEglConfig = nullptr;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue