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
Chris
3cdac3e11e
Fix off by one bug with GetGamepadAxisCount on PLATFORM_DESKTOP ( #1715 )
...
- Found testing core_input_gamepad. The last axis was not drawn.
- GLFW_GAMEPAD_AXIS_LAST is defined to the last axis which is 5
not the total number which is 6.
2021-04-09 00:55:47 +02:00
Ray
8a8948780e
REVIEWED: GetKeyPressed() #1712
2021-04-09 00:21:56 +02:00
Ray
49e17044c9
Update resource files
2021-04-09 00:20:43 +02:00
Ray
6719c3a1cd
REVIEWED: OpenGL 2.1 compilation
2021-04-07 09:39:41 +02:00
Ergoold
85ef9d8f2e
Fix ImageClearBackground ( #1711 )
...
- Dividing by height instead of width results in missing parts of the image.
2021-04-07 00:02:37 +02:00
Ray
b3f75b91ff
REDESIGNED: Vr stereo mode
2021-04-06 23:23:03 +02:00
Ray
84d0d21f23
Reviewed Vr stereo
2021-04-06 23:06:03 +02:00
Ray
71b86bf4d0
REDESIGNED: Vr stereo rendering
2021-04-06 22:49:41 +02:00
Saikyun
fd663024ea
added import in order for alloca to work on macos ( #1710 )
2021-04-06 21:42:00 +02:00
Ray
6d3c66a179
Merge branch 'master' of https://github.com/raysan5/raylib
2021-04-06 21:40:05 +02:00
Ray
68124599e1
Corrected issue on RPI
2021-04-06 21:39:54 +02:00
frithrah
b2545e053a
Minimum number of segments in circle sector functions changed from hard-coded to based on degree range. ( #1707 )
...
Co-authored-by: Simon <simon@frithrah.com>
2021-04-06 14:29:58 +02:00
Ray
109d00cb14
Reorganized shaders functions
2021-04-06 13:10:12 +02:00
Ray
551944e15b
Minor comment tweaks
2021-04-06 13:04:15 +02:00
Ray
0a34a35403
Update miniaudio.h
2021-04-06 11:57:51 +02:00
Ray
802ca161d3
REVIEWED: Some rlgl cleaning on unused types
2021-04-06 00:43:38 +02:00
raysan5
a8dd4127f3
Added security check to avoid internal render batch overflow
2021-04-05 13:59:52 +02:00
raysan5
0e04ae561e
Merge branch 'master' of https://github.com/raysan5/raylib
2021-04-05 13:48:03 +02:00
raysan5
7b37caa96c
REVIEWED: Model scale #1700
2021-04-05 13:47:52 +02:00
m4ntr0n1c
abf481023b
Update to the xm player routine and support functionalities ( #1701 )
...
* Update jar_xm.h
Major bug fixes and refactoring
* Update jar_xm.h
update to version 0.31
2021-04-05 13:46:09 +02:00
raysan5
c2c141f941
Update version to raylib 3.7
2021-04-05 13:36:23 +02:00
raysan5
b52cd8f605
Reorganized functions by module
2021-04-05 13:35:59 +02:00
raysan5
5fd441969d
REVIEWED: rlLoadShaderDefault()
...
Operate over global variable
2021-04-05 13:35:42 +02:00
raysan5
14aa29d18b
Update rlgl.h
2021-04-04 15:10:39 +02:00
raysan5
4c9d2e719e
Merge branch 'master' of https://github.com/raysan5/raylib
2021-04-04 14:59:29 +02:00
raysan5
66f3434571
REDESIGNED: Shapes texture/rec moved to shapes module
2021-04-04 14:59:17 +02:00
Rob Loach
d58b7b509e
Make SaveFile* callbacks return a boolean ( #1697 )
2021-04-03 08:56:42 +02:00
raysan5
c21baf0d92
ADDED: GenMeshDefault() #1556
2021-04-02 15:56:35 +02:00
raysan5
ccdf7ff335
REDESIGN: Move GenTexture*() functions to PBR example #721
...
Removed functions from rlgl module.
2021-04-02 14:29:33 +02:00
raysan5
67dda62867
REVIEWED: GenTexture*() functions #721
...
Avoid RLGL data dependency to allow moving the functions somewhere else
2021-04-02 14:01:30 +02:00
raysan5
7e2531fe35
REVIEWED: ToggleFullscreen() on web #1241
...
After some investigation, I came to the conclusion it's impossible to get a solution that works for all situations. Fullscreen mode on web depends on the browser, the canvas and also the desired scaling strategy of the user. Just choose a solution that fits me needs for now and let the user manage the canvas on their webs (hopefully not requiring ToggleFullscreen() call).
Also removed several useless related callbacks.
2021-04-02 13:46:56 +02:00
raysan5
38df0760cc
Review compress/decompress logs
2021-04-02 13:43:10 +02:00
raysan5
d64f27bad1
Remove old flag
2021-04-02 13:42:07 +02:00
raysan5
2b6e7c8632
Update Makefile
2021-04-02 13:41:54 +02:00
raysan5
b54d96205f
Review libc dependency
2021-04-01 21:22:18 +02:00
raysan5
aed0fee2ca
Remove trailing spaces
2021-04-01 20:24:33 +02:00
raysan5
b4975619ed
Review comments
2021-04-01 20:23:05 +02:00
raysan5
cdc3754449
ADDED: Support model normal matrix location #1691
2021-03-31 20:44:16 +02:00
raysan5
2488d361b6
Review formatting
2021-03-31 20:15:04 +02:00
raysan5
c772de702b
REVIEWED: DrawMeshInstanced() matrix computations
...
Simplified some parts and reviewed for a correct computation of matrices, considering stereo render view/projection per eye transformations
2021-03-31 19:59:23 +02:00
raysan5
434a3a276d
REVIEWED: Define instancing API entry points for RPI
2021-03-31 18:41:03 +02:00
raysan5
8e51e6d1df
REVIEWED: CheckCollisionPointLine()
...
Use fabsf() instead of abs()
2021-03-31 18:40:33 +02:00
raysan5
fd3e2fda00
RENAMED: example: shaders_mesh_instancing
...
shaders_rlgl_mesh_instanced -> shaders_mesh_instancing
2021-03-31 18:40:04 +02:00
raysan5
8f1d81df0f
Review code formatting
2021-03-31 17:55:46 +02:00
mkupiec1
3d1a05d588
[shapes] CheckCollisionPointTriangle (fix), CheckCollisionPointLine (new routine) ( #1695 )
...
* CheckCollisionPointTriangle
* New feature proposal to existing collision detection routines.
It checks if point [point] belongs to line created between two points [p1] and [p2] with defined margin in pixels[threshold].
1693
2021-03-31 16:50:05 +02:00
raysan5
98a2e16d4d
REVIEWED: RPI instancing checks #1679
2021-03-31 16:44:14 +02:00
raysan5
b5aaf33058
Review matrix multiplication
2021-03-28 22:04:04 +02:00
raysan5
aaf0d8b839
REVIEWED: rlgl: Stereo render is working again
...
As a bonus, stereo render is compatible with mesh instancing now!
2021-03-28 21:35:58 +02:00
raysan5
6a24dd8945
REVIEWED: tinyobjloader #1568
2021-03-28 20:51:29 +02:00
raysan5
23a764190e
ADDED: LoadShaderFromMemory() #1690
2021-03-28 20:12:48 +02:00
raysan5
bc6b16beb2
REVIEWED: DrawTexturePoly()
2021-03-28 20:07:59 +02:00
Carlos Hernandez Barbera
7eaeffc8d9
GetCollisionRayMesh makes use of triangle count ( #1688 )
...
Co-authored-by: Carlos Hernandez Barbera <carloshdezbarbera@gmail.com>
2021-03-27 18:24:39 +01:00
Maksymilian Mika
f38ced15e7
Fixing pointer arithmetic to avoid error [-Werror=pointer-arith] ( #1685 )
2021-03-27 07:54:44 +01:00
Dan Bechard
b6ca524bdd
Preserve floating point values in DrawRectangleLinesEx ( #1683 )
2021-03-26 20:15:19 +01:00
Ray
f9bab14fdb
REVIEWED: DrawMeshInstanced()
2021-03-26 00:12:29 +01:00
Ray
fb9a437f8a
REVIEWED: OpenGL 1.1 working again
2021-03-25 20:35:48 +01:00
Ray
cba412cc31
WARNING: BREAKING: rlgl redesign -WIP-
...
rlgl module has been completely redesigned to move Mesh/Material structures to [models] module. Still some work to do, broken elements:
- [models] OpenGL 1.1 mesh rendering: DrawMesh()
- [models] Mesh Instancing: DrawMeshInstanced()
- [models] Stereo rendering: DrawMesh()
- [models] GL_FLOAT, GL_UNSIGNED_INT exposed
- [models] GenMeshCustom()
- [rlgl] GenTexture*() functions removal?
2021-03-25 14:28:12 +01:00
chriscamacho
9569d6a802
Add DrawTexturedPoly and example ( #1677 )
...
* adds DrawTexturedPoly with example
* the actual example ... ahem
* moved DrawTexturePoly to textures function and example
NB function name changed to fit with other DrawTextureXXX functions
(no "d" )
Co-authored-by: codifies <you@example.com>
2021-03-25 14:22:10 +01:00
Jeffery Myers
13f97471a2
Change the color of the FPS display if the FPS is low (orange for <30, red for < 15). ( #1676 )
...
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-03-24 17:59:05 +01:00
Ray
bb73a8089a
Reviewed DrawFPS() comment
2021-03-24 17:06:32 +01:00
Ray
9bea64b5e4
REMOVED: DrawGizmo()
...
This is a very simple and specific implementation that should be better addressed by the users
2021-03-24 17:02:40 +01:00
Ray
9047025ab7
Update textures.c
2021-03-24 00:41:01 +01:00
Ray
c2bc3d22a1
REVIEWED: DrawRectangleRounded() performance #1523
...
Function analyzed using RenderDoc. It's a complex function and could require many triangles for the corners but it seems overall it's quite optimized!
2021-03-24 00:25:53 +01:00
Victor
c5b0a1f005
Fix activeTextureId to have MAX_BATCH_ACTIVE_TEXTURES elements instead of the hardcoded 4 ( #1674 )
2021-03-23 20:17:23 +01:00
Chris
2532c396ed
Fix 90 degree bug with DrawTexturePro and DrawRectanglePro ( #1673 )
...
- The vertices did not map to where I expected causing rotation to be
off by 90 degrees. I reorganized the vertices making it easier to
reason about which fixes this.
- The order for drawing is now topLeft, bottomLeft, bottomRight,
topRight.
2021-03-23 14:40:26 +01:00
Ray
3e6ee028e5
Update rlgl.h
2021-03-23 12:15:52 +01:00
Ray
6f5a4a9351
REVIEWED: rlgl_standalone usage
2021-03-23 11:51:09 +01:00
Dan Bechard
5325d8d2ba
Don't call sqrtf when axis already normalized ( #1672 )
2021-03-23 11:32:25 +01:00
Davidson Francis
81738bfa98
Fix PATH for other PLATFORM_OS's ( #1671 )
...
The Raylib root Makefile for PLATFORM=PLATFORM_WEB is assumed to
run in Windows environments, which makes it incorrectly set the
PATH variable, so Linux (and possibly other) environments are not
able to find binaries from EMSDK_PATH.
Fix this by checking which PLATFORM_OS and configure PATH
accordingly.
2021-03-23 07:53:25 +01:00
Jeffery Myers
c6dd41495b
typecast warning fixes. ( #1667 )
...
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-03-22 20:45:46 +01:00
Ray
2ce28f75ad
WARNING: BREAKING: REDESIGNED: rlgl module
...
- Many functions renamed to follow rl*() convention
- Some internal functions exposed in the API
- Some functionality moved to other modules
- Reorganized all functions by categories
- Make sure it keeps working with OpenGL 1.1 and 2.1
2021-03-22 20:45:04 +01:00
Ray
24dae29a03
Review latest PR and some formatting
2021-03-22 20:41:33 +01:00
Jeffery Myers
2c0a533948
[AUDIO] Music Looping enhancements ( #1665 )
...
* Add loop functions for music files.
Tell xm tracker to loop tracker when loop state changes.
Don't let looped xm tracker streams restart, they are infinite
Use modulo to make time tracker for xm looped streams work correctly.
* Remove loop functions, set XM loop in update based on flag.
Formatting cleanups.
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-03-22 20:36:13 +01:00
Jeffery Myers
b573ff3e7a
[AUDIO] Use device native sample rates ( #1660 )
...
* Init MinAudio to a sample rate of 0 to let the device pick the rate.
Read the rate from the device after it starts up.
Convert AUDIO_DEVICE_SAMPLE_RATE from a #def into an int, that is set from the device's rate
Set all sample systems to use the AUDIO_DEVICE_SAMPLE_RATE as the target rate to minimize resampling.
* use device sample rate instead of separate var
let config define a device sample rate if it wants to, but let the default be 0 for native rate.
* Don't use fixed sample rates for tracker files.
Remove config default audio buffer size and replace with a function that computes one for a reasonable frame rate at the output sample rate.
2021-03-21 22:07:55 +01:00
Ray
c37f61d31f
REVIEWED: rlgl module #1523
2021-03-21 20:31:35 +01:00
Ray
2f943aaff0
Reverting align change #1658
2021-03-21 18:32:05 +01:00
Ray
ed4ca6a7f3
WARNING: BREAKING: rlgl module redesign -WIP-
...
- Some rlgl functions have been moved to core
- Some functions have been made internal to rlgl
- rlgl functions prefixed with rl*()
2021-03-21 01:29:31 +01:00
Ray
f4f6f665f7
Fixed possible issue with memory alignment #1658
2021-03-20 21:02:20 +01:00
Ray
dcde99bbb8
Corrected issue with HighDPI on macOS
2021-03-20 20:58:24 +01:00
Ray
95f9a6171b
Review HighDPI macOS support #1510
2021-03-20 20:06:38 +01:00
Sean Heber
f4d6bad607
Considering the window's scale when setting the viewport. ( #1659 )
...
This appears to fix the issue with macOS windows opening with the wrong scale.
2021-03-20 19:57:29 +01:00
Ray
a76fcaba3e
BIG CHANGE: REDESIGNED: Vr device simulator #1582
...
Vr simulator has been moved to core module and completely redesigned. Now user is in charge of stereo-render fbo and also in full control of distortion shader. Code is a bit more complex but better aligned with other raylib examples.
2021-03-20 18:36:25 +01:00
Ray
5049137715
Added KEY_NULL #520
2021-03-20 13:08:13 +01:00
Ray
4fb6f4af75
Merge branch 'master' of https://github.com/raysan5/raylib
2021-03-20 13:02:53 +01:00
Ray
95282edaf9
REVIEWED: HighDPI support on macOS retina #1510
2021-03-20 13:02:44 +01:00
Rabia Alhaffar
96e5e0dfb2
Fixed funny typo mistake... ( #1657 )
2021-03-20 01:18:44 +01:00
Ray
442abaab72
Updated example assets
2021-03-19 22:39:39 +01:00
Ray
5967c1ba1a
REVIEWED: BeginMode3D()
2021-03-19 21:55:47 +01:00
Ray
9909068714
Removed trailing spaces
2021-03-19 19:43:44 +01:00
Ray
e28f754fbe
Reviewed latest PR: formatting and some comments
2021-03-19 19:42:36 +01:00
Chris
45670fbf2d
Optimize DrawTexturePro and DrawRectanglePro transformations ( #1632 )
...
* Optimize DrawTexturePro and DrawRectanglePro transformations
- Add check so rotation is only applied if rotation != 0.0f.
- Replace matrix usage by calculating the vertex data directly.
* Fix error with windows build and trim whitespace
2021-03-19 19:19:10 +01:00
frithrah
2f367a905e
Changed DrawRing and DrawCircleSector angle params from int to float to allow greater accuracy. ( #1656 )
...
Co-authored-by: Simon <simon@frithrah.com>
2021-03-19 19:13:55 +01:00
Ray
fe9181c1b4
REVIEWED: QuaternionFromEuler() #1651
2021-03-19 18:24:12 +01:00
Ray
3e25760950
REMOVED: GetMouseCursor()
...
This function could be confusing depending on the context, it's better to let the user track the current active cursor
2021-03-19 18:20:14 +01:00
Ray
8527dbc6e2
WARNING: REMOVED: GamepadNumber enum
2021-03-19 18:16:05 +01:00
Ray
07d82a91c5
WARNING: BREAKING: RENAMED: camera.type to camera.projection
2021-03-19 13:56:46 +01:00
Ray
d4e2c331b1
REVIEWED: BeginMode3D()
...
Simplified some code
2021-03-19 13:20:23 +01:00
Ray
a1d9987e7c
WARNING: BREAKING: REVIEWED some enums naming
...
Now enum names are more consistent between them.
2021-03-19 13:19:54 +01:00
Ray
664fbb87f5
REVIEWED: Material params #1649
...
Just assigned a fixed memory size for custom Material parameters in case of being required, so we shouldn't worry about allocating/freeing them.
2021-03-18 13:57:53 +01:00
Ray
ca1f2f9078
REVIEWED: MatrixRotateZYX() #1642
2021-03-18 13:47:18 +01:00
Ray
8b0574a217
REVIEWED: DrawLine3D() #1643
2021-03-18 13:41:58 +01:00
Ray
2b9d81c9bc
REVIEWED: QuaternionFromEuler() #1651
2021-03-18 13:38:56 +01:00
Ray
1cc838cef4
Update textures.c
2021-03-17 19:37:03 +01:00
Ray
aba69146f2
Support instancing in OpenGL ES 2.0 if available
...
Checking for extension and enabling it if available
2021-03-17 13:56:00 +01:00
Ray
3c76b5cc8e
Update to latest emscripten
2021-03-17 13:53:31 +01:00
Hristo Stamenov
bc9194690c
Implement UnloadModelAnimations ( #1648 )
2021-03-14 19:30:18 +01:00
Ray
f7e48c95cd
Added some comments on libc dependencies
2021-03-14 14:14:51 +01:00
Ray
1afd56dbf6
Use UnloadFileData()
2021-03-14 14:14:31 +01:00
Hristo Stamenov
f9b79403d1
Improve gltf support ( #1647 )
...
* Implement a load values from accessor function.
Added some more value types for the different GLTF attributes.
Fixed crash when loading animated triangle.
* Split GLTF model loading into separate functions for readability.
* Fixed the already working models that I broke when introducing GLTFReadValue.
Improved the example for gltf models to be able to switch between a few models.
* Removed license from screen. It is pu inside a license file anyway.
* Small improvements on the naming of functions
Removed (*model). and replaced it with model->
2021-03-14 12:09:31 +01:00
Ray
01e28263be
WARNING: VERY BREAKING CHANGE: Renamed some enum values for consistency
...
Some enums values have been renamed to be more consistent and also provide a more detailed description:
- ShaderLocationIndex: LOC_VERTEX_POSITION -> SHADER_SHADER_LOC_VERTEX_POSITION
- ShaderUniformDataType: UNIFORM_VEC2 -> SHADER_UNIFORM_VEC2
- MaterialMapType: MAP_ALBEDO -> MATERIAL_MAP_ALBEDO
- PixelFormat: UNCOMPRESSED_GRAYSCALE -> PIXELFORMAT_UNCOMPRESSED_GRAYSCALE
2021-03-14 11:05:51 +01:00
Ray
fe3256be9f
Renamed some functions to use latest raylib version
2021-03-12 18:00:36 +01:00