MrSwedish
23fabb1d67
Prevent INVALID_SOCKET to be defined twice on linux ( #1993 )
...
i got an error because of this lol
2021-09-17 01:05:38 +02:00
Neil Barkhina
e9d3d4fa1f
Implemented GetGamepadName() for emscripten ( #1986 )
...
* implemented GetGamepadName for emscripten
* updated gamepad to use existing name as arary
* removed unnecessary platform_web check
2021-09-12 18:02:54 +02:00
raysan5
72983d4e20
Typo
2021-09-10 19:01:24 +02:00
raysan5
b63c2619e3
Update Makefile for web compilation
...
Some flags are only for the linker, not the compiler
2021-09-10 19:01:09 +02:00
Ray
40ec7a6236
Update core.c
2021-09-10 17:23:48 +02:00
Ray
352ea80a1f
REVIEWED: Vox loader
2021-09-10 15:37:31 +02:00
procfxgen
a422d2fc8b
Vox loaded ( #1981 )
...
* new models_magicavoxel_loading example
* Portable header-only file "magicavoxel_loader.h" for MagicaVoxel loader example.
* models_magicavoxel_loading example added to CMakeLists.txt and Makefile
* fix models_magicavoxel_loading example for linux.
* * vox_loader into "src/external/vox_loader.h"
* vox file support for "models.c"
* updated example "models/models_magicavoxel_loading.c"
* * Fix Vox_FreeArrays (removed memory leak)
* * removed magicavoxel_loader.h
* * Revert vs2019 solution
* * vox_loader.h -> Support custom memory allocators
* vox_loader.h -> Reverse Y<>Z for left to right handed system
* models/models_magicavoxel_loading.c -> fix model center
* * vox_loader.h -> Removed Raylib dependencies
* * Changed Vox_LoadFileName to Vox_LoadFromMemory
2021-09-10 15:24:01 +02:00
Ray
803094f41f
REVIEWED: Touch input system #1975 #1960
...
- ADDED: `GetTouchPointCount()` to core module, removed from gestures module.
- Support multiple touch points: `MAX_TOUCH_POINTS`.
2021-09-10 15:19:12 +02:00
Ray
2c13e43c32
Review font loading log info
2021-09-10 15:16:34 +02:00
Nikolay Krasheninnikov
18d73eef19
Fixes target direction for first person camera mode. ( #1977 )
...
Co-authored-by: Nikolai Krasheninnikov <nikolai.krasheninnikov@kronshtadt.ru>
2021-09-10 11:51:59 +02:00
Tristan Schulz
7bf31dd468
Fixed loading obj models with no materials ( #1984 )
2021-09-09 18:14:15 +02:00
Steven Schveighoffer
1a6adc5f74
Fix dynamic library issues on Macos ( #1978 )
2021-09-06 23:17:12 +02:00
raysan5
b15715ca80
Merge branch 'master' of https://github.com/raysan5/raylib
2021-09-05 21:49:49 +02:00
raysan5
8d3ff3fda8
Updated Makefile for latest Android NDK r32 LTS
...
It seems now it's required to use archiver `llvm-ar`
2021-09-05 21:49:47 +02:00
Tristan Schulz
24a38dbd3f
[models] LoadGLTF fixed missing transformations and nonroot skinning problem ( #1964 )
...
* Fixed gltf missing transforms on load
mend
* extracted Matrix calculation in to static method and added skinning check
* fixed formatting
2021-09-05 21:15:40 +02:00
raysan5
4120f12375
REVIEWED: Vox loading, mostly formating
2021-09-05 20:39:34 +02:00
procfxgen
dfc465ca6d
new models_magicavoxel_loading example ( #1940 )
...
* new models_magicavoxel_loading example
* Portable header-only file "magicavoxel_loader.h" for MagicaVoxel loader example.
* models_magicavoxel_loading example added to CMakeLists.txt and Makefile
* fix models_magicavoxel_loading example for linux.
* * vox_loader into "src/external/vox_loader.h"
* vox file support for "models.c"
* updated example "models/models_magicavoxel_loading.c"
* * Fix Vox_FreeArrays (removed memory leak)
* * removed magicavoxel_loader.h
* * Revert vs2019 solution
2021-09-04 19:55:09 +02:00
raysan5
93168304cd
Update shell.html
2021-09-03 15:24:05 +02:00
Ray
9ff8ad853c
Update raygui.h
2021-09-02 00:39:47 +02:00
Ray
fa79ae8a3d
Merge branch 'master' of https://github.com/raysan5/raylib
2021-09-01 23:41:00 +02:00
Ray
9362eaf9c6
REVIEWED: Naming: length vs size
2021-09-01 23:40:51 +02:00
atticus
dfadb3ee37
fix various memory leaks ( #1969 )
2021-09-01 23:15:32 +02:00
Ray
6e76baa6a9
WARNING: BREAKING: RENAMED: Font struct variables
...
RENAMED: GetCodepointsCount() -> GetCodepointCount()
RENAMED: GetTouchPointsCount() -> GetTouchPointCount()
2021-09-01 23:11:31 +02:00
Ray
a0f8682905
REVIEWED: <name>Count for consistency
...
Following english rules, it should be singular name before Count.
2021-09-01 23:09:30 +02:00
Tristan Schulz
e8fa7ceb79
[models] Fixed counting loop for face amount per material ( #1967 )
2021-09-01 21:29:20 +02:00
raysan5
d98e61c6eb
Minor format tweaks
2021-08-28 12:01:16 +02:00
Ray
936199d8de
Review dates
2021-08-27 18:50:02 +02:00
Ray
18af18479f
REVIEWED: ExportWaveAsCode()
2021-08-27 18:49:03 +02:00
Ray
b7ae0df3d9
REVIEWED: Decouple DrawMesh() and DrawMeshInstanced() #1958
2021-08-27 12:13:44 +02:00
Richard Smith
cac856119c
Change GetColor to take unsigned int ( #1954 )
2021-08-26 17:31:01 +02:00
Ray
14e443afba
REVIEWED: OpenGL 1.1 compilation issue
2021-08-25 23:41:33 +02:00
Ray
7749a2805c
UPDATED: raygui to latest version -WIP-
...
Note this new raygui version embeds ricons and `GuiTextBoxMulti()` is not working properly
2021-08-25 00:51:37 +02:00
Laurentino Luna
6575d31379
Fix tcc not finding emmintrin.h ( #1947 )
...
* Fix tcc not finding emmintrin.h
This allows to compile raylib with tcc with no errors.
* Remove __TINYC__ check from stb_image.h
This will be placed under textures.c
* Move tcc check to textures.c
Avoiding to change stb_image.h
2021-08-24 16:34:52 +02:00
raysan5
7c1889c282
REVIEWED: Support mouse wheel on x-axis #1948
2021-08-24 15:26:59 +02:00
Ray
b154bc33f5
Added note on GLFW custom allocators for the future
2021-08-22 01:08:11 +02:00
Ray
d98779abef
Minor tweak to avoid false error logs
2021-08-22 01:07:37 +02:00
Ray
aefdb9f9cf
REMOVED: Old function names defines
...
As far as next raylib version will be 4.0, no backward compatibility hacks will be maintained.
2021-08-21 23:57:41 +02:00
Ray
ff523d55ac
Updated raygui #1939
2021-08-20 11:56:25 +02:00
atticus
6d20430ccc
add NULL check ( #1925 )
2021-08-20 11:47:51 +02:00
Ray
a5beb940f8
Remove trailing spaces
2021-08-16 23:23:16 +02:00
Ray
f3385b6ad2
Update rlgl.h
2021-08-16 19:52:57 +02:00
Ray
ef8526ae36
Update rlgl.h
2021-08-16 19:26:10 +02:00
Ray
92a13878dc
Add some comments
2021-08-16 19:23:06 +02:00
Ray
1b4c58b66f
WARNING: BREAKING: Use frameCount on audio
...
This is a big change for optimization and a more professional understanding of audio. Instead of dealing with samples, now we deal with frames, like miniaudio does, so, avoiding continuous conversions from samples to frames.
2021-08-16 11:06:31 +02:00
raysan5
462e7aec52
Updated RAYLIB_VERSION to 4.0-dev
...
Several breaking changes have been done lately so I think it's better to mark raylib for next release as 4.0.
2021-08-15 13:25:14 +02:00
raysan5
aae60e1e44
REVIEWED: extern "C" definition position for consistency
...
Note that `extern "C"` calling convention only affects objects that need to be seen by the linker, in our case only functions... but it would also be required by global variables exposed, if any.
2021-08-15 13:02:53 +02:00
raysan5
848cdb267a
Support C++ usage as standalone library
2021-08-15 12:58:34 +02:00
raysan5
760cfd361e
REVIEWED: PHYSACDEF definition and C++ issues #1918
2021-08-15 12:52:12 +02:00
630Studios
092435d51c
[Models] Fix for issue #1809 ( #1917 )
...
* GenMeshTangents Fix
* GenMeshTangents Fix - Comment Update
* GenMeshTangents Fix - Comment Update final
* Code Style Changes
* Code Style Changes Final
* Code Style Changes Final 2
* GenMeshTangents better handling for issue #1876
* GenMeshTangents better handling for issue #1876
* GenMeshTangents: Better fix for issue #1876
* vboId location fix
* rlUpdateVertexBuffer - bufferId is an unsigned int
* Fix for issue#1809 - Obj with more materials then mesh caused crash
* Fix for issue#1809 - Formatting Update
2021-08-12 21:01:40 +02:00
raysan5
1dff5814be
ADDED: rlUpdateVertexBufferElements() #1915
2021-08-12 21:01:09 +02:00
raysan5
26db391576
ADDED: rlActiveDrawBuffers() #1911
...
- ADDED: rlEnableColorBlend()/rlDisableColorBlend()
2021-08-12 20:38:57 +02:00
630Studios
ce3214b82d
[rlgl] rlUpdateVertexBuffer ( #1914 )
...
* GenMeshTangents Fix
* GenMeshTangents Fix - Comment Update
* GenMeshTangents Fix - Comment Update final
* Code Style Changes
* Code Style Changes Final
* Code Style Changes Final 2
* GenMeshTangents better handling for issue #1876
* GenMeshTangents better handling for issue #1876
* GenMeshTangents: Better fix for issue #1876
* vboId location fix
* rlUpdateVertexBuffer - bufferId is an unsigned int
2021-08-12 09:47:00 +02:00
raysan5
621a8766a8
WARNING: BREAKING: Renamed CharInfo to GlyphInfo and more...
...
This commit introduces some breaking changes for library consistency, hopefully not too dramatic... Here the full list:
- RENAMED: struct `CharInfo` to `GlyphInfo`, actually that's the correct naming for the data contained. It contains the character glyph metrics and the glyph image; in the past it also contained rectangle within the font atlas but that data has been moved to `Font` struct directly, so, `GlyphInfo` is a more correct name.
- RENAMED: `CodepointToUtf8()` to `CodepointToUTF8()`, capitalization of UTF-8 is the correct form, it would also require de hyphen but it can be omitted in this case.
- RENAMED: `TextToUtf8()` to `TextCodepointsToUTF8` for consistency and more detail on the functionality.
- ADDED: `GetGlyphInfo()` to get glyph info for a specific codepoint
- ADDED: `GetGlyphAtlasRec()` to get glyph rectangle within the generated font atlas
- Some additional tweaks for consistency
2021-08-11 21:16:39 +02:00
raysan5
b6541b7a55
REVIEWED: DrawTextPro()
...
WARNING: DrawTextPro() requires including `rlgl.h`, before it was only dependant on `textures` module.
2021-08-11 19:02:15 +02:00
raysan5
7e27c2ffa8
TODO: DrawTextPro() rotation not working?
2021-08-11 18:53:06 +02:00
raysan5
b55418effd
ADDED: DrawTextPro() with text rotation support
2021-08-11 18:31:56 +02:00
raysan5
5a259fa10f
WARNING: REMOVED: DrawTextRec() and DrawTextRecEx()
...
- DrawTextRec() and DrawTextRecEx() have been moved to example, those functions could be very specific depending on user needs so it's better to give the user the full source in case of special requirements instead of allowing a function with +10 input parameters.
2021-08-11 18:31:32 +02:00
Ryan Roden-Corrent
ef9fdd0fa5
Document Get{Key,Char}Pressed return value. ( #1909 )
...
I think it is useful to know what the empty behavior is in cases where
you are enumerating key presses (e.g. implementing "press any key to
continue").
2021-08-10 18:38:32 +02:00
raysan5
311fe8f35b
Replaced TABS by spaces
2021-08-08 21:09:11 +02:00
raysan5
a135d9c25d
REVIEWED: Avoid conflict with bool
2021-08-08 13:23:04 +02:00
raysan5
ee72497eef
REVIEWED: Some warnings...
2021-08-08 13:02:51 +02:00
raysan5
5e63cd3c97
ADDED: GenMeshCone() #1903
2021-08-08 11:29:24 +02:00
raysan5
aa67903f96
Improve rlgl description
2021-07-31 19:58:30 +02:00
raysan5
5b6d83b533
REVIEWED: rlgl defines for consistency
2021-07-31 19:46:44 +02:00
raysan5
3e75a2109d
REVIEWED: rlgl module header info
2021-07-31 19:08:13 +02:00
raysan5
559f1919c6
REVIEWED: Improved font loading info
2021-07-31 18:41:44 +02:00
raysan5
b805754aa1
REVIEWED: Avoid bool type collisions
2021-07-31 18:10:26 +02:00
raysan5
dffd1435e9
Revert "REVIEWED: Avoid UBSAN warnings #1891 "
...
This reverts commit a8e9e1387f .
2021-07-30 13:50:33 +02:00
raysan5
a8e9e1387f
REVIEWED: Avoid UBSAN warnings #1891
2021-07-30 13:47:21 +02:00
raysan5
1613057881
Update raudio.c
2021-07-30 13:45:01 +02:00
raysan5
b4fddf146b
REVIEWED: Added new mechanism to avoid data types collision between modules that share same data types and can be used in standalone mode
2021-07-30 13:44:52 +02:00
raysan5
aeb1a0da84
REVERTED: Removed the need for rlMatrix
...
Now rlgl uses the `Matrix` type, just make sure it has been previously defined somewhere... I don't like this approach but it's probably the easier one for the users... still looking for a better solution... maybe using something like
`#define MATRIX_TYPE`, so it can be checked in other modules.
2021-07-30 12:54:54 +02:00
raysan5
1cc25d1a2d
Review include path that was breaking the build
2021-07-30 12:14:31 +02:00
raysan5
bd70a22412
Review some issues
2021-07-30 11:56:14 +02:00
raysan5
8b7f43f89b
WARNING: BREAKING CHANGE: rlgl complete decoupling from raylib -WIP-
...
rlgl has been redesigned to avoid any dependency to `raylib` or `raymath`, all functions using some of those libs have been reviewed.
- REMOVED: `Texture2D`, `Shader` structs dependency
- REMOVED: `Vector3`, `Matrix` structs dependency
- REMOVED: raymath functions dependency, all required math is implemented in rlgl
- ADDED: `rlMatrix` custom rlgl type
- ADDED: `utils.c`: `rlMatrixFromMatrix()` and `rlMatrixToMatrix()` for a safe conversion between raylib<->rlgl matrix types
- ADDED: `rl` prefix to all `rlgl` structs
- Other small tweaks here and there
2021-07-29 21:57:50 +02:00
raysan5
58e9a0894f
Reviewed some functions to avoid calling other functions
2021-07-29 21:50:50 +02:00
iskolbin
6ef3ab3d3a
impoves raylib_parser: makes it generic, adds -d key for functions define (RLAPI for raylib.h), increases maxiumum number of fields in structs and values in enums, doubles max length of struct field names; split float3/float16 struct typedefs in raymath to allow parser to process the file ( #1901 )
2021-07-29 20:37:44 +02:00
raysan5
a9f6ff6fe3
Add external folder to build (just in case)
2021-07-29 20:32:30 +02:00
Kyle Appelgate
d8ca13f4c6
fixed DisableCursor() on web by registering an empty mouse click event function in emscripten ( #1900 )
2021-07-28 21:38:31 +02:00
raysan5
96aadec503
REVIEWED: Info on image loading failure
2021-07-28 19:47:53 +02:00
raysan5
69a82c7a0d
ADDED: raygui to extras libraries for convenience
2021-07-28 13:15:43 +02:00
raysan5
0c3902b543
ADDED: GetModelBoundingBox()
...
Reorganized models functionality, it still needs some review...
2021-07-28 13:15:10 +02:00
raysan5
7c7ee1cdc8
REVERTED: Mesh indices issue #1891
2021-07-28 13:12:16 +02:00
raysan5
0c17d1e14f
Minor formatting tweak
2021-07-28 12:58:43 +02:00
Jeffery Myers
c706b33b30
Don't normalize zero length vectors. ( #1896 )
2021-07-28 08:59:39 +02:00
raysan5
e9c7ab925f
REVIEWED: rlDrawVertexArrayElements() #1891
2021-07-27 23:35:54 +02:00
raysan5
70ed52dd5d
REVIEWED: QuaternionFromAxisAngle() #1892
2021-07-27 23:30:08 +02:00
Uneven Prankster
4e363b5479
Remove unused UWP defines ( #1894 )
...
* Unused UWP define removal
* Further removal of unusued UWP defines
2021-07-26 17:40:10 +02:00
Ray
00911b0842
Reviewed ImageDrawLine() formating
2021-07-23 23:32:20 +02:00
Alexander Buhl
ff2b8d6db1
Fixes #1873 Implemented remaining 7/8 of ImageDrawLine ( #1874 )
...
* Implemented remaining 7/8 of ImageDrawLine
The existing code was correct for one octant, it now works for all 8
Added two internal functions, _ImageDrawLineHorizontal and _ImageDrawLineVertical, whithout which it would've been 4 times as much code.
* ImageDrawLine: Replaced 3 functions with 1
Removed both freshly added internal functions
Crammed it all into one
* ImageDrawLine shortened significantly using maths
Substituted X and Y, then wrote one abstract loop instead of 4 specific loops.
Lots of comments to explain what I'm doing for future maintainers.
* Now conforms with style conventions
Also reworded a comment to sound more... fomal.
2021-07-23 23:17:04 +02:00
Ray
0fa295c72d
Review formating to follow raylib style conventions
2021-07-23 18:16:08 +02:00
Luiz Pestana
5c76c33d7d
Raspberry RPI/DRM keyboard fix ( #1879 )
...
Legacy keyboard support was blocking the render loop, also it was keeping the last key status until the next key.
2021-07-17 20:27:48 +02:00
630Studios
53bb87c8fb
[Models] Better Fix for GenMeshTangents issue #1876 ( #1878 )
...
* GenMeshTangents Fix
* GenMeshTangents Fix - Comment Update
* GenMeshTangents Fix - Comment Update final
* Code Style Changes
* Code Style Changes Final
* Code Style Changes Final 2
* GenMeshTangents better handling for issue #1876
* GenMeshTangents better handling for issue #1876
* GenMeshTangents: Better fix for issue #1876
* vboId location fix
2021-07-17 01:33:49 +02:00
630Studios
9aaf7a8057
GenMeshTangents Fix ( #1877 )
...
* GenMeshTangents Fix
* GenMeshTangents Fix - Comment Update
* GenMeshTangents Fix - Comment Update final
* Code Style Changes
* Code Style Changes Final
2021-07-16 22:14:13 +02:00
raysan5
c4804c4c0c
REVIEWED: Wrong normal matrix calculation #1870
2021-07-16 17:12:22 +02:00
raysan5
85dc2cc03a
Minor format tweaks
2021-07-16 16:10:53 +02:00
GoldenThumbs
59acb6dbea
Updated models.c ( #1871 )
...
- fixed issue where vertex positions being passed in place of vertex normals.
2021-07-13 12:18:52 +02:00
Humberto Yeverino Jr
8277597bcf
Fix Android multi-touch ( #1869 )
2021-07-13 12:17:47 +02:00
raysan5
ae230dae46
Update Makefile
2021-07-09 18:49:36 +02:00
raysan5
7062415aec
WARNING on emscripten_set_fullscreenchange_callback()
2021-07-09 18:49:29 +02:00
raysan5
5ed814e950
Minor tweaks and comments
2021-07-09 17:36:20 +02:00
Ray
3a74534c39
Added a note
2021-07-07 21:41:45 +02:00
raysan5
4d438ed68d
REVIEWED: RPI: Keyboard stdin input #1769
2021-07-06 18:25:00 +02:00
raysan5
bfff2c432c
Minor tweaks on DRM system
2021-07-06 17:16:50 +02:00
raysan5
9aedfbec69
Review formatting
2021-07-05 18:45:17 +02:00
raysan5
c0ca8a74bc
WARNING: BREAKING: REMOVED PLATFORM_UWP support
...
After lot of investigation, I'm afraid I'm removing official UWP support from raylib, I'll keep the current implementation in a separate branch (UWP), just in case. It seems Microsoft is trying to replace UWP in the long term, they announced lack of support for the new WinUI 3 and they seem to be moving to Windows App SDK.
Also, on current implementation, the code is divided between raylib and the example, requiring multiple callback hooks, making it difficult to follow and maintain.
And realistically speaking, raylib is probably not the best option for anyone willing to target UWP, neither Xbox consoles.
2021-07-05 12:34:23 +02:00
raysan5
d432d03aea
REVIEWED: Infinite loop on closing #1861
2021-07-04 20:29:20 +02:00
raysan5
c15d08d6ec
Review some comments
2021-07-03 21:48:35 +02:00
raysan5
f8753bda01
Update core.c
2021-07-03 21:31:52 +02:00
raysan5
652b17d68d
Review variables initialization
2021-07-03 21:25:30 +02:00
raysan5
efba81442a
Update link address for miniaudio
2021-07-03 21:25:05 +02:00
raysan5
f81dfce19f
Minor tweaks
2021-07-01 21:43:13 +02:00
raysan5
a6728a2203
REVIEWED: emscripten versions
2021-06-30 17:12:58 +02:00
raysan5
9e7ca41f58
Remove trailing spaces
2021-06-30 16:39:07 +02:00
masterex1000
ee24d17895
Fix DecompressData() pointer issue ( #1856 )
2021-06-29 23:06:09 +02:00
raysan5
da8d76d826
Review issue with pointer #1854
2021-06-29 11:26:34 +02:00
raysan5
6f30a19dd7
Update uwp_events.h
2021-06-28 14:23:55 +02:00
raysan5
2911cf2a48
Reviewed comments
2021-06-28 14:23:45 +02:00
Ray
e5cf3f9555
WARNING: BREAKING: Functions renamed for consistency
...
RENAMED: GetTextureData() -> LoadImageFromTexture()
RENAMED: GetScreenData() -> LoadImageFromScreen()
2021-06-28 09:39:31 +02:00
raysan5
5f03201616
Minor tweaks
2021-06-26 22:43:20 +02:00
raysan5
8eb7cf1fee
REVIEWED: Enum values descriptions
2021-06-26 22:13:45 +02:00
raysan5
2f75657350
WARNING: REMOVED: Some deprecated function names mapping
...
Some functions/values have been deprecated for long time but some mapping was kept for convenience. Some of those mappings have been removed...
2021-06-26 21:07:00 +02:00
Ray
00c8795385
Minor tweaks to follow code conventions
2021-06-26 13:45:39 +02:00
Ray
89708edf7f
REVIEWED: Latest PR to follow raylib code conventions
2021-06-26 13:45:15 +02:00
Hristo Stamenov
71700254b4
Major revamp gltf ( #1849 )
...
* Added my own model and license to Raylib exclusively created by me and provided for use in the examples (and other projects if anyone decides to)
* Use animation vertices on initial load if possible.
* Added girl model to model example
* Revamped GLTF model loading as it was wrong by default. Also updated some comments.
GLTF models were loaded only by mesh but they should be loaded recursively by hierarchical nodes because tehre are some static node transformations that are to be applied to the vertices. It also resulted in more meshes being included in some models.
It is the correct way of loading GLTF and what is suggested in the official examples.
Currenlty limiting to only one scene but more can be included later.
* Refactored the new names and structure of extracted functions.
* Safer and easier read value.
* Made reading easier for accessor->bufferView->buffer in GLTF.
Now there is no need to check for supported types or anything.
* Correct inclusion of limits.h in the cases of MSVC based compilers vs the world
* Removed weird example file
2021-06-26 13:22:00 +02:00
Ray
aa86e9d399
REVIEWED: Minor tweaks on log messages
2021-06-26 13:18:39 +02:00
Ray
4b6e6ce20e
REVIEWED: Improved log info on image/textures laoding
...
ADDED: rlGetPixelFormatName()
2021-06-26 13:07:14 +02:00
Ray
7cbfca8bd1
REVIEWED: Simplified code to avoid extra functions calls
2021-06-26 13:06:22 +02:00
Ray
e0720a0a55
WARNING: REVIEWED: Default shader uniform names
...
When a shader is loaded, by default, several locations are tried to be set automatically.
2021-06-25 13:35:43 +02:00
Ray
d4c03b47ec
REVIEWED: LoadShader() and default locations
...
Reviewed locations descriptions
2021-06-25 00:46:14 +02:00
Ruminant
f3eff740ce
fix to LoadShaderFromMemory ( #1851 )
...
- the shader.locs now match the LoadShader function
Without this change, the lighting sample looks incorrect when
using LoadShaderFromMemory
Co-authored-by: Ruminant <psp5150+git@gmail.com>
2021-06-24 18:48:48 +02:00
Ray
953882e86f
REVIEWED: CORE.Storage.basePath
...
Simplified some code
2021-06-24 18:13:25 +02:00
Ray
46ad7b87e8
Update text.c
2021-06-24 18:11:48 +02:00
Ray
4e9afac2a5
REVIEWED: WaitTime() #1841
...
Avoid global variables dependency, now the function is self-contained.
2021-06-24 11:01:44 +02:00
Nikhilesh S
f7a6b94f46
Allow SetWindowSize() on web ( #1847 )
2021-06-23 10:02:18 +02:00
Ray
3db26f82ea
WARNING: BREAKING: Functions renamed!
...
RENAMED: GetCodepoints() -> LoadCodepoints(), now codepoint array data is loaded dynamically instead of reusing a limited static buffer.
ADDED: UnloadCodepoints() to safely free loaded codepoints
RENAMED: GetNextCodepoint() -> GetCodepoint()
2021-06-23 09:58:49 +02:00
Ray
716e26aa37
Review BeginTextureMode() usage
...
Moved outside BeginDrawing()/EndDrawing() to illustrate drawing is happening to an external texture (not screen)
2021-06-23 01:25:09 +02:00
Ray
429c5a9a9a
Review and un-expose InitTimer()
...
Actually it's not required for SUPPORT_CUSTOM_FRAME_CONTROL
2021-06-22 20:26:59 +02:00
Ray
7f2a071c51
Formatting review
2021-06-22 20:14:44 +02:00
Sky
9095dd9e82
Add support for resizing Emscripten canvas ( #1840 )
2021-06-22 18:25:52 +02:00
Diesirae
30a0f6f292
Fix DrawTextRec ( #1843 )
...
* fix text wrapping
* fix indent
* fix indent
* fix indent
* fix DrawTextRec
2021-06-22 18:16:04 +02:00
Guillaume DEVOILLE
52f1c7df6d
Fix missing fclose in tinyobj loader ( #1842 )
...
Missing fclose in tinyobj loader.
2021-06-22 18:12:42 +02:00
Ray
115cc7dede
Review GetFPS()
2021-06-21 00:46:30 +02:00
Adrian Guerrero Vera
96d5dd24aa
core: added GetMouseDelta() ( #1832 )
...
* core: added `GetMouseDelta()`
Thanks to previousPosition added by raysan it is now possible to create the GetMouseDelta() function.
Returns a Vector2 with the difference between the current and previous position of the mouse in a frame.
Useful for creating camera scrolling, among others.
* Added changes noted by raysan
2021-06-21 00:11:27 +02:00
raysan5
28093c46a8
Disable SUPPORT_EVENTS_AUTOMATION by default
2021-06-19 19:54:36 +02:00
Ray
1dd9fbae94
Merge branch 'master' of https://github.com/raysan5/raylib
2021-06-17 18:18:26 +02:00
Ray
8be5ec2288
Avoid SUPPORT_MOUSE_CURSOR_POINT
2021-06-17 18:18:16 +02:00
Sirvoid
1a420b77e3
Fixed: Binding vertex position twice ( #1835 )
2021-06-17 15:42:37 +02:00
Ray
e07054d0d4
RENAMED: SwapBuffers() -> SwapScreenBuffer()
...
Avoid possible symbol collisions
2021-06-17 12:47:03 +02:00
Ray
b733e76c86
Update physac.h
2021-06-17 12:26:33 +02:00
Ray
19b71f5f13
WARNING: Exposed SUPPORT_CUSTOM_FRAME_CONTROL #1729
2021-06-17 12:17:50 +02:00
Ray
ab032919df
RENAMED: Wait() -> WaitTime()
2021-06-17 11:47:05 +02:00
Ray
68e408474d
Renamed SUPPORT_MOUSE_CURSOR_NATIVE -> SUPPORT_MOUSE_CURSOR_POINT
2021-06-17 11:17:39 +02:00
Ray
942657fc7c
Remove Color struct requirement
2021-06-17 00:28:51 +02:00
Ray
4decbb2586
RENAMED: MeshTangents() -> GenMeshTangents()
...
RENAMED: MeshBinormals() -> GenMeshBinormals()
2021-06-17 00:04:24 +02:00
Ray
f3d38018cd
Comment tweak
2021-06-17 00:03:24 +02:00
Ray
4b93feb172
Remove trail spaces
2021-06-13 17:08:30 +02:00
Ray
213c990eda
Reviewed issue
2021-06-13 12:08:32 +02:00
Ray
de7b8ad551
NEW CRAZY FEATURE: EVENTS AUTOMATION!
...
https://youtu.be/3dZenkpmRzM
2021-06-11 12:27:46 +02:00
Ray
0b8e0f05a7
Register mouse previous position
2021-06-10 18:03:25 +02:00
Ray
b188008a1c
Review code formatting
2021-06-10 18:00:44 +02:00
Ray
7bc2e922c9
Review some comments
2021-06-10 17:49:55 +02:00
Ray
b0dcdf688f
Reviewed functions description
...
Replaced: Returns -> Get
2021-06-10 17:43:58 +02:00
Ray
d3387c952a
Reviewed Input variables and comments
2021-06-10 17:11:31 +02:00
Ray
3643974949
Corrected bug on enum
2021-06-10 11:38:02 +02:00
Ray
8980bcfe4b
Added some enum comments
2021-06-10 11:31:34 +02:00
Ray
97b074ac26
Update GLFW to latest version #1817
2021-06-08 21:02:24 +02:00
Ray
76a907bb79
Remove tabs
2021-06-08 21:01:17 +02:00
raysan5
246798a0ba
Update Makefile
2021-06-05 20:15:03 +02:00
raysan5
e95d8bc655
Minor format tweaks
2021-06-05 12:33:05 +02:00
raysan5
6445200a93
Removed GetAudioStreamBufferSizeDefault()
2021-06-05 12:32:52 +02:00
Ray
e00d2439b9
WARNING: BREAKING: Consistency renamings
...
RENAMED: InitAudioStream() -> LoadAudioStream()
RENAMED: CloseAudioStream() -> UnloadAudioStream()
2021-06-03 23:36:47 +02:00
Ray
121c689b78
Review code formatting
2021-06-03 20:25:28 +02:00
Crydsch
edeaff4bd4
Better collisions ( #1803 )
...
* review collisions ray-box and ray-sphere
* Applied raysan's refactor
Improved GetRayCollisionBox
* Replace GetRayCollisionGround with GetCollisionQuad
* Update example core_3d_picking
* Update example models_loading
* Fixed issues after merge
* remove debug stuff
Co-authored-by: Cry dsch <chris.obo@gmx.net>
2021-06-03 20:15:27 +02:00
isaac553876299
d1ac38171c
Update raymath.h ( #1802 )
2021-06-01 17:00:40 +02:00
Marco G. Maia
1a7dace57e
Update docs for supported blend modes ( #1801 )
2021-06-01 15:00:19 +02:00
Ray
0870295a7c
RENAMED: enum Gestures -> Gesture
...
Consistency tweak
2021-05-31 20:40:27 +02:00
Ray
5e3cf28642
Update raudio.c
2021-05-31 19:32:48 +02:00
Ray
8f4261e9d4
Remove unused declarations
2021-05-31 12:58:49 +02:00
Ray
2760304d66
Update CMakeLists.txt
2021-05-31 12:27:26 +02:00
Ray
9bd3d78374
WARNING: Moved some **extra** raylib libraries to /extras/ directory
2021-05-31 11:43:56 +02:00
Ray
1c5de9721a
WARNING: BREAKING: RENAMED: RayHitInfo to RayCollision #1781
...
- RENAMED: RayHitInfo to RayCollision
- RENAMED/REDESIGNED: Multiple Ray collision functions to be more consistent and return RayCollision data -WIP-
2021-05-31 11:41:56 +02:00
Ray
7bcb2ad4f1
Update uwp_events.h
2021-05-31 11:39:20 +02:00
Ray
89e734de6b
Review config flags #1784
2021-05-30 22:31:14 +02:00
Julianiolo
cc4de1d1f9
note ( #1797 )
2021-05-30 18:33:38 +02:00
Ray
71995d52b3
REVIEWED: exit() on LOG_FATAL instead of LOG_ERROR #1796
2021-05-30 18:02:06 +02:00
Ray
0369ec9adf
Some code tweaks
2021-05-30 11:50:32 +02:00
Ray
c828e481fb
Review code format
2021-05-29 13:56:08 +02:00
Ray
e3ba11bead
Review some comments
2021-05-29 13:54:05 +02:00
Hristo Stamenov
beeac18eb1
Fix QuaternionToMatrix returning transposed result. ( #1793 )
2021-05-29 13:53:00 +02:00
Hristo Stamenov
470574517a
Implement vertex color attribute for GLTF and IQM ( #1790 )
...
Added a simple cube with vertex colors for testing both.
2021-05-26 20:23:13 +02:00
Ray
7959d95db0
Review raylib structs comments
2021-05-25 23:19:03 +02:00
Ray
9f45fea31e
Remove line break in DrawTextRecEx()
2021-05-25 11:59:34 +02:00
Ray
03710c9d8e
Some code tweaks for consistency
2021-05-22 16:54:04 +02:00
Ray
cb698dd37d
Update Makefile
2021-05-22 16:51:51 +02:00
Ray
5765b7895c
Minor comments tweaks
2021-05-22 14:35:10 +02:00
raysan5
60ca8acd0a
Update version to 3.8-dev to note breaking changes
...
Some breaking changes were introduced lately, it's better to note that current version is not 3.7 anymore...
2021-05-21 22:59:00 +02:00
Ray
4a099c3658
Review ExportImage() to use SaveFileData() #1779
2021-05-20 20:37:46 +02:00
Ray
23a08a483e
WARNING: RENAMED: IsMusicPlaying() -> IsMusicStreamPlaying()
2021-05-20 19:27:04 +02:00
Ray
f33cec64aa
Use output->boneCount instead of nodes_count
2021-05-20 19:25:09 +02:00
Ray
e401d5c48e
WARNING: RENAMED: MeshBoundingBox() -> GetMeshBoundingBox()
...
Renamed for consistency with other function in raylib.
2021-05-20 19:24:28 +02:00
Ray
9360e4e2c1
Comment minor tweak
2021-05-20 19:14:42 +02:00
Guillaume DEVOILLE
b90ac7bd31
Fixed over-allocation of buffer ( #1772 )
...
output->framePoses[frame] is over-allocated.
framePoses is a 2D array:
- first dimension: frames (allocated l. 4717)
- second dimension: nodes (allocated l. 4731)
Second dimension should be allocated of nodes_count transformations only.
2021-05-15 00:41:33 +02:00
Ray
232378ed2d
Merge branch 'master' of https://github.com/raysan5/raylib
2021-05-14 14:01:51 +02:00
Ray
3baba7ffe8
Review some VS warnings and messages
2021-05-14 14:01:42 +02:00
Guillaume DEVOILLE
45b0dc63cd
Fixed GLTF boneWeights uint32 loading ( #1768 )
...
boneWeights uint32 were loaded in normals instead of boneWeights.
2021-05-13 13:58:51 +02:00
Ray
6c56fe2670
Update shell.html
2021-05-12 19:51:29 +02:00
Ray
6bd63de8d0
Reviewed latest PR
...
REMOVED: DrawBillboardEx()
2021-05-11 01:02:53 +02:00
nobytesgiven
ac204a11f7
Redesigned billboards - added rotation/pro functions ( #1759 )
...
* Redesigned billboards - added rotation/pro functions
* updated parameters
Co-authored-by: nobytesgiven <nobytesigiven@github.com>
2021-05-11 00:55:43 +02:00
Lambert Wang
e39e45824d
Add RenderPolyLinesEx routine ( #1758 )
...
Co-authored-by: Lambert Wang <lambert.ww@gmail.com>
2021-05-10 20:08:58 +02:00
ProphesorIks
1d0767022d
~Updated project version ( #1761 )
...
Updated to fix versioning and linking issues.
Old version would cause examples to not be linked on fresh raylib install or linked with an old library version on updated raylib install.
2021-05-10 00:51:37 +02:00
Lambert Wang
2545f62565
Added support for additional mouse buttons ( #1753 )
...
* Added support for additional mouse buttons
* Renamed mouse button enum
Co-authored-by: Lambert Wang <lambert.ww@gmail.com>
2021-05-08 18:26:24 +02:00
Antonio Jose Ramos Marquez
2565c01158
check for vao extension ( #1757 )
2021-05-08 18:24:14 +02:00
Jeffery Myers
133e6f097d
Convert the half sleep to a sleep that is a fraction of the target FPS (Default 95%) to reduce CPU use. ( #1756 )
...
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-05-07 19:49:44 +02:00
Ray
b62c86572e
REVIEWED: raudio_standalone #1752
2021-05-07 15:38:13 +02:00
Astie Teddy
c82d9cb89a
Unset CORE.Window.ready on CloseWindow ( #1749 )
...
Window shouldn't be considered ready when CloseWindow has been called.
2021-05-05 19:08:15 +02:00
Ray
a41ed986bd
Expose RAYLIB_VERSION in raylib.h #1747
2021-05-04 11:20:47 +02:00
Ray
e5708a8f36
Comment tweak
2021-05-03 19:05:53 +02:00
Ray
2015828fc6
Security check in case of not valid font
2021-05-03 19:05:43 +02:00
Ray
a3e7664dcf
Fixed bug that overrides other flags
...
This issue prevented enabling MSAA on several platforms
2021-04-29 00:07:28 +02:00
Ray
ffadeeeb84
Decoupling rlgl from platform layer
...
Now rlgl only depends on OpenGL and it's completely decoupled from platform layer libraries (EGL)
2021-04-28 23:57:46 +02:00
Ray
f516f4099b
Corrected issue #1742
2021-04-28 19:27:50 +02:00
Ray
a113d3326b
Disable raylib code
2021-04-27 23:12:04 +02:00
Rabia Alhaffar
399894ac90
Fixed definition of UNCOMPRESSED_R8G8B8A8 ( #1740 )
2021-04-27 20:17:47 +02:00
Ray
6ebe76cba7
Minor tweaks
2021-04-27 11:05:05 +02:00
Ray
1aa8a4ff90
REVIEWED: rlLoadExtensions()
...
On PLATFORM_ANDROID, PLATFORM_RPI, PLATFORM_DRM and PLATFORM_UWP glfwGetProcAddress() is not defines, actually those platforms use egl platform windowing system.
2021-04-27 11:04:48 +02:00
Ray
bb33033389
Merge branch 'master' of https://github.com/raysan5/raylib
2021-04-26 00:36:22 +02:00
Ray
a44815e939
REMOVED: GenMeshDefault()
2021-04-26 00:36:13 +02:00
raysan5
0e2845ec26
Review OpenGL 1.1 building #1732
...
It works compiling with MinGW
2021-04-25 13:32:24 +02:00
Ray
7ad17386f6
Update raylib.h
2021-04-23 17:24:25 +02:00
Ray
03815ec4fe
RPI4: Improve DRM card check #1723
2021-04-22 21:01:48 +02:00
Ray
dcf52c132f
Remove trail spaces
2021-04-22 18:55:24 +02:00
Ray
ac79d22a9b
Reviewed file comments
2021-04-21 00:41:55 +02:00
Ray
1e65817d05
Update models.c
2021-04-20 12:19:04 +02:00
Ray
bb743e8c6e
ADDED: UpdateMeshBuffer()
2021-04-20 12:16:16 +02:00
Ray
63a1bf373c
Merge branch 'master' of https://github.com/raysan5/raylib
2021-04-19 19:41:41 +02:00
Ray
899afcbdca
Minor tweaks
2021-04-19 19:41:32 +02:00
nathants
1c45a882f7
use bone weights for animation ( #1728 )
2021-04-19 18:26:40 +02:00
Ray
581bd0eb02
Remove trailing spaces
2021-04-18 23:50:32 +02:00
Ray
223091f44c
Review extensions issue on macOS
2021-04-18 20:33:49 +02:00
Ray
d4ccca81db
WARNING: REDESIGNED: rlLoadExtensions() #1295
...
Added config flag: SUPPORT_GL_DETAILS_INFO
2021-04-18 20:24:19 +02:00
Ray
640fc4d0a0
Minor tweaks
2021-04-16 21:19:28 +02:00
Ray
45823a36eb
Added some OpenGL extensions comments
2021-04-14 21:07:04 +02:00
Ray
37f523fdeb
Update external libraries
2021-04-14 21:06:00 +02:00
Ray
d289085ce3
Reviewed DrawLine3D() limits #1721
2021-04-13 01:08:39 +02:00
Ray
06f16f199a
REVIEWED: DrawLine3D() #1721
...
Increased batch limit check to compensate internal buffers alignment for lines drawing
2021-04-13 00:05:21 +02:00
Ray
afb254b985
Update rlgl.h
2021-04-11 00:58:04 +02:00
Ray
d2cb628a66
Some defines simplification
2021-04-11 00:55:45 +02:00
Jon
c74230a9ea
Enable DRM platform cross compilation support ( #1717 )
...
* Log a warning if chdir failed, use agnostic CHDIR instead of chdir
* Only include libdrm directory explicitly when not cross compiling
2021-04-09 19:57:14 +02:00
Jeffery Myers
f6f9a3d925
use xm streams in the same sample sample size as the output device ( #1716 )
2021-04-09 11:00:21 +02:00