Visual Studio template for cross-platform OpenGL development

Originally posted to Shawn Hargreaves Blog on MSDN, Wednesday, July 29, 2015

Today the Visual Studio team shipped a project template for cross-platform graphics development.  This uses the Visual Studio shared project mechanism to target the Windows Universal Platform, Android, and iOS, with identical OpenGL ES 2.0 rendering code shared across all three platforms.

I'm posting this here partly because I think it is cool, but more importantly because I had a hand in making it happen.  In order to run portable GL rendering code on Windows, this template uses a version of ANGLE that is maintained by my team.  When you compile it for Windows, Visual Studio will automatically pull down our ANGLE binaries from NuGet.

 

The Visual Studio project looks like so:

 

 

Let's be honest, this is not the most visually exciting graphics demo ever :-)  But hey, just insert some different draw calls, different GLSL shaders, different vertices, maybe a few textures, and you could make it draw something far more interesting!

Blog index   -   Back to my homepage