Giter Club home page Giter Club logo

coreappangle's Introduction

A UWP sample app using the ANGLE library

Requires ANGLE to be built locally. See https://chromium.googlesource.com/angle/angle

This is based off the UWP template in the old MS fork of ANGLE, and ported to C++/WinRT. The template is still viewable at https://github.com/microsoft/angle/tree/2017-lkg/templates/10/Windows/Universal/CoreWindowUniversal.

To get the template code to compile, had to make similar changes to those in https://github.com/CartoDB/mobile-sdk/commit/e7c325f44c91350d0c2f68252f12d2b001ac733e (found after the fact searching for EGL_ANGLE_DISPLAY_ALLOW_RENDER_TO_BACK_BUFFER).

To build ANGLE, clone the repo as described in the ANGLE link above. Run gn gen out/DebugUwp and then gn args out/DebugUwp, and set the build args to:

target_os = "winuwp"
is_clang = false

Then build with autoninja -C out/DebugUwp.

(TODO: Build fails if is_clang is not set. However appears to force MSVC to build targeting UWP, and tries to use "CL.exe" with the wrong defaults. Figure this out and either log a bug or fix it.)

C++ with WRL

This repo then has two projects. The one in the .\WRL directory can be built from the command line with MSVC or Clang, and only uses the WRL libraries, not C++/WinRT or C++/CX. This would work in most other environments the easiest. To use, just CD into the WRL directory and run build or build clang followed by build pack. This last step will also register the built AppX on your machine to run.

C++/WinRT

The project in the root of the repo is a C++/WinRT Visual Studio 2019 project. After building, copy the below 3 files to the x64\Debug\CoreAppAngle\AppX directory before deploying.

  • libEGL.dll
  • libGLESv2.dll
  • zlib.dll

(TODO: Figure out how to copy these at build time)

If your ANGLE project is at a different location than C:\src\angle, then update the paths in the .vcxproj file accordingly.

coreappangle's People

Contributors

billti avatar

Watchers

 avatar  avatar  avatar

Forkers

stormmorr

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.