Ahmad Fatoum
a56b3c2194
CMake: suppress OpenGL deprecation warnings on macOS Mojave
...
A single warning at configuration time is enough.
2018-10-07 00:33:05 +02:00
Pablo Marcos Oltra
35634f37c8
Fix physac's fixed time step
2018-10-04 18:29:50 +02:00
Ray
589152b658
Review void pointer incrementation
2018-10-01 15:45:01 +02:00
Ray
d67edb591a
Support KXT image file export
...
[textures] Added SaveKTX()
[rlgl] Exposed rlGetGlTextureFormats()
2018-10-01 15:30:48 +02:00
Ray
ecb787d76f
Update version number (internally)
2018-10-01 15:29:34 +02:00
ChrisDill
67dc50ef00
Changed monitor functions to use a index
...
- Using same idea as SetWindowMonitor to take in a index with 0 being the primary monitor.
2018-09-30 15:20:02 +01:00
ChrisDill
6b84b76b70
Forgot #else in platform check
...
- Added else so return not compiled twice.
2018-09-29 14:28:07 +01:00
ChrisDill
ed95337eb8
Added platform check
...
- Added PLATFORM_DESKTOP check for Monitor functions to try to fix issue on android.
- Not sure what return types should be when not on desktop. Added rough guess for now.
2018-09-29 14:10:29 +01:00
ChrisDill
ed79d53e1a
Changed tabs to spaces
...
- Fixed tabs used instead of 4 spaces
2018-09-27 16:23:11 +01:00
ChrisDill
73701c12b2
Merge remote-tracking branch 'upstream/master'
2018-09-27 15:54:02 +01:00
ChrisDill
1836e02c1e
Added monitor functions
...
- Get number of monitors
- Get size, physical size and name of primary monitor. Could pass monitor id instead not sure.
2018-09-27 15:52:56 +01:00
Ray
29eddb9ff3
Updated icon data
2018-09-26 16:02:42 +02:00
Ray
abfbc42df7
PNG image size optimization
2018-09-25 12:53:31 +02:00
Ray
9efe5c6802
Support MP3 wave loading -NOT TESTED-
2018-09-19 15:57:46 +02:00
Ray
be599a9ece
enjoy!
2018-09-18 21:34:02 +02:00
Ray
27c3afd91c
enjoy!
2018-09-18 21:30:52 +02:00
Ray
2bd18ab91e
Support ExportImage() as raw pixel data
...
Added note on KTX 2.2
2018-09-17 19:00:51 +02:00
Ray
f503fded67
Support image export
2018-09-17 17:06:58 +02:00
Ray
ec5c9686b3
Improved data export capabilities!
...
REVIEWED: ExportImage()
REVIEWED: ExportMesh()
ADDED: ExportWave()
REMOVED: Internal funcs: SavePNG(), SaveBMP()
NOTE: These changes break the API (parameters order)
2018-09-17 16:56:02 +02:00
Ray
3a1a489545
Removed TABS
2018-09-14 13:00:48 +02:00
Ray
5b09630d45
Update mini_al to v0.8.8
...
Some minor tweaks around
2018-09-14 12:47:31 +02:00
Ray
f32e23c11b
Merge pull request #641 from ChrisDill/master
...
Added a few missing functions to raymath
2018-09-13 12:51:45 +02:00
ChrisDill
1e1bbaa40b
Added a few missing functions to raymath
...
- Added Vector2MultiplyV
- Added Vector2DivideV
- Added Vector3Divide
- Added Vector3DivideV
2018-09-13 11:43:10 +01:00
F.H
9f1489dc1d
Update models.c
...
fix bug with GenMeshPlane() creating too many vertices/texcoords/normals for the plane mesh
2018-09-06 21:11:00 +02:00
Ray
dfb8837c46
Support aliased font texture generation
...
Useful for bitmaps pixelated fonts where anti-aliasing is not desired!
Change also enables additional font generation mechanisms in a future (cleartype, hinting...).
2018-09-06 16:56:21 +02:00
Ray
1fcb3c0317
Started working on IQM/glTF loaders
2018-09-05 10:59:05 +02:00
Ray
ac31f51c5e
Corrected issue with font tint
2018-09-05 10:47:57 +02:00
Ray
d0608b031a
Corrected issue with types
2018-09-05 10:47:40 +02:00
raysan5
207b5a26b1
Create release directory if not exist
2018-08-25 18:25:51 +02:00
raysan5
af919e5c9f
Review naming to follow raylib conventions
...
strprbrk() does not follow raylib function name convention but as it is
very similar to the standard strpbrk(), we'll keep the naming... also,
don't like to mix static functions with API functions but as strprbrk()
is just used in the two functions below, it's ok to be there... maybe it
could be refactored in a future or even move the logic inside the
required functions...
2018-08-25 17:55:25 +02:00
Ahmad Fatoum
85213795d1
GetDirectoryPath: return NULL, don't crash when no slash
...
Noted in #634 .
2018-08-25 09:27:41 +02:00
Ahmad Fatoum
5dda105a79
core: Support slashes as well in GetFileName & GetDirectoryPath
...
Fixes #634 .
2018-08-25 09:23:40 +02:00
Oğuzhan Çankaya
2bef76735d
lerp for vector2 and float
2018-08-21 04:14:43 +03:00
Justin Clift
699cadcf98
Add the remaining numeric keypad keys, and a few other missing ones
2018-08-19 18:00:16 +01:00
Justin Clift
6a5dbeace8
Add the plus and minus keys on both the main keyboard and keypad
2018-08-19 14:40:30 +01:00
Ray
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
Ray
732b775a1d
Proper variables initialization
2018-08-17 11:41:49 +02:00
Ray
4c84208644
Working on batch reset issue
...
Corrected memory leak!
2018-08-17 01:34:45 +02:00
Ray
eef44fd930
Merge pull request #625 from ChrisDill/master
...
Raymath dllexport fix
2018-08-16 23:04:17 +02:00
ChrisDill
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
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.
2018-08-16 12:54:45 +01:00
ChrisDill
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
Ray
b88bfa7267
Review PR formatting
2018-08-14 09:57:31 +02:00
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.
2018-08-14 00:14:06 +02:00
David Reid
3200b23469
Update mini_al.
...
This should improve the Raspberry Pi experience.
2018-08-12 13:45:12 +10:00
Ray
00f5f2ead2
Merge pull request #616 from overdev/master
...
[Feature Request] 9-patch drawing function
2018-08-09 22:42:05 +02:00
Jorge A. Gomes
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
Jorge A. Gomes
5f89e35d1c
Update raylib.h
2018-08-08 16:39:10 -03:00
Ray
7634cbeb22
Updated mini_al
...
Corrected issue with sound playing (pop sound at the end)
2018-08-08 18:26:05 +02:00
Ray
b042fe12e6
Reviewed spacings on latest PR
2018-08-06 20:49:47 +02:00