aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTeodor Stoenescu <demonu.ro@gmail.com>2016-08-31 09:32:08 +0300
committerTeodor Stoenescu <demonu.ro@gmail.com>2016-08-31 09:32:08 +0300
commit384602e5b59bf67e2e7b5e6dd40bf78c32a5bb21 (patch)
tree149981ded9aa340fa208c8aa913351d3cb3f8067 /examples
parentd0cf19e03559eb5cd60035d54d4ca7b5991344b8 (diff)
parentbe97583f00997fa918a15d0164190ae6876d0571 (diff)
downloadraylib-384602e5b59bf67e2e7b5e6dd40bf78c32a5bb21.tar.gz
raylib-384602e5b59bf67e2e7b5e6dd40bf78c32a5bb21.zip
Merge remote-tracking branch 'upstream/develop' into develop
Diffstat (limited to 'examples')
-rw-r--r--examples/physics_basic_rigidbody.c11
-rw-r--r--examples/physics_forces.c12
2 files changed, 18 insertions, 5 deletions
diff --git a/examples/physics_basic_rigidbody.c b/examples/physics_basic_rigidbody.c
index 75720c97..87316a98 100644
--- a/examples/physics_basic_rigidbody.c
+++ b/examples/physics_basic_rigidbody.c
@@ -5,9 +5,16 @@
* This example has been created using raylib 1.5 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
+* NOTE:
+* Physac requires multi-threading, when InitPhysics() a second thread is created to manage
+* physics calculations. To accomplish that, physac uses pthread Win32 library that can be
+* found inside raylib/src/external/pthread directory.
*
-* Compile example using:
-* cmd /c IF NOT EXIST pthreadGC2.dll copy C:\raylib\raylib\src\external\pthread\pthreadGC2.dll $(CURRENT_DIRECTORY) /Y
+* Add pthread library when compiling physac example:
+* gcc -o $(NAME_PART).exe $(FILE_NAME) $(RAYLIB_DIR)\raylib_icon -L../src/external/pthread/lib \
+* -I../src -I../src/external/pthread/include -lraylib -lglfw3 -lopengl32 -lgdi32 -lpthreadGC2 -std=c99 -Wall
+*
+* Note that pthreadGC2.dll must be also copied to project directory!
*
* Copyright (c) 2016 Victor Fisac and Ramon Santamaria (@raysan5)
*
diff --git a/examples/physics_forces.c b/examples/physics_forces.c
index efe8e240..e45cb44c 100644
--- a/examples/physics_forces.c
+++ b/examples/physics_forces.c
@@ -5,10 +5,16 @@
* This example has been created using raylib 1.5 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* NOTE: This example requires raylib module [rlgl]
+* NOTE:
+* Physac requires multi-threading, when InitPhysics() a second thread is created to manage
+* physics calculations. To accomplish that, physac uses pthread Win32 library that can be
+* found inside raylib/src/external/pthread directory.
*
-* Compile example using:
-* cmd /c IF NOT EXIST pthreadGC2.dll copy C:\raylib\raylib\src\external\pthread\pthreadGC2.dll $(CURRENT_DIRECTORY) /Y
+* Add pthread library when compiling physac example:
+* gcc -o $(NAME_PART).exe $(FILE_NAME) $(RAYLIB_DIR)\raylib_icon -L../src/external/pthread/lib \
+* -I../src -I../src/external/pthread/include -lraylib -lglfw3 -lopengl32 -lgdi32 -lpthreadGC2 -std=c99 -Wall
+*
+* Note that pthreadGC2.dll must be also copied to project directory!
*
* Copyright (c) 2016 Victor Fisac and Ramon Santamaria (@raysan5)
*