This is a repository where I will work upon making a base engine for SFML that I will use to make games.
To setup this repository as your template first clone this repository in your local environment. Now click on the base_engine.sln
file and produce a template in VS 2022 from Project -> Export Template.
Now make your project with the template. In properties of the solution we setup the dependencies of our project.
- Set the configuration as
All Configurations
and the platform asx64
as the libraries are 64-bit versions. You can also use the 32-bit versions (download thelib
andinclude
folder from the SFML put them in the Dependencies directory instead of the given) and use thex86
platform. - In the VC++ Directories in the Include Directories section add the directory
$(SolutionDir)Dependencies\include
and in the Library Directories section$(SolutionDir)Dependencies\lib
and click apply. (Note you can do the same in C/C++ -> Additional Include Directories and C/C++ -> Additional Library Directories instead of this.) - Now in C/C++ (Note that this section won't be visible if you haven't included atleast one cpp file.) under Preprocessor add the preprocessor
SFML_STATIC
. - In C/C++ -> Linker now first set the configuration to
Debug
and from theSFML_lib_config.txt
text file copy the section under Debug and paste it in Linker -> Input -> Additional Dependencies. (Note that these are the files with*-s-d.lib
in suffix.) Click Apply. - Change configuration to
Releease
and in Linker -> Input -> Additional Dependencies from the text file paste the section underRelease
. Click Apply.
And Thats it. Now you can check by pressing 'F5', a window will come up along with the Local Windows Debugger.