mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Hololens port
This commit is contained in:
parent
5beac079f6
commit
acde7e04cb
27 changed files with 1501 additions and 0 deletions
27
support/hololens/OpenGLES.h
Normal file
27
support/hololens/OpenGLES.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
/* 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(Windows::UI::Xaml::Controls::SwapChainPanel ^ panel);
|
||||
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;
|
||||
EGLContext mEglContext;
|
||||
EGLConfig mEglConfig;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue