Including SGScript into your project
There are generally two ways to include SGScript: link the library or include the files directly.
Note: Including the files isn't an option if SGScript modules are to be used.
For simplified inclusion of files, add src/
and ext/
to the include paths.
- The main SGScript API is defined in the file
src/sgscript.h
.- Requires the SGScript library to be linked to the project or have the files (
src/*
) compiled in.
- Requires the SGScript library to be linked to the project or have the files (
- Utility library is available in
src/sgs_util.h
.- Requires the SGScript library to be linked to the project or have the files (
src/*
) compiled in.
- Requires the SGScript library to be linked to the project or have the files (
- eXtended Game Math library can be found in
ext/sgsxgmath.h
.- Requires the eXtended Game Math library to be linked to the project or have the files (
ext/sgsxgmath.c
) compiled in.
- Requires the eXtended Game Math library to be linked to the project or have the files (