Ray
732b775a1d
Proper variables initialization
pirms 6 gadiem
Ray
4c84208644
Working on batch reset issue
Corrected memory leak!
pirms 6 gadiem
Ray
eef44fd930
Merge pull request #625 from ChrisDill/master
Raymath dllexport fix
pirms 6 gadiem
ChrisDill
c669c6762f
Improved raymath defines
- Using raylib.h as reference, added define checks for BUILD_LIBTYPE_SHARED and USE_LIBTYPE_SHARED.
pirms 6 gadiem
ChrisDill
a187361c6f
Raymath dllexport fix if _WIN32 defined
- Added check for dllexport to compile if _WIN32 defined.
- If not defined then use the original RMDEF.
pirms 6 gadiem
ChrisDill
42b52ecdb1
Raymath dllexport fix
- Added __declspec(dllexport) to RMDEF in raymath.h. This allows them to be accessed when importing from raylib.dll.
pirms 6 gadiem
Ray
e4f74e85a4
Merge pull request #624 from ChrisDill/master
Added Sublime Text 3 project template
pirms 6 gadiem
ChrisDill
a23feee6f3
Added Sublime Text 3 project template
- Added Sublime Text project file.
- Added Sublime Text build system.
pirms 6 gadiem
Ray
46411e1c55
Renamed n-patch sample
pirms 6 gadiem
Ray
b88bfa7267
Review PR formatting
pirms 6 gadiem
Ray
20ff9dc663
Merge pull request #622 from Joefish/rectcollision-optim
Shapes: Simplifies CheckCollisionRecs
pirms 6 gadiem
Ray
477928dd0f
Merge pull request #623 from Joefish/snake-fix
Games: Fixes bugs in Snake
pirms 6 gadiem
Joseph-Eugene Winzer
1cef8ea1bf
Shapes: Simplifies CheckCollisionRecs
By comparing the edges of the rectangles relative to each other we can
determine if they intersect or not.
pirms 6 gadiem
Joseph-Eugene Winzer
ab7acd6e34
Games: Snake: Fixes snake head collision with fruit
CheckCollisionRecs() returns true on edge-collision what means that the
snake eats the fruit when colliding with it but also when sliding by one
unit above or below the fruit.
pirms 6 gadiem
Joseph-Eugene Winzer
b4c02d94a0
Games: Snake: Fixes fruit spawn position
If the initial fruit position collides with the snake's body a new
position for the fruit is generated but without adding the grid offset.
pirms 6 gadiem
Ray
34493ed231
Merge pull request #620 from mackron/dr/mini_al
Update mini_al to 0.8.5.
pirms 6 gadiem
David Reid
3200b23469
Update mini_al.
This should improve the Raspberry Pi experience.
pirms 6 gadiem
Ray
00f5f2ead2
Merge pull request #616 from overdev/master
[Feature Request] 9-patch drawing function
pirms 6 gadiem
Jorge A. Gomes
dab78d59f3
Update textures.c
See raylib/examples/textures/textures_image_9patch.c for how to use `DrawTextureNPatch` function.
pirms 6 gadiem
Jorge A. Gomes
5f89e35d1c
Update raylib.h
pirms 6 gadiem
Jorge A. Gomes
921cacacfb
Added example screenshot.
pirms 6 gadiem
Jorge A. Gomes
051cf1346b
Added texture_image_9patch.c example
pirms 6 gadiem
Jorge A. Gomes
34c3ae5ab3
Added 9-patch texture used in the example code.
pirms 6 gadiem
Ray
7634cbeb22
Updated mini_al
Corrected issue with sound playing (pop sound at the end)
pirms 6 gadiem
Ray
aa1bb1e33d
Update CONTRIBUTING.md
pirms 6 gadiem
Ray
06be400ca3
Reviewed AnimatedModel struct
Just reviewing for a possible adaptation of AnimatedModel to default raylib Model...
pirms 6 gadiem
Ray
b042fe12e6
Reviewed spacings on latest PR
pirms 6 gadiem
Ray
61b32e45ed
Merge pull request #618 from kimkulling/fix_compiler_warnings
Fix compiler warnings
pirms 6 gadiem
Kim Kulling
f5f7ed79b8
Fix compiler warnings of lib
pirms 6 gadiem
Kim Kulling
b2cac82fa0
Fix compiler warings in texture.c and more.
pirms 6 gadiem
Kim Kulling
ecf8bff4aa
Fix compiler warnings, first part
pirms 6 gadiem
Jorge A. Gomes
28424141f0
Update textures.c
Added support form vertical and horizontal 3-patches.
Corrected the distortion caused when destRec size is smaller than 4x4. Now even 1x10 or 0x0 sizes are drawn correctly.
pirms 6 gadiem
Jorge A. Gomes
6ef03ea4e8
Update raylib.h
Added support form vertical and horizontal 3-patches.
Corrected the distortion caused when destRec size is smaller than 4x4. Now even 1x10 or 0x0 sizes are drawn correctly.
pirms 6 gadiem
Ray
d4bb444fe5
Merge pull request #609 from pamarcos/fix_physac_examples
[physac] Fix Physac examples to be run without creating new thread
pirms 6 gadiem
Jorge A. Gomes
7cc2a5585b
Update textures.c
Added DrawNinePatch() function implementation.
pirms 6 gadiem
Jorge A. Gomes
c9ca14e659
Update raylib.h
Added NinePatch struc definition and function prototype.
pirms 6 gadiem
Ray
d999e5a016
Added VSCode project template
pirms 6 gadiem
Ray
b6f2fb613e
Merge pull request #612 from ethan-tqa/master
fix problem when compiling with MSVC 2017, error C2177
pirms 6 gadiem
Ethan Trịnh
6ea8c62b43
make sure that the constant is of float type, not double
pirms 6 gadiem
Ethan Trịnh
741513842a
fix problem when compiling with MSVC 2017, built-in CMake: C2177 constant too big
pirms 6 gadiem
Ahmad Fatoum
8bea6abe8c
Add CMake entry to projects/README.md
pirms 6 gadiem
Ahmad Fatoum
286c41af52
Sync with upstream GLFW pull request
The GLFW tree distributed with raylib has two modifications:
- GLFW_PKG_{DEPS,LIBS} are exported to PARENT_SCOPE, so we can use them
in our pkg-config file
- An intermediary glfw_objlib target is added, so we can reexport GLFW
symbols from libraylib.a
rglfw can fix the second point, but for Wayland usage, we would have to
replicate protocol generation, so we just leverage GLFW's existing
support instead.
To make maintenance easier, I have submitted a pull request for
including these modifications to upstream GLFW.
And to make that one easier, this patch dog-foods the modifications,
so raylib users can help find regressions. :-)
glfw/glfw#1307
pirms 6 gadiem
Ray
7154a83313
Merge pull request #610 from pamarcos/fix_chdir_macos
[games] Prevent GLFW changing working dir to 'Resources'
pirms 6 gadiem
Pablo Marcos Oltra
907e27ef4e
Fix Physac examples to be run without creating new thread
pirms 6 gadiem
Ahmad Fatoum
78487f7521
CMake: Make the raylib project as a whole embeddable
So user code can use add_subdirectory to build it (similar to what we do
with GLFW or what the projects/CMake/CMakeLists.txt can do).
pirms 6 gadiem
Pablo Marcos Oltra
89cec68565
Prevent GLFW changing working dir to 'Resources'
pirms 6 gadiem
Ahmad Fatoum
e82505b873
Add projects/CMake example
The CMakeLists.txt checks for an installed raylib and downloads and
installs one if none is found. Afterwards, it builds core_basic_window.c
pirms 6 gadiem
Ahmad Fatoum
548dbeb1ca
Fix typo (s/proedural/procedural)
pirms 6 gadiem
Ahmad Fatoum
6905a875ed
Merge pull request #608 from a3f/master
CMake: Major cleanup to support find_package(raylib)
pirms 6 gadiem
Ahmad Fatoum
5a94a280d0
CMake: include rlgl_standalone in -DBUILD_EXAMPLES
With the recent CMake cleanup, getting raylib's dependencies for use
when building rlgl_standalone is quite straight forward, so lets enable
it again.
Fixes #508 , just properly this time. :)
pirms 6 gadiem