raysan5
7d25480723
REVIEWED: DrawTextureTiled() #2173
2021-12-07 19:06:18 +01:00
raysan5
81240fe960
REVIEWED: vox_loader.h, 64bit issue #2186
2021-12-07 19:00:58 +01:00
Jaedeok Kim
72f3b00b00
Fix Vector2Angle() not working as expected ( #2196 )
2021-12-07 10:45:36 +01:00
Ray
ef6959ed54
ADDED: raylibVersion symbol #2190
2021-12-06 19:53:09 +01:00
Ray
e7f48eb16b
Tweaks
2021-12-06 19:08:06 +01:00
HarriP
3cb4ef2599
Fix inverse length in Vector2Normalize ( #2189 )
...
Following the pattern in Vector3Normalize.
2021-12-06 19:07:05 +01:00
Steven Schveighoffer
fa7337e19c
Vector2Angle returns degrees instead of radians, but all other raymath ( #2193 )
...
functions use radians, making this awkward to use.
2021-12-06 19:05:28 +01:00
Ray
c5eaaed873
Update Makefile
2021-12-06 12:09:44 +01:00
Ray
c4a62ca1e4
ADDED: Modules info at initialization
2021-12-06 12:02:57 +01:00
Ray
e637ad9d2a
Support custom modules inclusion
...
Allow to choose which modules are compiled with raylib, if some modules are excluded from compilation, required functionality is not available but smaller builds are possible.
2021-12-04 19:56:02 +01:00
Ray
930941e85e
Added a couple of notes
2021-12-03 00:30:27 +01:00
raysan5
ba8c73a327
Added some reference code to load bones id and weight data for animations
2021-12-02 20:48:12 +01:00
raysan5
59c4facd90
Disabled QOI image format
2021-12-01 20:56:39 +01:00
Ray
d1b8d4f2c7
REVIEWED: Updated QOI to first official release
2021-11-28 01:22:56 +01:00
Anders Holmberg
71f2e2b1e4
Add macos support to zig build system ( #2175 )
2021-11-27 10:46:18 +01:00
Ray
2b2141902b
ADDED: Support for QOI image format
2021-11-27 10:35:00 +01:00
Ray
9088135b49
REVIEWED: Formating and comments
2021-11-25 01:07:54 +01:00
Arnaud Valensi
b248a00c90
Fix scissor on macos ( #2170 )
...
* Expose GetRenderWidth and GetRenderHeight functions
* Fix scissor on macos
* Fix typo
2021-11-25 01:03:20 +01:00
Novaleaf
c5fc7c7640
allow physac to be built as a shared library ( #2168 )
...
if `BUILD_LIBTYPE_SHARED` is defined allow build as a shared dll
2021-11-23 22:21:01 +01:00
めぐみ発動機 (isVowel / GreenWing)
924b1c7b0c
fixed typo: aproximation to approximation ( #2164 )
2021-11-21 18:06:52 +01:00
めぐみ発動機 (isVowel / GreenWing)
478b70e53e
fixed typo: aproximation to approximation ( #2163 )
2021-11-21 18:06:20 +01:00
raysan5
7755cd0019
Tweak to minimize buffer overflow possibility
2021-11-18 10:25:28 +01:00
WilledgeR
e24443bbbc
Fixes CC while compiling for ANDROID_ARCH x86 ( #2148 )
...
* Override CC while compiling for ANDROID_ARCH x86
* REfix Override CC while compiling
2021-11-17 20:45:07 +01:00
raysan5
03f55d8f9e
Minor tweaks
2021-11-17 13:36:28 +01:00
Ray
be371ebf99
REVIEWED: LoadTextureFromImage()
...
Allow texture loading with no data transfer (in case image.data = NULL)
2021-11-15 11:41:05 +01:00
Ray
b7bf220598
REVIEWED: rlUpdateTexture()
2021-11-15 10:25:24 +01:00
Ray
5a6aa52a7c
REVIEWED: ExportMesh() #2138
2021-11-15 10:14:00 +01:00
Ray
2c38dad214
Merge branch 'master' of https://github.com/raysan5/raylib
2021-11-11 18:26:28 +01:00
Ray
c8f029dba9
Expose MAX_KEYBOARD_KEYS and MAX_MOUSE_BUTTONS #2127
2021-11-11 18:26:25 +01:00
lib-omar
91135c8799
Fixed file/alloc limitation in GetDirectoryFiles() ( #2126 )
...
MAX_DIRECTORY_FILES macro removed.
ClearDirectoryFiles() tweaked to reflect changes.
2021-11-10 19:52:30 +01:00
Ray
da7e0ba9d9
ouch
2021-11-10 13:37:50 +01:00
Ray
c82390e3f1
Reviewed descriptions and notes
2021-11-10 13:31:42 +01:00
Ray
4853082a4f
REVIEWED: DrawRectanglePro(), support TRIANGLES drawing
2021-11-10 13:28:43 +01:00
Ray
f6180efd35
REVIEWED: CheckCollision*() consistency
2021-11-10 13:28:05 +01:00
Ray
7158c80448
tweak
2021-11-10 13:26:50 +01:00
Uneven Prankster
35cbacc68b
Allow GL4.3 capabilities to be shown ( #2124 )
...
Now that 4.3 was added this can be enabled with the compile flag.
2021-11-09 15:24:39 +01:00
Ray
14e4992d73
REVIEWED: rlGetCompressedFormatName()
2021-11-09 11:53:18 +01:00
Ray
21ec8c38ae
Review variables initialization
...
- All variables are initialized on declaration, some arrays were not properly initialized
- Static array buffers require memset() for re-initialization on every function call
2021-11-09 11:49:03 +01:00
Luke Krasnoff
8ec5b2dc2f
Protect TextIsEqual from NULLs ( #2121 )
2021-11-09 11:37:55 +01:00
KonPet
34f9f51835
Fix Render Batch Limit not being checked in DrawRectangleGradientEx() ( #2111 )
2021-11-07 11:50:15 +01:00
raysan5
7f4ae653f3
Review display output order
2021-11-03 13:24:56 +01:00
raysan5
703df42586
Avoid duplicate output info on PLATFORM_RPI
2021-11-03 12:55:46 +01:00
Ray
5e3db0aa83
Updated some scripts paths
...
NOTE: New raylib release installer uses `w64devkit`, smaller and more updated than regular `mingw64-w64` default project. Paths are updated properly.
2021-11-02 18:40:45 +01:00
Ray
e930ad3102
Reviewed spelling mistake
2021-11-01 23:06:26 +01:00
Ray
2fe488a71c
Update version in CMake
2021-11-01 23:05:23 +01:00
raysan5
70a2118c49
REMOVED: rnet.h
...
It was not working properly... recommended to use `nbnet` instead.
2021-11-01 20:08:14 +01:00
raysan5
b02e737074
Update raygui.h
2021-11-01 20:07:22 +01:00
raysan5
bba035c20c
Minor type tweak
2021-11-01 19:14:55 +01:00
Ray
8c0f9c7f5a
Update miniaudio.h
2021-11-01 11:37:47 +01:00
Ray
8abba960c7
Review comments
2021-11-01 11:26:13 +01:00
Ray
8649032428
Update comment
2021-11-01 01:08:55 +01:00
Ray
1fac09d0f4
REVIEWED: example: Compute shader Game-of-life
2021-10-31 12:28:04 +01:00
Ray
b7240d6a36
Update raygui.h
2021-10-27 11:25:24 +02:00
Ray
65076464d5
REVIEWED: KeyCallback()
...
Register keys independently of the actions
2021-10-26 22:27:18 +02:00
Ray
72758de6ea
Reviewed warnings
2021-10-26 22:26:28 +02:00
Ray
25642cff36
Update comments for OpenGL 4.3
2021-10-26 22:23:16 +02:00
Jeffery Myers
daeccd03ac
Fix VC warnings for examples ( #2085 )
2021-10-25 10:21:16 +02:00
Jeffery Myers
086f76ba7a
Fix warnings in raylib build ( #2084 )
2021-10-25 10:18:42 +02:00
mandar1jn
affb707dd9
fixing the library so the workflows compile ( #2082 )
2021-10-24 18:24:01 +02:00
TheSergey496
08441e8b2d
When one of the colliding lines is vertical or horizontal, not all collisions were correctly detected due to floating point error. ( #2081 )
2021-10-24 17:31:13 +02:00
raysan5
62965aa6d7
Comments tweaks
2021-10-23 14:17:26 +02:00
raysan5
04a4efb591
Added some comments on LoadGLTF()
2021-10-23 14:00:05 +02:00
raysan5
c4f0e80895
REVIEWED: Size of bones id supported, max 255 bones per mesh
2021-10-23 13:59:20 +02:00
raysan5
ebee8ba3bb
REVIEWED: LoadGLTF() #2075
2021-10-23 11:42:02 +02:00
mausimus
8f5bd3e185
web: clear resizedLastFrame ( #2077 )
2021-10-23 10:52:36 +02:00
Richard Smith
fcc6a61d9e
replace hardcoded number of mouse buttons with MAX_MOUSE_BUTTONS ( #2076 )
2021-10-23 10:52:04 +02:00
raysan5
18db2c4f01
REVIEWED: LoadGLTF()
...
Reorganized code and added some feature and listed restrictions. Some gltf models do not work yet.
2021-10-22 21:27:11 +02:00
raysan5
83b6cd00c6
Reviewed VS2019 projects
2021-10-22 15:41:28 +02:00
raysan5
ebad28d831
REVIEWED: gltf models loading, reverted to a previous version (with some tweaks)
2021-10-22 14:53:11 +02:00
raysan5
befdb5963e
REMOVED: IsGamepadName()
...
This function is not required, users can check it with `GetGamepadName()`
2021-10-22 12:21:31 +02:00
raysan5
83cd22ee5a
Minor tweaks
2021-10-22 12:20:42 +02:00
raysan5
dd6e006d78
Reviewed multitouch example #1988
2021-10-22 11:53:47 +02:00
Ray
317db34059
Reviewed to support raygui and physac on building
2021-10-21 21:17:25 +02:00
Ray
13bb656a91
Update Makefile
2021-10-21 21:09:40 +02:00
Ray
9afda9359b
Reviewed physac building
2021-10-21 21:04:28 +02:00
raysan5
fec0ce34c5
Remove trailing spaces
2021-10-19 14:57:12 +02:00
raysan5
719c1551cc
Reviewed latest PR formatting and details
2021-10-19 13:30:23 +02:00
warzes
9f2ff3e4d6
Support create OpenGL debug context in OpenGL 4.3 ( #2068 )
...
* - support create OpenGL debug context in OpenGL 4.3
* - additional events in debug message
- fixed glEnable(GL_DEBUG_OUTPUT)
* Reviewed OpenGL Debug Context
2021-10-19 12:43:27 +02:00
raysan5
6ac3043e88
WARNING: REMOVED: glTF loading
...
Actually, it was broken and it that code has no maintainer.
2021-10-18 14:11:56 +02:00
raysan5
2ec8ce649a
ADDED: EncodeDataBase64() and DecodeDataBase64()
2021-10-18 14:10:51 +02:00
raysan5
1c9093fd24
Avoid GRAPHICS_API_OPENGL_* defines
...
Those defines are only used inside `rlgl` module
2021-10-18 13:25:59 +02:00
raysan5
b28e353626
Reviewed glDisableVertexAttribArray() issue #2068
2021-10-18 13:22:52 +02:00
raysan5
a3f9ba8704
Removed useless GL calls #2068
2021-10-18 13:16:07 +02:00
Ray
ccf4329792
Review comments
2021-10-18 00:23:26 +02:00
Uneven Prankster
a6fb2dafc6
Fix rlLoadComputeShaderProgram define ( #2067 )
...
Now uses correct version.
2021-10-17 23:11:42 +02:00
raysan5
7a16834124
UPDATE: Officially support OpenGL 4.3
2021-10-17 21:41:19 +02:00
raysan5
f437f7b405
Reviewed makefile and examples building
2021-10-17 21:00:52 +02:00
raysan5
cf12992b6a
Remove trailing spaces
2021-10-17 21:00:20 +02:00
Sage Hane
16d015d81e
build.zig: Use addCSourceFiles ( #2066 )
2021-10-17 19:04:08 +02:00
warzes
d47d7c0001
Fixing the error of loading VOX models. ( #2065 )
...
* - Fixing the error of loading VOX models.
* - fixed spaces
2021-10-17 10:22:58 +02:00
michaelfiber
c87e91d27a
Update SetupViewport so that it doesn't subtract offset from render dimensions when calling rlViewport ( #2064 )
...
Co-authored-by: Michael <michael@cubeofb.org>
2021-10-17 10:21:51 +02:00
Ray
99f6707e2c
Support OpenGL 4.3
...
- Support Compute Shaders by rlgl API
- Support SSBO by rlgl API
2021-10-16 23:49:31 +02:00
Ray
e36dc01b91
Support GRAPHICS_API_OPENGL_43
2021-10-16 23:39:21 +02:00
Ray
8523d13683
Update rlgl.h
2021-10-16 23:30:30 +02:00
Astie Teddy
dba29e4405
Compute shaders support ( #2061 )
...
* Add basic compute shader and ssbo support in rlgl.
* Add rlBindImageTexture (untested), now requires SUPPORT_COMPILE_SHADERS
* Delete glad.c
* Delete glad.h
* Delete khrplatform.h
* Revert to previous glad.h
* Remove "glad.c"
Co-authored-by: Ray <raysan5@gmail.com>
2021-10-16 23:26:25 +02:00
Ray
0aefe256d0
REVIEWED: rlLoadDrawQuad() description #2058
2021-10-16 22:39:22 +02:00
Ray
1b793e76dc
Reviewed memory usage
2021-10-16 22:36:47 +02:00
Ray
226c0e362c
Merge branch 'master' of https://github.com/raysan5/raylib
2021-10-15 11:25:28 +02:00
Ray
84edd22612
Reviewed unsigned int issue (discussion #2054 )
2021-10-15 11:25:17 +02:00
raysan5
2a6bd973bd
Review some comments
2021-10-14 15:38:50 +02:00
Ray
9ac5a96408
Update rmodels.c
2021-10-14 10:52:24 +02:00
Ray
8a5bc933de
Starting to review glTF loading -WIP-
2021-10-14 10:43:29 +02:00
Ray
3e604a8645
Remove trailing spaces
2021-10-14 00:11:37 +02:00
Ray
83b3478fe4
Reviewed some TODO
2021-10-13 23:45:57 +02:00
raysan5
4390d3a122
Avoid raylib dependency
2021-10-13 20:47:57 +02:00
raysan5
a77afd5c8f
Reviewed some MSVC warnings
2021-10-13 20:47:42 +02:00
raysan5
32c9d411b2
REVIEWED LoadVOX() -WIP-
...
It seems vox loader is not working properly...
2021-10-13 20:28:58 +02:00
raysan5
1350361f58
Reviewed formatting
2021-10-13 19:34:37 +02:00
Horrowind
e545286369
Fix issue with empty cylinder ( #2050 )
...
* Add DrawCylinderEx and DrawCylinderWiresEx
* Modify examples/models/models_geometric_shapes.c to show the
usage of DrawCylinder(Wires)Ex
* Simplified DrawCylinder and DrawCylinderWires to use the -Ex versions.
* This reverts commits f49b2598dd and
4542b32e4e .
* Fixed formatting.
Renamed base_angle to baseAngle.
Remove most of the raymath.h calls.
* Added check for empty cylinder.
* Added check for empty cylinder.
* Fix bug.
Co-authored-by: Horrowind <you@example.com>
2021-10-13 19:32:30 +02:00
raysan5
4e88160e78
Update raylib.h
2021-10-13 19:22:47 +02:00
Ray
a1db0220a1
REVIEWED: LoadFontFromImage()
...
Avoid crash on wrong sprite font
2021-10-12 23:00:00 +02:00
raysan5
f1659d78d3
Reviewed models examples paths
2021-10-12 21:01:49 +02:00
raysan5
252bd22738
Merge branch 'master' of https://github.com/raysan5/raylib
2021-10-12 20:22:12 +02:00
raysan5
0b0711027a
Remove unimplemented function
2021-10-12 20:21:56 +02:00
Horrowind
526e68afa8
Add DrawCylinder(Wires)Ex ( #2049 )
...
* Add DrawCylinderEx and DrawCylinderWiresEx
* Modify examples/models/models_geometric_shapes.c to show the
usage of DrawCylinder(Wires)Ex
* Simplified DrawCylinder and DrawCylinderWires to use the -Ex versions.
* This reverts commits f49b2598dd and
4542b32e4e .
* Fixed formatting.
Renamed base_angle to baseAngle.
Remove most of the raymath.h calls.
Co-authored-by: Horrowind <you@example.com>
2021-10-12 19:36:06 +02:00
raysan5
599d6e810f
REVIEWED: models resources structure
2021-10-12 12:47:50 +02:00
raysan5
4a1bd12e2d
REVIEWED: DrawCubeTextureRec() formatting
2021-10-12 12:08:12 +02:00
Ray
282ec9bb76
Formatting tweak
2021-10-10 23:48:16 +02:00
Ray
a91f61262e
Review RLAPI to avoid warnings
2021-10-10 23:24:05 +02:00
Ray
f8719e7ec3
Reviewed latest PR formatting
2021-10-10 22:38:58 +02:00
Arnaud Valensi
7c36f3f6b8
Fix dpi issues ( #1987 )
2021-10-10 22:34:56 +02:00
Jeffery Myers
3d6d5558c9
Add CheckCollisionPointLine to the header, it appears to have been missed ( #2042 )
2021-10-10 17:06:15 +02:00
Jeffery Myers
62554db48d
Add missing #endif to windows API defines ( #2038 )
2021-10-08 19:12:21 +02:00
Ray
94650f0def
Simplified RLAPI preprocessor branching
2021-10-08 17:22:58 +02:00
Jeffery Myers
33ed452439
Fix dll exports so that raylib builds in visual studio again. ( #2037 )
2021-10-07 20:17:45 +02:00
raysan5
3e71232a04
WARNING: BREAKING: REMOVED: GenImagePerlinNoise()
...
raylib was using `stb_perlin.h` library to generate perlin noise, it seems that recently this library has been flagged as it could be infringing some algorythm patent. For security, it has been removed from raylib.
2021-10-06 21:20:36 +02:00
raysan5
700d448d75
Updated external libraries
2021-10-06 21:13:17 +02:00
raysan5
8722ff7043
REVIEWED: RLGL.State.vertexCounter (See detailed comment)
...
`RLGL.State.vertexCounter` is a generic counter and it's reused for all `rlRenderBatch`, actually, once render batch is filled, required vertex count is provided through the draw calls, so, the total accumulated count of vertices is not directly registered inside the rlRenderBatch.
`RLGL.State.vertexCounter` keeps that count but one possible improvement(?) could be moving the `vertexCounter` inside `rlRenderBatch` to always keep a register of the total accumulated vertices in that batch (despite that info is provided by the accumulated `draws[i].vertexCount`.
Simplifying, `RLGL.State.vertexCounter = SUM(draws[i].vertexCount)`
The decision to move the counter out of `rlVertexBuffer` is to keep only the data that I think should belong to `rlVertexBuffer` and make it more generic, aligned with raylib `Mesh` structure.
The decision to not add it to `rlRenderBatch` is because it could contain multiple `rlVertexBuffer` and it would be confusing (because it would only register the count of the last filled one).
2021-10-06 11:44:57 +02:00
Ray
8d7f97ee04
Remove trailing spaces
2021-10-06 01:20:46 +02:00
Ray
9a4fb25285
REDESIGNED: Simplify vertex data recording
...
Instead of registering vertex texcoords and colors on every call, we keep the last defined value and we record everything on `glVertex*()`. Actually that behavior is aligned with OpenGL 1.1 standard.
2021-10-06 01:17:20 +02:00
raysan5
7439c7547b
Review functions specifiers
2021-10-05 19:20:21 +02:00
raysan5
b972b8d324
REVIEWED: API functions specifiers
2021-10-05 18:33:41 +02:00
mausimus
6541895901
Revert "reset resizedLastFrame on web platform ( #2020 )" ( #2032 )
2021-10-04 09:47:41 +02:00
tomarigr
5d8c477d12
[rcore] fix rpi4 Failed to get DRM resources ( #2031 )
...
* [rcore] fix rpi4 Failed to get DRM resources
card1 is not always the the correct card to use on rpi4
rpi os finds the correct card and links it to /dev/dri/by-path/platform-gpu-card during boot.
this fix makes sure that we always point to the correct card on rpi4
* Update rcore.c
2021-10-04 01:59:59 +02:00
Ray
79f36799e7
REVIEWED: Avoid raymath dependency
...
Still, it depends on Matrix type... rcamera module should be completely reviewed...
2021-10-03 14:08:21 +02:00
Ray
369cb0a3c5
Format tweak
2021-10-03 13:51:53 +02:00
Ray
9b3d74db6b
ADDED: GetImageColor() #2024
2021-10-03 12:55:52 +02:00
Ray
92417c4485
Update raylib.h
2021-10-03 12:33:40 +02:00
Ray
22345ff62a
Minor format tweak
2021-10-03 12:17:15 +02:00
SAOMDVN
3fc4a4c974
Added DrawLineBezierCubic() ( #2021 )
...
Co-authored-by: SAOMDVN <saomdvn@users.noreply.github.com>
2021-10-03 12:15:56 +02:00
Laurentino Luna
9fce26bb06
Supress most warnings on rmodels.c ( #2029 )
...
* Supress most warnings on rmodels.c
NOTE: unused symbols have been deleted and the following report will show in what location they were previously.
Unused symbols:
- ArrayInt - vox_loader.h: line 84
- initArrayInt - vox_loader.h: line 168
- insertArrayInt - vox_loader.h: line 175
- freeArrayInt - vox_loader.h: line 186
- offsetX, offsetY, offsetZ - vox_loader.h: line 610
- chunkTotalChildSize - vox_loader.h: line 623
Other warnings:
- initialization discards 'const' qualifier - vox_loader.h: line 572
- incompatible types for VoxVector3 and Vector3 - rmodels.c: line 5748
- incompatible types for VoxColor and Color - rmodels: line 5749
* Remove ToVector3 and ToColor functions and assign values directly
2021-10-03 12:11:20 +02:00
Ray
f869229b7f
Minor format tweaks
2021-10-03 12:09:59 +02:00
Ray
239c37246a
WARNING: REVIEWED: Follow a set of conventions
...
CONVENTIONS:
- Functions are always self-contained, no function use another raymath function inside, required code is directly re-implemented inside
- Functions input parameters are always received by value
- Functions use always a "result" variable for return
- Functions are always defined inline
- Angles are always in radians (DEG2RAD/RAD2DEG macros provided for convenience)
2021-10-03 11:44:59 +02:00
Chris
9882796df0
Rename BRDG typo to BDRF ( #2028 )
2021-10-02 14:07:42 +02:00
mausimus
93efa565f9
reset resizedLastFrame on web platform ( #2020 )
2021-09-29 23:27:10 +02:00
mausimus
dfbb134bfe
RLGL: restore draw batch state after limit check ( #2018 )
2021-09-29 23:26:29 +02:00
Ray
2474d50dba
Update raylib.h
2021-09-27 17:52:15 +02:00
Ray
e40ece55d5
Update raylib.h
2021-09-27 17:51:57 +02:00
raysan5
18c92b3104
ADDED: Vector3Angle()
2021-09-27 13:57:06 +02:00
raysan5
dd7d65a6b4
Remove tabs
2021-09-27 13:55:45 +02:00
Tommi Sinivuo
206e1def6f
Add Zig build file ( #2014 )
...
The build file builds Raylib as a static library for either
Windows or Linux.
2021-09-25 19:24:48 +02:00
Tristan Schulz
b7063ab879
[models] Animation System Fix Part 1 ( #2009 )
...
* Fixed gltf missing transforms on load
mend
* extracted Matrix calculation in to static method and added skinning check
* fixed formatting
* Fixed write to access to nullptr when animation has no normals
* Refactored UpdateModelAnimation to only update changed vertices when needed (allows for multi animation playing)
* add check for models that were missed during BindGLTFPrimitiveToBones to not segfault the program
* fixed id mismatch between animation and model
* draft on fixing the mesh to skin mapping
* dont look at this
* removing debug info
2021-09-23 21:06:51 +02:00
raysan5
10d7718011
UPDATED: raylib resource files
2021-09-23 20:53:31 +02:00
raysan5
ddc1fdf6d5
REVIEWED: SeekMusicStream() formating
2021-09-23 18:11:24 +02:00
Uneven Prankster
7fa521fae4
Fix + Return if attempting to seek on a module format ( #2008 )
2021-09-23 17:38:37 +02:00
Ray
08ea5e419e
REVIEWED: LoadImageAnim() #2005
2021-09-23 00:23:57 +02:00
Ray
00a763ea44
Reviewed some TODO comments
2021-09-23 00:18:47 +02:00
Laurentino Luna
dcd289d931
Modify TODO to NOTE on Makefile ( #2007 )
...
'# TODO: see 'install' target.' should be a note rather than something
to do.
2021-09-22 23:49:11 +02:00
Timon de Groot
025246620f
Add function DrawCubeTextureRec ( #2001 )
...
* Add function DrawCubeTextureRec
* Add EOF newline
* Remove unneeded example
2021-09-22 21:56:38 +02:00
Uneven Prankster
19ef765382
SeekMusicStream initial implementation (#2006 )
2021-09-22 21:55:13 +02:00
Ryan Roden-Corrent
9607ea5c0a
Use unsigned int for animation count. ( #2002 )
...
LoadModelAnimations takes an `int` for the animation count parameter.
The animation count should never be negative, so it makes sense to
specify it as unsigned in the API. This matches the API for
UnloadModelAnimations, which expects an unsigned int. Both GLTF and IQMM
also store the animation count internally as unsigned, and we were
casting to a signed int for no reason.
GLTF actually uses `size_t` internally, so we're technically risking
overflow, but having 2^32 animations seems unlikely.
2021-09-22 13:04:10 +02:00
Ray
8a434b4fd4
Update rmodels.c
2021-09-22 13:02:44 +02:00
Ray
0e037555fe
Update raylib.h
2021-09-22 12:59:40 +02:00
Ray
de173a93c8
Update rmodels.c
2021-09-22 12:19:25 +02:00
Ray
37c047eabc
Update rmodels.c
2021-09-22 11:28:52 +02:00
Ray
c1432386a5
Update Makefile
2021-09-22 11:13:10 +02:00
Ray
99ab4d6cb8
WARNING: MODULES RENAMING!!!
...
raylib modules have been slightly renamed to add some identity and note that they are independent modules that can be used as standalone separate parts of raylib if required.
The renamed modules are:
- `core` -> `rcore`
- `shapes` -> `rshapes`
- `textures` -> `rtextures`
- `text` -> `rtext`
- `models` -> `rmodels`
- `camera` -> `rcamera`
- `gestures` -> `rgestures`
- `core` -> `rcore`
All the build systems has been adapted to this change.
2021-09-22 00:15:06 +02:00
Ray
8b3d054408
Minor reviews
2021-09-21 23:49:42 +02:00
raysan5
7d995d95eb
Merge branch 'master' of https://github.com/raysan5/raylib
2021-09-21 15:31:35 +02:00
raysan5
a09311a8fc
Tweaks
2021-09-21 15:31:26 +02:00
Uneven Prankster
339fdf4c31
Add up argument to DrawBillboardPro ( #1941 )
...
* Add `up` argument to `DrawBillboardPro`
* Replace tab with proper spaces
2021-09-21 15:22:30 +02:00
raysan5
c96de3a23a
ADDED: GetTouchPointId(index) #1972
2021-09-21 15:11:33 +02:00
raysan5
1627f34032
Reviewed some compilation issues #1997
2021-09-21 15:06:06 +02:00
Chris
89f031673b
Fix mappings.h issue from glfw update ( #1995 )
...
- Ran GenerateMappings.cmake to restore mapping changes
2021-09-19 20:33:18 +02:00
Tommi Sinivuo
3c55f067a8
Add SetRandomSeed(unsigned int seed) function ( #1994 )
...
Specifying a fixed seed for the random number generator is often
used in games for various reasons.
By adding an api function for seeding the random number generator
we solve two different problems regarding the seeding:
1) The underlying RNG implementation does not leak to client code
(as would be the case if we called srand directly from the
client code)
2) Seeding the RNG would be simple from other programming languages
(especially in cases where calling libc functions is non-trivial)
2021-09-17 21:26:21 +02:00
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