![]() This is a simple configuration for start with SDL2, if you want to use SDL_image, you should do the same steps to add the headers and libraries. You should watch a red window, is you see it, then you are ready to work with SDL2 and VS Code! Inside the file, write the following configuration. vscode ** folder, create a new file and name it **tasks.json. The first thing that we need to create is our Task to compile our code. For the output of our compilation, create a build folder. For our SDL2 and C++ configuration, create a. ![]() Inside the folder, create another called src, here is where are going to save our code files. Create a folder for your project and open it with VSCode. Now we are ready to start our SDL2 project. Unzip those folders in a location that you can find because we are going to need it. For our case, we have to download the Development libraries for MinGWĪnd download the Runtime libraries to run our games. ![]() Now, you need to install mingw64 to use the compilers that are included like g++, if you want to use the Visual Studio compiler, you can change some of the settings here but for now we continue with mingw64.įor easy installation, use the MinGW-W64 Online Installer, take note of the path where you installed your compiler, because we’re going to need it in the configuration. You need to install the C/C++ plugin from Microsoft. The first thing that we need to install is Visual Studio Code editor. This is a simple guide to how to setup SDL2 with Visual Studio Code and mingw64, for me worked and I hope that you can start with SDL2 in Windows. So one of the first things that I did was try to set up my dev environment and test some SDL2 code. Recently I changed my setup from macOS to Windows, and I’d like to do some experiments with GameDev in Windows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |