I won't be modifying this code too much, just adding my own code to get Direct X setup, however, if you wanna get more in depth with how this code works, check out the documentation on the C++ Win32 API here. Take a moment to look over the code and see if you can get the lay of the land and understand what's going on and how the code works to setup and update the application window. You should get a window that looks like the one below. Once you have this project setup build and run it. Run Visual Studio 2019 and create a new project using the Windows Desktop Application C++ template. Once Visual Studio 2019 is installed you will need to do a full restart to complete the installation, do that and you should be set to move forward. If you already have Visual Studio 2019 installed you can still run the installer and make sure you have the C++ Game Development tools installed by modifying your installation. Start by installing Visual Studio for Windows, during installation make sure you grab the c++ game development tools, this will come with the Direct X SDK, you need this for the tutorial. I will assume some basic C++ knowledge for the purposes of this tutorial. Graphics Programming is very difficult to learn on it's own so I recommend getting fairly comfortable with C++ before attempting to do any programming with the Direct X API, if you are not confident with your programming skills then it will be difficult to diagnose errors with your graphics code. I am a student studying Game Development and my first time setting up Direct X was a painful experience for me and I imagine a lot of people will feel the same way, it's just a daunting task to learn the D3D11 API and to understand the different components and how they work together when just setting up a project to clear the screen to a color requires so much effort. I made this tutorial as a guide for my future self and also for anyone looking to start learning graphics programming with Direct X. This is a basic tutorial on how to modify the default C++ Win32 application to run d3d11 code and get the screen to clear to a specific color, a good starting point for anyone learning computer graphics.
0 Comments
Leave a Reply. |