Commit Graph

78 Commits

Author SHA1 Message Date
Peter0x44 bf5eecc71f [parser] Don't crash for files that don't end in newlines (#3981)
The parser assumes all lines end in newlines, but sometimes this isn't
true. Check for a null terminator along with '\n' when stripping leading
spaces.
2024-05-15 16:16:45 +02:00
Filyus 3f13f7921d Fix parsing of empty parentheses (#3974)
Co-authored-by: Filyus <fahmedyanov@dpg.email>
2024-05-13 00:33:09 +02:00
github-actions[bot] 27a015d022 Update raylib_api.* by CI 2024-04-30 21:47:28 +00:00
github-actions[bot] 915dd95d88 Update raylib_api.* by CI 2024-04-28 20:39:44 +00:00
github-actions[bot] 349ff16600 Update raylib_api.* by CI 2024-04-20 17:54:14 +00:00
github-actions[bot] 1987c90c73 Update raylib_api.* by CI 2024-04-03 18:10:31 +00:00
github-actions[bot] 1b047995d1 Update raylib_api.* by CI 2024-04-01 16:01:29 +00:00
github-actions[bot] 7c75746b91 Update raylib_api.* by CI 2024-03-29 00:40:37 +00:00
github-actions[bot] b1029a40b2 Update raylib_api.* by CI 2024-03-07 11:28:26 +00:00
aiafrasinei 3b7be85151 Screen space related functions consistency (#3830)
* Screen/world-space related functions rename

* Update raylib_api.* by CI

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-07 12:28:11 +01:00
github-actions[bot] d3f2d94f23 Update raylib_api.* by CI 2024-02-29 17:40:30 +00:00
github-actions[bot] 2a774a88f5 Update raylib_api.* by CI 2024-02-24 15:47:42 +00:00
github-actions[bot] 31ce1374e4 Update raylib_api.* by CI 2024-02-04 11:03:25 +00:00
github-actions[bot] 250d89b621 Update raylib_api.* by CI 2024-02-04 10:37:24 +00:00
Alexandre Almeida 5c25913e09 Fix Android keycode translation and duplicate key constants (#3733)
* Fix Android keycode translation

* Simplify code a bit

* Rename KEYCODE_MAPPED_NUM to KEYCODE_MAP_SIZE

* Fix KEY_R and KEY_MENU duplicate

* Update raylib_api.* by CI

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-20 21:22:33 +01:00
Ray e46b6147fc Update copyright year to 2024 2024-01-03 14:16:39 +01:00
Ray 3f1e59a7cf Update copyright to 2024 2024-01-02 20:58:12 +01:00
seiren 0a25a3ed70 Update raylib_api.* by CI (#3692)
* wip: add parse.yml

* Temporarily force run

* Auto commit parse files

* Update raylib_api.* by CI

* Remove temporary setting

* format

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-31 15:06:46 +01:00
BLUELOVETH dfa64f228a Update raylib_api.* (#3564) 2023-11-24 00:46:54 +01:00
Ray 1327b570e3 Update raylib_parser.c 2023-10-08 18:11:55 +02:00
Ray be8eea9eda Format tweaks 2023-10-08 18:10:05 +02:00
BLUELOVETH 97c2744a16 Update raylib_api.* (#3379) 2023-10-07 21:10:27 +02:00
Ray 411d0ee437 Update raylib_parser.c 2023-09-29 00:28:03 +02:00
Dane Madsen e465ed0850 Added ImageRotate (#3078)
* Added ImageRotate

* Quick rename of the example

* Update ImageRotate by changing doubles to floats and checking code convention

* Update API
2023-05-24 09:22:51 +02:00
Dane Madsen a4a6d4da8a Add GenImageGradientSquare (#3077)
* Add GenImageGradientSquare to allow square gradients

* Fix GenImageGradientSquare and add to textures_image_generation example

* Remove params from GenImageGradientSquare
2023-05-22 15:20:28 +02:00
Dane Madsen e96dc46d38 Replaced GenImageGradientH and GenImageGradientV with GenImageLinearGradient (#3074)
* Replaced GenImageGradientH and GenImageGradientV with GenImageLinearGradient

* renamed GenImageLinearGradient to GenImageGradientLinear
2023-05-21 11:33:47 +02:00
Ray 159e6b6f24 UPDATED: raylib-parser output files (TXT, XML, JSON, LUA) 2023-03-15 13:13:48 +01:00
Ray 2766835ed4 REPLACE: TABS by 4 spaces 2023-02-15 17:36:31 +01:00
Antonis Geralis 0b42da4085 Raylib.h has exceeded 512 functions! (#2896) 2023-01-27 23:33:15 +01:00
Ray 30b75702df Update year to 2023 2023-01-01 18:09:22 +01:00
Ray b59fab7ee6 Update year to 2023 2023-01-01 16:00:56 +01:00
Peter0x44 b8e14a4f99 Review parser Makefile (#2765)
* parser: Fail gracefully if a nonexistent file is passed on the command line

Before, if a nonexistent file was passed to LoadFileText(), it would
return NULL, and the parser would happily dereference it.

* parser: Refactor Makefile and update the path to easings.h (now reasings.h)

Before, the `make all` target would simply segfault, see 0a679d79
Now, if a file in the `make all` target doesn't exist, make will write
an error.

Individual API files can be generated likeso, provided the header file
the target depends on exists:

FORMAT=JSON EXTENSION=json make raygui_api.json

In order for the `make all` target to succeed, raygui.h, physac.h and
rmem.h need to be added to the correct directory.
2022-10-20 17:29:03 +02:00
Dor Shapira 0d04ceafbf build raylib_api without the 'vectex' tyops (#2749) 2022-10-11 12:14:01 +02:00
Ray 7db6fe02fd Fixed issue with new output format 2022-08-14 12:56:55 +02:00
Ray d1c53910b7 Update parser outputs for raylib 4.2 2022-08-05 20:01:25 +02:00
Ray 5940790379 Update raylib_parser.c 2022-08-05 20:00:58 +02:00
Ray 1a35f73d84 Review some warnings 2022-08-02 21:17:19 +02:00
Ray 50663f0890 Merge branch 'master' of https://github.com/raysan5/raylib 2022-08-02 21:17:07 +02:00
Ray 7c9d55f4d9 Move parser output to output 2022-08-02 21:17:03 +02:00
Ray 0739152057 Update README.md 2022-08-02 21:16:46 +02:00
Ray 66108c47d9 Update raylib_parser.c 2022-08-02 21:10:35 +02:00
Ray 75c8df348f Update README.md 2022-08-02 21:07:47 +02:00
Ray 273c780b67 Update raylib_parser.c 2022-08-02 21:05:31 +02:00
Ray 2ce0722fb8 Update README.md 2022-08-02 21:02:11 +02:00
Ray 043fa4cba7 Removed extras directory 2022-06-12 21:13:46 +02:00
Ray 609d92003b WARNING: REMOVED raygui from raylib/src/extras 2022-06-06 11:11:39 +02:00
lazaray aa318674e8 Add support for calculated defines to parser (#2463)
* Add support for calculated defines to parser

* Regenerate parser output
2022-05-06 20:23:07 +02:00
lazaray bbc8d39185 Add support for truncating parser input (#2464)
* Add support for truncating parser input

* Remove RLAPI from implementations in rlgl.h
2022-05-06 20:18:39 +02:00
lazaray 4eb3d8857f Reorder parser (#2462)
* Reorder parser output

* Regenerate parser output

* Reorder parser line reading

* Reorder parser data parsing

* Reorder remaining parser stuff
2022-05-04 13:44:55 +02:00
lazaray df6caea25d Parser improvements (#2461)
* Fix parser function description detection

Some functions in easings.h are defined on a single line and include a
division which was mistaken for the start of the description.

* Fix parser detection of macros including spaces

* Add support for self-referencing structs to parser

* Fix parser code style

* Fix parser handling of multiple fields on one line

* Increase parser MAX_STRUCT_FIELDS

For internal rlglData State struct (internal structs are still not
supported but this makes it less wrong).

* Add description helper to parser

* Regenerate parser output

* Add cakkbacks to parser

* Regenerate parser output

* Refactor funcLines to be an array of line numbers

It used to be an array of pointers into the text buffer but was changed
to be an array of pointers to the lines. Now it is an array of line
numbers like the others.

* Fix code style

* Move array size from name to type

* Regenerate parser output
2022-05-04 11:06:01 +02:00