Render DirectX within a window (plus my introduction)
Posts 1–4 of 4 · Page 1 of 1
Render DirectX within a window (plus my introduction)
Hello everyone... I'm oyasuna.dev, but you may call me Oliver or Ollie if you would like to. I am 16, and currently the leader of the programming branch for an upcoming FPS game which is scheduled to be released in around 3 to 4 years. The name has not been set yet, but my signature will give updates to our progress.
Anyway to the point of this thread... I just wanted to release what I think is the most easy and efficient way to Render Direct3D within a windows application. This is made for fullscreen only, but if you have enough knowledge of C++ and Direct3D you should be able to whip something up. Basically I will be guiding anyone who needs help through the steps to initiate DirectX in a window application.
--------------------
If you have not already downloaded the latest version of DirectX SDK then do so. Learn how to include the files into your Microsoft Visual C++ project. Remember that the ability to include files under Tools->Options was deprecated in Microsoft Visual C++ 2008 and was taken out in 2010. In 2010 you will have to either include the header and library files in the project settings or use the User Property Sheet.
In this tutorial I will be using Direct3D 9, because Direct3D 9 was the last version to support XP. Although I have recently upgraded to Windows 7, I still love Direct3D 9, but time to time use some things from 10 and 11.
Now onto the tutorial!
--------------------
Since we are going to make this as simple as possible we will put everything into one cpp file. You may re-organize later.
Prototypes:
The point of prototypes to define the function almost like a global so we don't have to create a function before another function that calls the first