Jump to content
  • Advertisement
Sign in to follow this  
baraka

how to use DirectX?

This topic is 5390 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

elo again. Can someone help me understand how to use DirectX more thoroughly. In fact, I need to know what are the files required and do I have to install these in my compiler directory. Also, do I have configure my VC++ compiler when using DX and do I have to create a project? That's a lot of questions I know, but help me :(

Share this post


Link to post
Share on other sites
Advertisement
First you're going to have to download the sdk from miscrosoft. I think, you'll find that at http://www.microsoft.com/directx/

You get an installer with the download, so if you have Microsoft Visual Studio (which you do apparently), the include directories will be setup for you. Otherwise you'd just add the sdk include paths to your project directories from whichever compiler you are using.

Then create a new project, a Windows Application project. Not a console project, and add include the diretcx headers and libraries (whichever are necessary, ie: if you're using Direct3D then include d3d9.h and link in d3d9.lib)

Then you can check the tutorials in my sig, and you should check out the FAQ for the directx forum. There are a lot more tutorial sites listed there.

Share this post


Link to post
Share on other sites
but this is such a big file!!! Can't I just download the necessary lib files and .h files and install each one of them??

Share this post


Link to post
Share on other sites
well, another question concerning DX...As compared to OpenGL, is DirectX more powerful than OpenGl in game development? OpenGl is very powerful concerning 3D grafix, but is DirectX more suited to use in game development?

Share this post


Link to post
Share on other sites
This is a question of what to use it for. If you want crossplattform OpenGL is required. The current status of things is that OpenGL since it haven't release a new version in long have slacked behind in the library implementation which have made DirectX more adapted in some sences. I can't really prefer one but I suggest you to choose based on time consumption (DX9 have a lot of algorithms implemented for you), crossplattform(OpenGL). For general game development I would say DirectX is best suited since OpenGL is a graphics library while DirectX is whole development kit. But at the same time I don't listen to that advice myself since I develop most my project in OpenGL.

If you're not development under commersial pressure choice by liking.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!