how to use DirectX?
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 :(
Consider picking up a beginner game programming book, and or browse http://www.gametutorials.com/ . If you are having problems getting to grips with things after just browsing gametutorials get a few books.
HTH
HTH
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.
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.
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??
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?
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.
If you're not development under commersial pressure choice by liking.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement