diff options
| author | victorfisac <[email protected]> | 2017-05-02 14:18:11 +0200 |
|---|---|---|
| committer | victorfisac <[email protected]> | 2017-05-02 14:18:11 +0200 |
| commit | db0cfa935f52a2557e6e3dfddab341917cb1eb14 (patch) | |
| tree | 15e9782c639571d57030420f69c6b8f7c4a69f50 /docs/examples/src/physac/physics_friction.c | |
| parent | 8849a4c7526ee6a321df9393dd69d0b29820311a (diff) | |
| parent | d593bd0081ea2dcafe3182ffc874882b5b7110b4 (diff) | |
| download | raylib-db0cfa935f52a2557e6e3dfddab341917cb1eb14.tar.gz raylib-db0cfa935f52a2557e6e3dfddab341917cb1eb14.zip | |
Merge remote-tracking branch 'refs/remotes/raysan5/develop' into develop
Diffstat (limited to 'docs/examples/src/physac/physics_friction.c')
| -rw-r--r-- | docs/examples/src/physac/physics_friction.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/docs/examples/src/physac/physics_friction.c b/docs/examples/src/physac/physics_friction.c index 28d3c4b8..6ce1d406 100644 --- a/docs/examples/src/physac/physics_friction.c +++ b/docs/examples/src/physac/physics_friction.c @@ -2,17 +2,22 @@ * * Physac - Physics friction * -* NOTE: Physac requires multi-threading, when InitPhysics() a second thread is created to manage physics calculations. -* The file pthreadGC2.dll is required to run the program; you can find it in 'src\external' +* NOTE 1: Physac requires multi-threading, when InitPhysics() a second thread is created to manage physics calculations. +* NOTE 2: Physac requires static C library linkage to avoid dependency on MinGW DLL (-static -lpthread) * -* Copyright (c) 2016 Victor Fisac +* Use the following line to compile: +* +* gcc -o $(NAME_PART).exe $(FILE_NAME) -s $(RAYLIB_DIR)\raylib\raylib_icon -static -lraylib -lpthread +* -lglfw3 -lopengl32 -lgdi32 -lopenal32 -lwinmm -std=c99 -Wl,--subsystem,windows -Wl,-allow-multiple-definition +* +* Copyright (c) 2017 Victor Fisac * ********************************************************************************************/ #include "raylib.h" #define PHYSAC_IMPLEMENTATION -#include "..\src\physac.h" +#include "physac.h" int main() { @@ -128,9 +133,11 @@ int main() // De-Initialization //-------------------------------------------------------------------------------------- - ClosePhysics(); // Unitialize physics + ClosePhysics(); // Uninitialize physics + CloseWindow(); // Close window and OpenGL context //-------------------------------------------------------------------------------------- return 0; } + |
