Direct2D Tutorial 3: Direct 2D

Опубликовано: 05 Апрель 2026
на канале: Creel
53,989
570

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!