Commit Graph

5157 Commits

Author SHA1 Message Date
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
Ryan Roden-Corrent e6fe8169c2
Fix Makefile to build WASM examples. (#1906)
* Fix Makefile to build WASM examples.

- Add --preload-file flag before specifying the resource dir
- Add empty resource dir to `shapes/` (otherwise wasm-ld will fail)
- Add wasm outputs to .gitigore

* Delete .gitignore

Co-authored-by: Ray <raysan5@gmail.com>
2021-08-07 23:30:48 +02:00
raysan5 7ca9131fd4 Update rlgl_standalone.c 2021-08-07 11:58:39 +02:00
Ray 07e0b10515
Added rayex, elixir binding 2021-08-07 11:28:35 +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 7013e60926 Update models_rlgl_solar_system.c 2021-07-31 18:44:07 +02:00
raysan5 559f1919c6 REVIEWED: Improved font loading info 2021-07-31 18:41:44 +02:00
raysan5 73c8ddc8bf REVIEWED: raylib_opengl_interop 2021-07-31 18:36:06 +02:00
raysan5 b805754aa1 REVIEWED: Avoid bool type collisions 2021-07-31 18:10:26 +02:00
raysan5 0f8cfd6031 Update rlgl_standalone.c 2021-07-30 13:52:00 +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 71373ee524 Update Makefile 2021-07-30 12:48:09 +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
Ray cd1464390c
Update CONVENTIONS.md 2021-07-29 12:11:12 +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 8fecf45f4c REVIEWED: rnet include from extras 2021-07-28 19:48:20 +02:00
raysan5 96aadec503 REVIEWED: Info on image loading failure 2021-07-28 19:47:53 +02:00
raysan5 c219fc02cd Review includes to use extras libraries 2021-07-28 17:29:49 +02:00
raysan5 75d675ab4d Review physac.h path 2021-07-28 17:21:34 +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
raysan5 0352aa2094 Replace TABS by 4 spaces 2021-07-28 12:55:38 +02:00
raysan5 a9230a6c07 Update shapes_logo_raylib_anim.c 2021-07-28 12:50:18 +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
AKDev 9839ea6667
Added another raylib binding for nelua (#1890) 2021-07-25 19:45:04 +02:00
Níckolas Daniel da Silva 87b542085b
Update SPONSORS.md (#1886) 2021-07-24 19:55:21 +02:00
Ray 647b54a2dc
Update BINDINGS.md 2021-07-23 23:38:44 +02:00
Jeffery Myers 548961aea1
State that raylib works with both C and C++ and move raylib-cpp to a wrapper section instead of a language binding, for less confusion. (#1885)
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-07-23 23:33:32 +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