Sign in to follow this  
abombpoker

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

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Edited by AmzBee

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this