diff --git a/contributions/README.md b/contributions/README.md index 244c38cc..01580e50 100644 --- a/contributions/README.md +++ b/contributions/README.md @@ -29,7 +29,16 @@ These source code contributions enhance the functionality of the olcPixelGameEng ## MacOS Support * These will potentially be absorbed into main build * https://github.com/MumflrFumperdink/olcPGEMac - + +* compilation instructions for MacOS + * install libpng using homebrew + ```shell + brew install libpng + ``` + * use the below compilation flags for MacOS + ```shell + clang++ olcExampleProgram.cpp -I/opt/homebrew/opt/libpng/include -L/opt/homebrew/opt/libpng/lib -framework OpenGL -framework GLUT -framework Cocoa -lpthread -lpng -std=c++20 + ``` ## Android & IOS Support * Fiddlier to setup, but pretty cool once going * https://github.com/Johnnyg63/OLCPGEMobileVisualStudio diff --git a/olcPixelGameEngine.h b/olcPixelGameEngine.h index 5e59a87a..83c05c22 100644 --- a/olcPixelGameEngine.h +++ b/olcPixelGameEngine.h @@ -441,6 +441,7 @@ int main() #include #include #include +#include #pragma endregion #define PGE_VER 230