Commit Graph

2442 Commits

Author SHA1 Message Date
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
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
Ray
37acf0aa22
Update README.md 2018-09-09 17:36:24 +02:00
Ray
1ef715ab76
Merge pull request #639 from ratkingsminion/patch-1
Update models.c
2018-09-06 22:47:24 +02: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
10c22c8d61 Review example to show text tinting 2018-09-05 10:48:33 +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
Ray
57dfe55759
Merge pull request #637 from MurrayIRC/master
Updated VSCode project to support OSX building / debugging.
2018-08-30 18:41:21 +02:00
Murray Campbell
f97bb085bf
Merge pull request #4 from MurrayIRC/patch-4
Added OSX build tasks
2018-08-30 09:50:09 -05:00
Murray Campbell
ea84cce27d
Merge pull request #3 from MurrayIRC/patch-3
Added OSX launch configurations for debug and release
2018-08-30 09:49:23 -05:00
Murray Campbell
1feb68baaa
Merge pull request #2 from MurrayIRC/patch-2
Fixed included libs for OSX
2018-08-30 09:47:27 -05:00
Murray Campbell
be29c13bfd
Merge pull request #1 from MurrayIRC/patch-1
Added a configuration for OSX
2018-08-30 09:46:51 -05:00
Murray Campbell
04c4537283
Update README.md 2018-08-30 09:43:53 -05:00
Murray Campbell
921e4eaa87
Added OSX build tasks
Users will have to specify their personal installation of raylib.
2018-08-30 09:42:33 -05:00
Murray Campbell
1608745312
Added OSX launch configurations for debug and release 2018-08-30 09:40:58 -05:00
Murray Campbell
166fdbe9c0
Fixed included libs for OSX
This was causing linker errors on OSX
2018-08-30 09:33:41 -05:00
Murray Campbell
5eded83d68
Added a configuration for OSX
This requires the user to explicitly specify the path to their raylib folder. We need a better way around this (something like what we do for windows would help).
2018-08-30 09:29:37 -05:00
raysan5
adf08c88ea Added link to raylib-haskell binding 2018-08-25 18:47:05 +02:00
raysan5
d6241d18ab Removed release directory
With the CI system, release directory has not much sense, actually,
every new commit it gets outdated and latest stable release is already
available in GitHub Release tab.
2018-08-25 18:33:28 +02:00
raysan5
207b5a26b1 Create release directory if not exist 2018-08-25 18:25:51 +02:00
raysan5
ba257bc447 Support autosave also on C compilation 2018-08-25 18:07:08 +02:00
raysan5
a2de3d99e0 Updated compilation script to save file automatically 2018-08-25 18:06:13 +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
Ray
fe2f8d77a9
Merge pull request #635 from a3f/master
core: Support slashes as well in GetFileName & GetDirectoryPath
2018-08-25 10:51:31 +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
Ray
4259ff78e1
Merge pull request #633 from unequaled86/patch-1
lerp for vector2 and float
2018-08-21 16:29:10 +02:00
Oğuzhan Çankaya
2bef76735d
lerp for vector2 and float 2018-08-21 04:14:43 +03:00
Ray
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
sunshinehunter
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
Ray
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
Justin Clift
699cadcf98 Add the remaining numeric keypad keys, and a few other missing ones 2018-08-19 18:00:16 +01:00
Ray
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
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