How easy will it be for me to make a pure 2d platformer/rpg in directx 11?

Started by
2 comments, last by AmzBee 11 years ago
I'm an experienced c++ programmer and I've coded multiple games in GDI(old and slow), XNA and SDL. For reasons which I don't want to explain, I want to make some 2D games in directx 11 with c++. Does directx 11 support 2D programming, or am I going to have to learn 3D programming and make a fake 2D game using an orthogonal view or something?
Does directx 11 have some out of the box functions(after setup) to blit bitmaps to a surface that's associated with the window? Would something like per-pixel collision be possible, i.e. getting access to the pixel data of a surface?
Advertisement

As you are looking to target DX11 but want some out of the box functionality for 2D stuff, why don't you take a look at the DirectXTK, it offers various things you'll likely be familiar with (from XNA): http://directxtk.codeplex.com/

Aimee

We are now on Tumblr, so please come and check out our site!

http://xpod-games.com

Why don't you want to explain your reasons for wanting to use DirectX11? Or will that give it away? :P

You can use Direct3D and fake 2D using an ortho view, which will be blazing fast if done correctly, should blow SDL and XNA out of the water. Alternatively you could use the new Direct2D which I've heard very little about. There are fewer resources available, and I'm not sure it's actually any easier to use than D3D

Why don't you want to explain your reasons for wanting to use DirectX11? Or will that give it away? tongue.png

You can use Direct3D and fake 2D using an ortho view, which will be blazing fast if done correctly, should blow SDL and XNA out of the water. Alternatively you could use the new Direct2D which I've heard very little about. There are fewer resources available, and I'm not sure it's actually any easier to use than D3D

The thing is although Direct2D maintains interoperability with GDI/GDI+, he specifically stated DX11 and want's the ability to manipulate pixel data, Direct2D (a DX10 thing I believe) seems to lean more towards vector based rendering, it does offer this sort of functionality, but at the expense of mixing API's. If his intent is to release on the Windows 8 store or something similar, then I believe mixing Direct2D would cause a whole world of pain.

Just my two cents smile.png

Aimee

We are now on Tumblr, so please come and check out our site!

http://xpod-games.com

This topic is closed to new replies.

Advertisement