Click the Extensions icon on the left toolbar, or press + +. SDL True Type Fonts: sudo apt install libfreetype6-dev libsdl2-ttf-dev libsdl2-ttf-2.0-0 Configure Visual Studio Code:Īfter launching VSCode, it is time to install essential extensions for an OpenGL project.įirst, let’s install the extension for C/C++ support. SDL Mixer (for audio): sudo apt install libmikmod-dev libfishsound1-dev libsmpeg-dev liboggz2-dev libflac-dev libfluidsynth-dev libsdl2-mixer-dev libsdl2-mixer-2.0-0 SDL Image: sudo apt install libjpeg-dev libwebp-dev libtiff5-dev libsdl2-image-dev libsdl2-image-2.0-0 SDL2 base: sudo apt install libsdl2-dev libsdl2-2.0-0 Install GLEW: sudo apt install libglew-dev SDL 2 and supporting libraries: This command will install the essentials to get going with OpenGL: sudo apt install libglu1-mesa-dev freeglut3-dev mesa-common-dev Install GDB debugger: sudo apt install gdb OpenGL and GLEW: Install GCC, G++, and Make: sudo apt install build-essential Open your terminal and enter the following commands: Compiler:Īfter you have installed VSCode, the first thing to do is install the GCC compiler and GDB debugger. If not, install VSCode using these instructions. The first thing to do is to find out if your GNU/Linux distribution has VSCode. These instructions are for Debian-type distributions, such as Ubuntu. Let’s get started with Visual Studio Code. So, keep reading for some tips on how to use VSCode on Linux for SDL2 and OpenGL game development. Windows, macOS, and Linux are all supported. GDB integration allows for setting of breakpoints and stack trace in a simple and easy-to-use debugger interface.Īnother benefit when using VSCode is that you utilize the same development environment on different operating systems. Using VSCode gives a number of benefits for development in C/C++ using SDL2 and OpenGL. This is great for lone developers or small teams. Since Visual Studio is only available for Windows, Linux users need to independently set up an alternative development environment. Many game development tutorials are based on IDEs which are widely used in the game industry, such as Visual Studio 2019. Learning game development on Linux can be tricky.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |