Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Windows 8 Game Development

You're reading from   Learning Windows 8 Game Development Windows 8 brings touchscreens to the tablet and PC. This book will show you how to develop games for both by following clear, hands-on examples. Takes your C++ skills into exciting areas of 3D development.

Arrow left icon
Product type Paperback
Published in Oct 2013
Publisher Packt
ISBN-13 9781849697446
Length 244 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Michael Quandt Michael Quandt
Author Profile Icon Michael Quandt
Michael Quandt
Arrow right icon
View More author details
Toc

WinRT components


Windows 8 provides a common API for applications developed in C++, C#, or Javascript to work with. It would be a lot of work to rewrite the API, or create wrapper APIs for each language, so instead of doing that the Windows team developed a system where a component written in one of the languages can be exposed to the other languages through a minimal translation layer. As developers, we can use this to access components written in other languages easily and with minimal performance impact. These components exist with DLLs that act in a manner similar to .NET class libraries; however, they can also be consumed by C++ and JavaScript.

To create one of these, you simply create a WinRT Component project in Visual Studio and write code using either C# or C++/CX. Only ref types in C++/CX will be exposed to WinRT, so if you're writing a game or application in C# and want to use a C++ only library, you can write a basic wrapper that includes native code in your component, and expose...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime