Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Visual Studio template for cross-platform OpenGL development

Sign in to follow this  


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 href="https://www.nuget.org/packages/ANGLE.WindowsStore">ANGLE binaries from NuGet.


The Visual Studio project looks like so:

 original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-70-20/7356.SimpleRenderer_2D00_ClassView_5B00_1_5D00_.png"> src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/70/20/7356.SimpleRenderer-ClassView[1].png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-70-20/7356.SimpleRenderer_2D00_ClassView_5B00_1_5D00_.png" alt="" width="352" height="275">


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!

original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-70-20/7457.Cube_2D00_Windows_5B00_1_5D00_.png"> src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/70/20/7457.Cube-Windows[1].png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-70-20/7457.Cube_2D00_Windows_5B00_1_5D00_.png" alt="" width="515" height="885">


Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!