fe2f8d77a9
Merge pull request #635 from a3f/master
...
core: Support slashes as well in GetFileName & GetDirectoryPath
2018-08-25 10:51:31 +02:00
85213795d1
GetDirectoryPath: return NULL, don't crash when no slash
...
Noted in #634 .
2018-08-25 09:27:41 +02:00
5dda105a79
core: Support slashes as well in GetFileName & GetDirectoryPath
...
Fixes #634 .
2018-08-25 09:23:40 +02:00
4259ff78e1
Merge pull request #633 from unequaled86/patch-1
...
lerp for vector2 and float
2018-08-21 16:29:10 +02:00
2bef76735d
lerp for vector2 and float
2018-08-21 04:14:43 +03:00
20656af122
Merge pull request #631 from sunshinehunter/patch-1
...
Fixes path to rlgl.h in README.md
2018-08-20 15:44:45 +02:00
04a11c86e3
Fixes path to rlgl.h in README.md
...
The link to rlgl in the README was broken, it previously pointed to a .c file which doesn't exist (anymore).
2018-08-20 13:38:01 +02:00
0e340f7116
Merge pull request #629 from justinclift/keyboard_keys_v2
...
Add the remaining numeric keypad keys, and a few other missing ones
2018-08-19 19:30:19 +02:00
699cadcf98
Add the remaining numeric keypad keys, and a few other missing ones
2018-08-19 18:00:16 +01:00
d52b6c23ee
Merge pull request #628 from justinclift/keyboard_keys_v1
...
Add the plus and minus keys on both the main keyboard and keypad
2018-08-19 17:58:01 +02:00
6a5dbeace8
Add the plus and minus keys on both the main keyboard and keypad
2018-08-19 14:40:30 +01:00
506b7b8d7c
Corrected issue with batch overflows
...
When a batch reach its vertex limit, a draw call is issued and batch restarted for refilling but if the draw call was issued for vertex data accumulated inside rlPushMatrix/rlPopMatrix, draw call was issued before the rlPopMatrix, consequently modelview matrix was not properly recovered before the draw call... obviously, it only happened the following draw calls, not the first one...
Now it works ok but this system needs to reviewed, noticed and important frames drop when processing around 20 dynamic batch draw calls, it means filling MAX_QUADS_BATCH (8192) quads of data 20 times per frame, including data updating and sending for draw processing.
Doing some maths, it means:
Vertex data (float) -----> 8192 quads * 4 vertex * 3 comp * 4 byte = 393216 bytes
Texcoords data (float) -> 8192 quads * 4 vertex * 2 comp * 4 byte = 262144 bytes
Color data (uchar) -----> 8192 quads * 4 vertex * 4 comp * 1 byte = 131072 bytes
Thats a total of 786432 bytes (0.75MB) sent to GPU 20 times per frame for processing... I'm testing in an Intel HD Graphics integrated, I imagine is too much data to be sent and and it causes stalls, so the frames drop...
2018-08-17 13:55:46 +02:00
732b775a1d
Proper variables initialization
2018-08-17 11:41:49 +02:00
4c84208644
Working on batch reset issue
...
Corrected memory leak!
2018-08-17 01:34:45 +02:00
eef44fd930
Merge pull request #625 from ChrisDill/master
...
Raymath dllexport fix
2018-08-16 23:04:17 +02:00
c669c6762f
Improved raymath defines
...
- Using raylib.h as reference, added define checks for BUILD_LIBTYPE_SHARED and USE_LIBTYPE_SHARED.
2018-08-16 18:20:49 +01:00
a187361c6f
Raymath dllexport fix if _WIN32 defined
...
- Added check for dllexport to compile if _WIN32 defined.
- If not defined then use the original RMDEF.
2018-08-16 12:54:45 +01:00
42b52ecdb1
Raymath dllexport fix
...
- Added __declspec(dllexport) to RMDEF in raymath.h. This allows them to be accessed when importing from raylib.dll.
2018-08-16 11:29:30 +01:00
e4f74e85a4
Merge pull request #624 from ChrisDill/master
...
Added Sublime Text 3 project template
2018-08-15 16:04:21 +02:00
a23feee6f3
Added Sublime Text 3 project template
...
- Added Sublime Text project file.
- Added Sublime Text build system.
2018-08-15 11:38:38 +01:00
46411e1c55
Renamed n-patch sample
2018-08-14 19:26:50 +02:00
b88bfa7267
Review PR formatting
2018-08-14 09:57:31 +02:00
20ff9dc663
Merge pull request #622 from Joefish/rectcollision-optim
...
Shapes: Simplifies CheckCollisionRecs
2018-08-14 09:55:53 +02:00
477928dd0f
Merge pull request #623 from Joefish/snake-fix
...
Games: Fixes bugs in Snake
2018-08-14 09:47:15 +02:00
1cef8ea1bf
Shapes: Simplifies CheckCollisionRecs
...
By comparing the edges of the rectangles relative to each other we can
determine if they intersect or not.
2018-08-14 00:14:06 +02:00
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.
2018-08-13 23:58:42 +02:00
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.
2018-08-13 23:52:18 +02:00
34493ed231
Merge pull request #620 from mackron/dr/mini_al
...
Update mini_al to 0.8.5.
2018-08-13 17:11:39 +02:00
3200b23469
Update mini_al.
...
This should improve the Raspberry Pi experience.
2018-08-12 13:45:12 +10:00
00f5f2ead2
Merge pull request #616 from overdev/master
...
[Feature Request] 9-patch drawing function
2018-08-09 22:42:05 +02:00
dab78d59f3
Update textures.c
...
See raylib/examples/textures/textures_image_9patch.c for how to use `DrawTextureNPatch` function.
2018-08-08 16:42:39 -03:00
5f89e35d1c
Update raylib.h
2018-08-08 16:39:10 -03:00
921cacacfb
Added example screenshot.
2018-08-08 16:26:51 -03:00
051cf1346b
Added texture_image_9patch.c example
2018-08-08 16:22:51 -03:00
34c3ae5ab3
Added 9-patch texture used in the example code.
2018-08-08 16:21:33 -03:00
7634cbeb22
Updated mini_al
...
Corrected issue with sound playing (pop sound at the end)
2018-08-08 18:26:05 +02:00
aa1bb1e33d
Update CONTRIBUTING.md
2018-08-07 19:18:22 +02:00
06be400ca3
Reviewed AnimatedModel struct
...
Just reviewing for a possible adaptation of AnimatedModel to default raylib Model...
2018-08-07 11:31:32 +02:00
b042fe12e6
Reviewed spacings on latest PR
2018-08-06 20:49:47 +02:00
61b32e45ed
Merge pull request #618 from kimkulling/fix_compiler_warnings
...
Fix compiler warnings
2018-08-06 20:43:28 +02:00
f5f7ed79b8
Fix compiler warnings of lib
2018-08-05 23:53:34 +02:00
b2cac82fa0
Fix compiler warings in texture.c and more.
2018-08-05 00:34:35 +02:00
ecf8bff4aa
Fix compiler warnings, first part
2018-08-04 10:32:16 +02:00
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.
2018-08-03 20:53:15 -03:00
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.
2018-08-03 20:50:13 -03:00
d4bb444fe5
Merge pull request #609 from pamarcos/fix_physac_examples
...
[physac] Fix Physac examples to be run without creating new thread
2018-08-03 12:47:53 +02:00
7cc2a5585b
Update textures.c
...
Added DrawNinePatch() function implementation.
2018-08-03 04:51:26 -03:00
c9ca14e659
Update raylib.h
...
Added NinePatch struc definition and function prototype.
2018-08-03 04:48:46 -03:00
d999e5a016
Added VSCode project template
2018-07-31 11:26:52 +02:00
b6f2fb613e
Merge pull request #612 from ethan-tqa/master
...
fix problem when compiling with MSVC 2017, error C2177
2018-07-30 13:56:28 +02:00