Ray
5fd3f13cb6
Merge pull request #832 from ProfJski/master
Remove sqrt() from CheckCollisionSpheres()
преди 5 години
ProfJski
1655463ba5
Update models.c
преди 5 години
ProfJski
4330b098f3
Merge pull request #1 from ProfJski/ProfJski-patch-1
Update CheckCollisionSpheres() to avoid sqrt
преди 5 години
ProfJski
d3dae38449
Update CheckCollisionSpheres() to avoid sqrt
Square root calls are computationally expensive. In this case, they can be avoided. Instead of checking distance<RadA+RadB, check distance squared against (RadA+RadB) squared. The dot product of Vector3Subtract(B,A) with itself gives distance squared, so I used this code instead of an element-by-element computation of distance squared. The only downside is that your geometric code is very readable, whereas this is less so.
преди 5 години
Ray
97c8a28aaa
Remove trail spaces
преди 5 години
Ray
ecea95f50f
Update raylib.rc.data
преди 5 години
Ray
4773de26a5
Added WinMM library
Required for high resolution timer
преди 5 години
Ray
f6d1ffd4cd
Tweak ON flag
преди 5 години
Ray
9824387773
Added resource file for raylib.dll
Some minor tweaks
преди 5 години
Ray
f6d1448da9
Review CMake option flags
преди 5 години
Ray
e0e2346c22
NO SUPPORT_BUSY_WAIT_LOOP by default
преди 5 години
Ray
afd90a5a56
Add comment tweak
преди 5 години
Ray
5d09ca550f
Update issue templates
преди 5 години
Ray
7be6e3e288
Update issue templates
преди 5 години
Ray
7a23a35eed
Remove broken example: standard_lighting
преди 5 години
Ray
621965cb8c
Move bunnymark example to another module
преди 5 години
Ray
8bafe03ee0
Update text_unicode.c
преди 5 години
Ray
eeef7fdb51
Review example formatting
преди 5 години
Ray
528e164ac5
Corrected issue with wrong text measuring
преди 5 години
Ray
80c8599e81
Avoid warnings pre-evaluating values
Variable operations inside the functions should be evaluated before the function operations.
преди 5 години
Ray
4c33d38812
Avoid warnings pre-evaluating values
Variable operations inside the functions should be evaluated before the function operations.
преди 5 години
Ray
2ddc4bacba
Example review
преди 5 години
Ahmad Fatoum
3e0e91013f
Revert "CMake: make unsequenced modifications an error"
This reverts commit 23c1c0bdb2
.
Because add_if_flag_compiles apparently allows unsequenced
even if the compiler doesn't support it..
преди 5 години
Ahmad Fatoum
23c1c0bdb2
CMake: make unsequenced modifications an error
They not only result in discrepancies between different compiler,
but trigger undefined behavior. Avoid them by having them break
the CMake build and CI.
преди 5 години
Ahmad Fatoum
43bfb979e5
examples: CMake: warn once only about macOS OpenGL deprecation
Otherwise compiling rlgl is too spammy. While at it remove
the now unneeded CheckIncludeFiles.
преди 5 години
Ahmad Fatoum
ae2e48c77f
CMake: don't use system GLFW headers if using built-in GLFW
This fixes the current CI failure.
преди 5 години
Ahmad Fatoum
7d57a64337
Travis CI: build, don't download, external GLFW
CI is failing because we still test with GLFW 3.2, while
the internal GLFW is 3.3. To avoid such breakages in future,
build and install our own GLFW instead of relying on an external
Debian package.
преди 5 години
Ahmad Fatoum
36d8a648f0
external: glfw: reinstate export of GLFW_PKG_{DEPS,LIBS}
We were doing this before, but it was deleted during the
last GLFW update. Readd it to fix the associated macOS CI failure.
Fixes: cd934c9f6
("Update GLFW to 3.3.1")
преди 5 години
Ahmad Fatoum
2cda760312
examples: CMake: don't build core_loading_thread if no pthreads
The example requires pthreads and now C11 <stdatomic.h>, thus skip it
if either isn't available.
This also fixes the current Travis CI build failure for the
Windows configuration.
преди 5 години
Ahmad Fatoum
6681fd7df2
examples: core_loading_thread: fix race condition
A plain variable is insuffecient for inter-thread communication. Both the
compiler and the processor may reorder accesses. The compiler could even
cache dataLoaded with the result that STATE_FINISHED becomes unreachable.
Fix this by using C11 atomic_bool, which guarantees sequential consistency.
This fixes #827 .
преди 5 години
Ahmad Fatoum
53d9beb534
examples: core_loading_thread: use symbolic names for state machine states
And while at it, use a switch clause to make the state machine
structure clearer.
преди 5 години
Ray
0fe409bfa9
Renamed example
преди 5 години
Ray
f53395694d
Create examples_template.c
преди 5 години
Ray
62f1511e5f
Batch of 9 new shapes examples!
Some examples included in this batch require the included libraries: `easings.h` and `raygui.h`. Examples included:
- shapes_bouncing_ball
- shapes_collision_area
- shapes_following_eyes
- shapes_draw_circle_sector (requires raygui.h)
- shapes_draw_rectangle_rounded (requires raygui.h)
- shapes_draw_ring (requires raygui.h)
- shapes_easings_ball_anim (requires easings.h)
- shapes_easings_box_anim (requires easings.h)
- shapes_easings_rectangle_array (requires easings.h)
преди 5 години
Ray
0c53360a3a
new example: textures_sprite_explosion
преди 5 години
Ray
c6b7f9c5b0
Some minor comments
преди 5 години
Ray
f44888e466
Force HighDPI on macOS
преди 5 години
Ray
4d00b5a8bb
Merge pull request #824 from kawa-yoiko/highdpi-cmakeopt
Add SUPPORT_HIGH_DPI to CMakeOptions.txt
преди 5 години
Shiqing
780cefc3b0
Add SUPPORT_HIGH_DPI to CMakeOptions.txt
преди 5 години
Ray
0b2bad4205
Update models_first_person_maze.c
преди 5 години
Ray
beda4180cd
Added missing include
преди 5 години
Ray
a9ebf8e10d
new example: textures_sprite_button
преди 5 години
Ray
34feacc148
new example: core_loading_thread
Data loading in a second thread with progress bar in main thread
преди 5 години
Ray
d46160fb6e
example review: models_first_person_maze
Added walls collision check
преди 5 години
Ray
fc56f8d9ef
Work on touch_as_mouse input -WIP-
преди 5 години
Ray
73a54fcc3d
Update Makefile
преди 5 години
Ray
0f84f9f51f
Merge pull request #823 from Narice/master
Defined PI (#822 )
преди 5 години
Narice
a54af067c2
Added guards to PI define
Added guards to not redefine it if the user is using it with raylib.h
also added an 'f' at the end of the define to keep compliant with raylib's PI define
преди 5 години
Narice
59c436c922
Defined PI ( #822 )
PI is not always defined in math.h, thus it must be defined in this header
преди 5 години
Ray
c9025ed205
Corrected issue with texture rendering
Not sure if already corrected...
преди 5 години