-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Reis is a cross-platform 2D game engine writen in C++11 and SDL2.
Reis is in development since 2015. Currently refactoring since February, 2016.
Download the latest version here
Or clone repository and add to your project.
Follow these steps:
-
Extract Reis to your local directories. Place it anywhere you'd like. We will be using C:\vs_libs.
You should preferably put it in a folder that you dedicate to holding all your development libraries for Visual Studio.
-
Open Visual Studio and create a new Empty Project.
-
Go to Project Properties.
-
Tell Visual Studio to search for header files in the include folder.
Path: Configuration Properties > VC++ Directories > Include Directories -
Click the folder icon, and then click the button that pops up.
-
Now find the folders you extracted and select the include folder and click OK.
Now Visual Studio knows where to find the header files.
Possible Error: Compiler can't find Reis.h.
-
Tell Visual Studio to search for library files in the library folder we just extracted.
Path: Configuration Properties > VC++ Directories > Library Directories -
Click the folder icon, and then click the button that pops up.
-
Now go find the lib folder you extracted.
This is important: most compilers still compile 32bit binaries by default to maximize compatibility. We will be using the 32bit binaries for this tutorial set. It doesn't matter if you have a 64bit operating system, since we are compiling 32bit binaries we will be using the 32bit library.
Possible Error: error LNK2019: unresolved external symbol.
-
In order to compile code, we have to tell Visual Studio to link against the libraries.
Path: Configuration Properties > Linker > Input > Additional Dependencies -
Now paste Reis.lib; into the Additional dependencies field and click OK.
Now Visual Studio knows to link against the extension library.
Possible Error: Undefined reference error after compiling.
-
Under Linker in the System menu, set the subsystem.
Path: Configuration Properties > Linker > System > SubSystemSet to Windows if you don't want console output. Set to Console if you do want console output. For the tutorial, errors will be printed on the console, so I recommend leaving it as a console application as you are still learning and prototyping.
Possible Error: entry point not being defined or unresolved external symbol _main.
-
Now operating system needs to be able to find the .dll files for the extension library while running.
Copy all .dll files from the /dlls folder and put them on your project working directory (where the vcxproj file is at).
Possible Error: Couldn't find [SDL2].dll files.
- Have fun.
Learn more about How To Use.
Reis 2D Game Engine
by marcelomesmo | temp link