-
Notifications
You must be signed in to change notification settings - Fork 167
How To Use the ANGLE NuGet Package
Ready-to-use binaries of ANGLE are distributed via NuGet. This page describes how to install the ANGLE NuGet packages into your project.
There are two ANGLE NuGet packages:
- One for Universal Windows Platform (Windows 10) projects (Visual Studio 2015)
- One for Windows 8.1 and Windows Phone 8.1 projects (Visual Studio 2013 Update 4+ or Visual Studio 2015)
If you wish to use ANGLE in a classic "desktop" application then you must obtain the binaries via another method. For example, you could compile ANGLE from source.
These instructions assume that you are using Visual Studio 2013 Update 4 as the IDE, but the steps are very similar for Visual Studio 2015.
###Requirements
- Visual Studio 2013 Update 4 or newer, or Visual Studio 2015
- Active internet connection
###Steps to install the NuGet package
- Right click on the solution and select "Manage NuGet Packages For Solution..." from the context menu.
- When the NuGet package management dialog opens, make sure "nuget.org" or "Online | nuget.org" is selected as the source.
- In the search box, search for ANGLE.
- Select the appropriate ANGLE.WindowsStore entry and click Install.
- In the project selection dialog, make sure all projects using ANGLE are selected and click Install/OK.
- Close the package management dialog
Note that NuGet will automatically use the correct version of ANGLE in your project.
###Using ANGLE in your code
After you've installed the NuGet package, you can include the OpenGL ES headers in your source code like this:
#include <EGL\egl.h>
#include <GLES2\gl2.h>
#include <GLES2\gl2ext.h>
NuGet will link your project against the ANGLE libraries for you.