mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-04 05:09:17 -05:00
Improve readability
@ -70,6 +70,11 @@ You can create a build.sh file that you can run to compile your project. In the
|
|||||||
clang++ -I/w/raylib_build/raylib/release/osx -L/usr/local/lib -L/w/raylib_build/raylib/release/osx -lglfw -lraylib -framework GLUT -framework OpenGL -framework Cocoa my_app.cpp -o my_app
|
clang++ -I/w/raylib_build/raylib/release/osx -L/usr/local/lib -L/w/raylib_build/raylib/release/osx -lglfw -lraylib -framework GLUT -framework OpenGL -framework Cocoa my_app.cpp -o my_app
|
||||||
````
|
````
|
||||||
|
|
||||||
|
If you'd like to use C instead:
|
||||||
|
````
|
||||||
|
clang -I/w/raylib_build/raylib/release/osx -L/usr/local/lib -L/w/raylib_build/raylib/release/osx -lglfw -lraylib -framework GLUT -framework OpenGL -framework Cocoa my_app.c -o my_app
|
||||||
|
````
|
||||||
|
|
||||||
Note that this may give you a CLITERAL error, which seems to be an issue in raylib.h: https://github.com/raysan5/raylib/blob/develop/src/raylib.h#L261
|
Note that this may give you a CLITERAL error, which seems to be an issue in raylib.h: https://github.com/raysan5/raylib/blob/develop/src/raylib.h#L261
|
||||||
|
|
||||||
Simply comment out that section so that only this line is active:
|
Simply comment out that section so that only this line is active:
|
||||||
@ -79,11 +84,6 @@ Simply comment out that section so that only this line is active:
|
|||||||
..Or just don't use CLITERAL and use (Color){255,255,255,255} instead. (That would be all white)
|
..Or just don't use CLITERAL and use (Color){255,255,255,255} instead. (That would be all white)
|
||||||
|
|
||||||
|
|
||||||
If you'd like to use C instead:
|
|
||||||
````
|
|
||||||
clang -I/w/raylib_build/raylib/release/osx -L/usr/local/lib -L/w/raylib_build/raylib/release/osx -lglfw -lraylib -framework GLUT -framework OpenGL -framework Cocoa my_app.c -o my_app
|
|
||||||
````
|
|
||||||
|
|
||||||
Now running build.sh (After setting permissions appropriately) will compile your program! No XCode needed.
|
Now running build.sh (After setting permissions appropriately) will compile your program! No XCode needed.
|
||||||
|
|
||||||
# Building Statically, so you can Run on Other Computers
|
# Building Statically, so you can Run on Other Computers
|
||||||
|
|||||||
Reference in New Issue
Block a user