Direct2D Tutorial 3: Direct 2D @WhatsACreel
Direct2D Tutorial 3: Direct 2D  @WhatsACreel
Uploaded July 2014 | Updated September 2026, 2 weeks ago
Today we'll initialise Direct2D and draw some lovely shapes.

We're building a 2D graphics engine, which could be used for platformers, puzzle games, shoot em ups and that sort of thing.

First, we'll create a Direct2D factory and use it to create a Direct2D render target. A render target is just an area of memory which we can draw to. We will set it up such that our render target is the window that we made in the previous video so we can clear it to some color and then draw some pretty circles on it!

There's a lot of coding in this video. I've done my best to explain a couple of salient features as we go, but we'll take most of this code for granted. We can't get caught up in the details at this point. Getting caught up on the details of DirectX is usually what prevents a programmer from learning the API. There's plenty of time for details, it'll all fall into place!
Direct2D Tutorial 3: Direct 2DC# Windows 8 Tutorial 6: FinalFixed Point Arithmetic 2: Multiplication and DivisionNVIDIA CUDA Tutorial 10: Blocking with Shared Memoryx64 Assembly Tutorial 55: MXCSR RegisterJava Tutorial for Beginners 2: Important Data TypesIEEE 754: Introduction to Floating Point FormatDirect2D Tutorial 1: Intro and WinMain EntryC++ Tutorial 8: Switch StatementsLearn Python Programming 4: Learn For LoopsExploring Cliques and Clique ProblemsC++ Unions
Creel |

Direct2D Tutorial 3: Direct 2D

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER