summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorSeth Archambault <[email protected]>2020-11-29 03:53:29 -0500
committerGitHub <[email protected]>2020-11-29 09:53:29 +0100
commited0fda2b406c14e445ebe61c7b75ed05fbe820ab (patch)
tree2a85fa1715db28c933b505899e6dddcccea551a9 /examples
parentd6f4f3ee88a1eaa77acba4ae9aab7ed2e52049bf (diff)
downloadraylib-ed0fda2b406c14e445ebe61c7b75ed05fbe820ab.tar.gz
raylib-ed0fda2b406c14e445ebe61c7b75ed05fbe820ab.zip
Added Apple Compilation Instructions (#1444)
Stumbled on this example and I love this! Adding instructions that work for me on MacOS.. Note that glfw3 will need to be statically built locally and copied to this external/libs directory on mac. I can upload my static version, but it probably makes sense to do this only if there's some general naming convention for adding platform specific folders. Like "external_osx/lib" or "external/lib_osx". Then I'll drop my static libs in there.
Diffstat (limited to 'examples')
-rw-r--r--examples/others/rlgl_standalone.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/others/rlgl_standalone.c b/examples/others/rlgl_standalone.c
index be194bf9..0ab3229e 100644
--- a/examples/others/rlgl_standalone.c
+++ b/examples/others/rlgl_standalone.c
@@ -15,10 +15,15 @@
* allows coding in a pseudo-OpenGL 1.1 style while translating calls to multiple
* OpenGL versions backends (1.1, 2.1, 3.3, ES 2.0).
*
-* COMPILATION:
+* WINDOWS COMPILATION:
* gcc -o rlgl_standalone.exe rlgl_standalone.c -s -Iexternal\include -I..\..\src \
* -L. -Lexternal\lib -lglfw3 -lopengl32 -lgdi32 -Wall -std=c99 -DGRAPHICS_API_OPENGL_33
*
+* APPLE COMPILATION:
+* gcc -o rlgl_standalone rlgl_standalone.c -I../../src -Iexternal/include -Lexternal/lib \
+* -lglfw3 -std=c99 -framework CoreVideo -framework OpenGL -framework OpenAL \
+* -framework IOKit -framework Cocoa -Wno-deprecated-declarations
+*
* LICENSE: zlib/libpng
*
* This example is licensed under an unmodified zlib/libpng license, which is an OSI-certified,