Working on examples...
- Removed rbmf font example - Reviewed physac examples
This commit is contained in:
parent
c67cffea38
commit
b4d28cc7a1
29 changed files with 75 additions and 51 deletions
|
@ -2,9 +2,11 @@
|
|||
*
|
||||
* Physac - Physics movement
|
||||
*
|
||||
* NOTE: Physac requires multi-threading, when InitPhysics() a second thread is created to manage physics calculations.
|
||||
* 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)
|
||||
*
|
||||
* Use the following line to compile:
|
||||
*
|
||||
* 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
|
||||
*
|
||||
|
@ -15,9 +17,9 @@
|
|||
#include "raylib.h"
|
||||
|
||||
#define PHYSAC_IMPLEMENTATION
|
||||
#include "../src/physac.h"
|
||||
#include "physac.h"
|
||||
|
||||
#define VELOCITY 0.5f
|
||||
#define VELOCITY 0.5f
|
||||
|
||||
int main()
|
||||
{
|
||||
|
@ -118,8 +120,10 @@ int main()
|
|||
// De-Initialization
|
||||
//--------------------------------------------------------------------------------------
|
||||
ClosePhysics(); // Unitialize physics
|
||||
|
||||
CloseWindow(); // Close window and OpenGL context
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue