Przeglądaj źródła

Update physac source and examples with new changes

pull/240/head
victorfisac 8 lat temu
rodzic
commit
c964559bc9
6 zmienionych plików z 33 dodań i 11 usunięć
  1. +5
    -2
      examples/physics_demo.c
  2. +5
    -2
      examples/physics_friction.c
  3. +5
    -2
      examples/physics_movement.c
  4. +5
    -2
      examples/physics_restitution.c
  5. +5
    -2
      examples/physics_shatter.c
  6. +8
    -1
      src/physac.h

+ 5
- 2
examples/physics_demo.c Wyświetl plik

@ -3,9 +3,12 @@
* Physac - Physics demo * Physac - Physics demo
* *
* NOTE: Physac requires multi-threading, when InitPhysics() a second thread is created to manage physics calculations. * 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'
* *
* Copyright (c) 2016 Victor Fisac
* Use the following code to compile (-static -lpthread):
* 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
* *
********************************************************************************************/ ********************************************************************************************/

+ 5
- 2
examples/physics_friction.c Wyświetl plik

@ -3,9 +3,12 @@
* Physac - Physics friction * Physac - Physics friction
* *
* NOTE: Physac requires multi-threading, when InitPhysics() a second thread is created to manage physics calculations. * 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'
* *
* Copyright (c) 2016 Victor Fisac
* Use the following code to compile (-static -lpthread):
* 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
* *
********************************************************************************************/ ********************************************************************************************/

+ 5
- 2
examples/physics_movement.c Wyświetl plik

@ -3,9 +3,12 @@
* Physac - Physics movement * Physac - Physics movement
* *
* NOTE: Physac requires multi-threading, when InitPhysics() a second thread is created to manage physics calculations. * 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'
* *
* Copyright (c) 2016 Victor Fisac
* Use the following code to compile (-static -lpthread):
* 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
* *
********************************************************************************************/ ********************************************************************************************/

+ 5
- 2
examples/physics_restitution.c Wyświetl plik

@ -3,9 +3,12 @@
* Physac - Physics restitution * Physac - Physics restitution
* *
* NOTE: Physac requires multi-threading, when InitPhysics() a second thread is created to manage physics calculations. * 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'
* *
* Copyright (c) 2016 Victor Fisac
* Use the following code to compile (-static -lpthread):
* 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
* *
********************************************************************************************/ ********************************************************************************************/

+ 5
- 2
examples/physics_shatter.c Wyświetl plik

@ -3,9 +3,12 @@
* Physac - Body shatter * Physac - Body shatter
* *
* NOTE: Physac requires multi-threading, when InitPhysics() a second thread is created to manage physics calculations. * 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'
* *
* Copyright (c) 2016 Victor Fisac
* Use the following code to compile (-static -lpthread):
* 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
* *
********************************************************************************************/ ********************************************************************************************/

+ 8
- 1
src/physac.h Wyświetl plik

@ -38,13 +38,20 @@
* You can define your own malloc/free implementation replacing stdlib.h malloc()/free() functions. * You can define your own malloc/free implementation replacing stdlib.h malloc()/free() functions.
* Otherwise it will include stdlib.h and use the C standard library malloc()/free() function. * Otherwise it will include stdlib.h and use the C standard library malloc()/free() function.
* *
*
* NOTE: Physac requires multi-threading, when InitPhysics() a second thread is created to manage physics calculations.
*
* Use the following code to compile (-static -lpthread):
* 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
*
* VERY THANKS TO: * VERY THANKS TO:
* Ramón Santamaria (@raysan5) * Ramón Santamaria (@raysan5)
* *
* *
* LICENSE: zlib/libpng * LICENSE: zlib/libpng
* *
* Copyright (c) 2016 Victor Fisac
* Copyright (c) 2017 Victor Fisac
* *
* This software is provided "as-is", without any express or implied warranty. In no event * This software is provided "as-is", without any express or implied warranty. In no event
* will the authors be held liable for any damages arising from the use of this software. * will the authors be held liable for any damages arising from the use of this software.

Ładowanie…
Anuluj
Zapisz