- published: 18 Jun 2014
- views: 8428
Direct2D is a 2D and vector graphics application programming interface (API) designed by Microsoft and implemented in Windows 7 and Windows Server 2008 R2, and also Windows Vista and Windows Server 2008 (with Platform Update installed).
Direct2D offers high quality and fast performance while maintaining interoperability with GDI/GDI+ APIs and Direct3D/DirectDraw APIs. It can take advantage of hardware acceleration through compatible graphics cards.
Direct2D is a native code API based on C++ that can be called by managed code and uses a "lightweight COM" approach just like Direct3D, with minimal amount of abstraction. However, unlike WPF and similarly to GDI/GDI+, Direct2D is an "immediate mode" rendering API with simple BeginDraw/Draw/EndDraw calls; Direct2D has no concept of a "scene" and does not use retained tree structures, and the rendering state is preserved between drawing calls.
Direct2D can minimize CPU usage and utilise hardware rendering on a graphics card that supports Direct3D 10.1 and/or Direct3D 10 Feature Level 9 with WDDM 1.1 drivers, falling back to software rendering using WARP10 in situations when hardware is not available, such as session 0, and for remote server-side rendering. Direct2D performance and memory usage scale linearly with primitive counts in both software and hardware.
Direct2D Tutorial 1: Intro and WinMain Entry
Direct2D Tutorial 3: Direct 2D
Direct2D Tutorial 8: Loading an Image
Direct2D Tutorial 9: Animation
Direct2D Tutorial 7: Structure of a Game
What’s New in Direct2D and DirectWrite for Windows 10
Arc segments with Direct2D
Transform time in minutes with Direct2D
Achieving high performance 2D graphics with Direct2D
Direct2D Tutorial 6: Real Time Game Loop
Now that we're alone
Why don't you tell me your name?
I've got a plan to get us out where they won't catch us
If you do what I say
Cause there's a hole
In the wall of my cell
We're crawling in and going through the sewer pipe
Before we both run like hell
We leave the bodies by the water
They're the guards that we kill
And we'll be screaming bloody murder from the top of the hill
As we run silently into the car parked for us by the side of the road
Now that we're alone
Why don't you tell me your name?
I've got a place we can lay low until we feel like going
Back to that place
I've got a whole head of things I can claim
But I won't lie it's us verse them
And if we try, oh no