Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

DirectX 11, Metro and Windows Phone 8

DZone's Guide to

DirectX 11, Metro and Windows Phone 8

· Mobile Zone
Free Resource

Get gorgeous, multi-touch charts for your iOS application with just a few lines of code.

I couldn’t resist it, I simply had to install WP8 SDK. The first thing I did was creating a new project to see what has been added and what removed. Sadly, if you add XNA project, you can target WP7, and not WP8. However, since XNA based applications will be compatible with WP8, it makes no sense to discard WP7 since it has millions of users and not all of them will make the jump. One app, two marketplaces.

Moving on to the DX11 stuff I have created three projects:

  • Visual C++/Windows Metro Style/Direct3D App
  • Visual C++/Windows Phone/Windows Phone Direct3D App
  • Visual C#/Windows Phone/Windows Phone Direct3D XAML Application

The C# project template actually added two projects in my solution: a C# based Direct3DXamlApp1 project which references C++ Direct3DXamlApp1Comp project. C++ templates added only 1 project.

On basic inspection, all three C++ projects shared the same directory structure! In the image below, you can see how similar they are.

It simply screams “reuse me!” And since it is obvious that C# class can consume C++ components, you can create XNA-like library using the DirectX Tool Kit. I guess that it is not bad after all.

Since my processor does not support SLAT and I cannot run emulator, I will leave the refactoring of common classes for some other time. It is quite obvious that Microsoft made an effort to unite the mobile platforms for easy creation of DirectX apps for both platforms.

.Net developers: use Highcards, the industry's leading interactive charting library, without writing a single line of JavaScript.

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}