My latest Pluralsight course is now available:
The Essentials of the Windows Runtime
This course will help you understand WinRT’s relationship to COM and how modern C++ is used to implement a class-based component abstraction on top of traditional COM interfaces.
This course introduces the Windows Runtime (WinRT), the foundational technology that underpins the future of the Windows API. You’ll learn what lies beneath the different language projections, how WinRT relates to COM and .NET, and how to implement COM and Windows Runtime classes with modern C++, Windows Runtime strings, and Windows Runtime components developed in Standard C++.
If you enjoy modern C++ you’ll want to pay special attention to the “Implementing the Windows Runtime” module where I show you how to use C++ variadic templates to implement both IUnknown and IInspectable. Watch how the compiler implements both QueryInterface and GetIids efficiently and elegantly.
Go and watch it now!
I’ve been writing a lot about DirectComposition lately. MSDN Magazine just published the final article in the series.
4. DirectComposition: Transforms and Animation
DirectComposition visuals provide a lot more than just the offset and content properties I’ve illustrated in my last few columns. The visuals really come to life when you begin to affect them with transforms and animations. In both cases, the Windows composition engine is a sort of processor and it’s up to you to calculate or construct the transform matrices, as well as the animation curves with cubic functions and sine waves.
3. DirectComposition: A Retained-Mode API to Rule Them All
2. Embracing the Windows Composition Engine
1. High-Performance Window Layering Using the Windows Composition Engine
There’s also my Pluralsight course where I dive into DirectComposition in a lot more detail.
I’ve received many requests for news on the progress of Modern – the Modern C++ Library for Windows – my new project that provides a Standard C++ language projection for the Windows Runtime along with first-class support for component development. Some folks have also offered to contribute to the library. Modern isn’t really a library as much as it is a library generator. Technically, Modern is a compiler that produces modern C++ code that may then be used to build apps and components.
I have started using it myself and am really enjoying the experience but it has a few rough edges that I need to work on before I can make it more widely available. I’m also planning to support DirectX 12, but I don’t yet have my hands on the API. As usual, the challenge is finding the time as I have other work that keeps me busy. I have lined up a handful of beta testers. Once I’ve freed up some time I hope to make a build available to them.
My latest article for MSDN Magazine is now online. This is the third article in the series on DirectComposition. You can find links to my other articles here.
DirectComposition: A Retained-Mode API to Rule Them All
The choice between immediate-mode and retained-mode traditionally came down to a trade-off between performance and productivity. Developers could pick the Direct2D immediate-mode API for absolute performance or the WPF retained-mode API for productivity or convenience. DirectComposition changes this equation by allowing developers to blend the two far more naturally. It blurs the line between immediate-mode and retained-mode APIs because it provides a retained-mode for graphics, but without imposing any memory or performance overhead.
This is also the first article to include sample code in years, so do take DirectComposition for a spin today. And if that’s not enough, check out my latest online course where I show you how to make the most of DirectComposition and Direct2D.
Modern is a header-only library designed to provide Standard C++ developers with first-class access to the modern Windows API. This includes complete support for the Windows Runtime as well as classic APIs such as DirectX.
Find out more here: http://moderncpp.com/
My second article about DirectComposition is now available in MSDN Magazine:
Embracing the Windows Composition Engine
The Windows composition engine represents a departure from a world in which each DirectX app requires its own swap chain to one where even so fundamental a construct is unnecessary. Sure, you can continue to write Direct3D and Direct2D apps using a swap chain for presentation, but you no longer have to. The composition engine brings us that much closer to the metal—the GPU—by allowing apps to create composition surfaces directly.
If you’d like to learn more then be sure to check out my latest course, DirectComposition in Action, where I provide a practical tour of the DirectComposition API.
My first article about DirectComposition is now available online in MSDN Magazine:
High-Performance Window Layering Using the Windows Composition Engine
If you like layered windows then this is going to blow your mind. The Windows composition engine is seriously cool and completely changes the way application windows are rendered on the desktop. If you’d like to learn more then be sure to check out my latest course, DirectComposition in Action, where I provide a practical tour of the DirectComposition API.