Jump to content

  • Log In with Google      Sign In   
  • Create Account


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


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 abombpoker   Members   -  Reputation: 116

Like
0Likes
Like

Posted 02 April 2013 - 04:00 AM

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?


Sponsor:

#2 Tarika   Members   -  Reputation: 481

Like
3Likes
Like

Posted 02 April 2013 - 05:15 AM

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


#3 hupsilardee   Members   -  Reputation: 486

Like
0Likes
Like

Posted 02 April 2013 - 05:15 AM

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



#4 Tarika   Members   -  Reputation: 481

Like
0Likes
Like

Posted 02 April 2013 - 05:50 AM

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, 02 April 2013 - 05:50 AM.

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

 

http://xpod-games.com





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS