locked
Building Windows RT Extensions

    Question

  • Can some one point me to any documentation on this subject?

    My usage is would like to expose some of the Direct2D functionality to my C# or HTML5/JS code. First of all is this possible?

    Thanks

    PB

    Monday, October 03, 2011 5:11 PM

Answers

All replies

  • You can accomplish this by creating a new C++ WinRT component that exposes an API for consumption in C# or JS.  When you create a C++ WinRT component, it generates a metadata file which you can use in the other supported languages.

    In the Build keynote, they demoed a HTML/JS application consuming a native WinRT component that ran a pixel shader on a pixel byte stream passed from the HTML5 application.

    Monday, October 03, 2011 6:33 PM
  • Thank  you jmorrill. Is this code part of 'Metro Style App Samples'?
    Monday, October 03, 2011 6:43 PM
  • You may find the following documentation on MSDN helpful:

    http://msdn.microsoft.com/en-us/library/hh441569(v=vs.85).aspx

    Thanks

    Raman Sharma, Visual C++

    • Marked as answer by __PB Monday, October 03, 2011 8:17 PM
    Monday, October 03, 2011 7:33 PM
  • Thanks a lot Raman, this is very useful.
    Monday, October 03, 2011 8:21 PM