Browse Source

Merge branch 'master' of https://github.com/raysan5/raylib

pull/4127/head
Ray 5 months ago
parent
commit
2efd36a124
4 changed files with 57 additions and 75 deletions
  1. +2
    -8
      parser/output/raylib_api.json
  2. +2
    -8
      parser/output/raylib_api.lua
  3. +50
    -55
      parser/output/raylib_api.txt
  4. +3
    -4
      parser/output/raylib_api.xml

+ 2
- 8
parser/output/raylib_api.json View File

@ -60,22 +60,16 @@
"value": "(180.0f/PI)", "value": "(180.0f/PI)",
"description": "" "description": ""
}, },
{
"name": "MAX_ALLOC_SIZE",
"type": "INT_MATH",
"value": "1024*1024",
"description": "1GB of maximum allocation data"
},
{ {
"name": "RL_MALLOC(sz)", "name": "RL_MALLOC(sz)",
"type": "MACRO", "type": "MACRO",
"value": "((sz > MAX_ALLOC_SIZE)? malloc(sz) : NULL)",
"value": "malloc(sz)",
"description": "" "description": ""
}, },
{ {
"name": "RL_CALLOC(n,sz)", "name": "RL_CALLOC(n,sz)",
"type": "MACRO", "type": "MACRO",
"value": "((n*sz > MAX_ALLOC_SIZE)? calloc(n,sz) : NULL)",
"value": "calloc(n,sz)",
"description": "" "description": ""
}, },
{ {

+ 2
- 8
parser/output/raylib_api.lua View File

@ -60,22 +60,16 @@ return {
value = "(180.0f/PI)", value = "(180.0f/PI)",
description = "" description = ""
}, },
{
name = "MAX_ALLOC_SIZE",
type = "INT_MATH",
value = "1024*1024",
description = "1GB of maximum allocation data"
},
{ {
name = "RL_MALLOC(sz)", name = "RL_MALLOC(sz)",
type = "MACRO", type = "MACRO",
value = "((sz > MAX_ALLOC_SIZE)? malloc(sz) : NULL)",
value = "malloc(sz)",
description = "" description = ""
}, },
{ {
name = "RL_CALLOC(n,sz)", name = "RL_CALLOC(n,sz)",
type = "MACRO", type = "MACRO",
value = "((n*sz > MAX_ALLOC_SIZE)? calloc(n,sz) : NULL)",
value = "calloc(n,sz)",
description = "" description = ""
}, },
{ {

+ 50
- 55
parser/output/raylib_api.txt View File

@ -1,5 +1,5 @@
Defines found: 58
Defines found: 57
Define 001: RAYLIB_H Define 001: RAYLIB_H
Name: RAYLIB_H Name: RAYLIB_H
@ -51,242 +51,237 @@ Define 010: RAD2DEG
Type: FLOAT_MATH Type: FLOAT_MATH
Value: (180.0f/PI) Value: (180.0f/PI)
Description: Description:
Define 011: MAX_ALLOC_SIZE
Name: MAX_ALLOC_SIZE
Type: INT_MATH
Value: 1024*1024
Description: 1GB of maximum allocation data
Define 012: RL_MALLOC(sz)
Define 011: RL_MALLOC(sz)
Name: RL_MALLOC(sz) Name: RL_MALLOC(sz)
Type: MACRO Type: MACRO
Value: ((sz > MAX_ALLOC_SIZE)? malloc(sz) : NULL)
Value: malloc(sz)
Description: Description:
Define 013: RL_CALLOC(n,sz)
Define 012: RL_CALLOC(n,sz)
Name: RL_CALLOC(n,sz) Name: RL_CALLOC(n,sz)
Type: MACRO Type: MACRO
Value: ((n*sz > MAX_ALLOC_SIZE)? calloc(n,sz) : NULL)
Value: calloc(n,sz)
Description: Description:
Define 014: RL_REALLOC(ptr,sz)
Define 013: RL_REALLOC(ptr,sz)
Name: RL_REALLOC(ptr,sz) Name: RL_REALLOC(ptr,sz)
Type: MACRO Type: MACRO
Value: realloc(ptr,sz) Value: realloc(ptr,sz)
Description: Description:
Define 015: RL_FREE(ptr)
Define 014: RL_FREE(ptr)
Name: RL_FREE(ptr) Name: RL_FREE(ptr)
Type: MACRO Type: MACRO
Value: free(ptr) Value: free(ptr)
Description: Description:
Define 016: CLITERAL(type)
Define 015: CLITERAL(type)
Name: CLITERAL(type) Name: CLITERAL(type)
Type: MACRO Type: MACRO
Value: type Value: type
Description: Description:
Define 017: RL_COLOR_TYPE
Define 016: RL_COLOR_TYPE
Name: RL_COLOR_TYPE Name: RL_COLOR_TYPE
Type: GUARD Type: GUARD
Value: Value:
Description: Description:
Define 018: RL_RECTANGLE_TYPE
Define 017: RL_RECTANGLE_TYPE
Name: RL_RECTANGLE_TYPE Name: RL_RECTANGLE_TYPE
Type: GUARD Type: GUARD
Value: Value:
Description: Description:
Define 019: RL_VECTOR2_TYPE
Define 018: RL_VECTOR2_TYPE
Name: RL_VECTOR2_TYPE Name: RL_VECTOR2_TYPE
Type: GUARD Type: GUARD
Value: Value:
Description: Description:
Define 020: RL_VECTOR3_TYPE
Define 019: RL_VECTOR3_TYPE
Name: RL_VECTOR3_TYPE Name: RL_VECTOR3_TYPE
Type: GUARD Type: GUARD
Value: Value:
Description: Description:
Define 021: RL_VECTOR4_TYPE
Define 020: RL_VECTOR4_TYPE
Name: RL_VECTOR4_TYPE Name: RL_VECTOR4_TYPE
Type: GUARD Type: GUARD
Value: Value:
Description: Description:
Define 022: RL_QUATERNION_TYPE
Define 021: RL_QUATERNION_TYPE
Name: RL_QUATERNION_TYPE Name: RL_QUATERNION_TYPE
Type: GUARD Type: GUARD
Value: Value:
Description: Description:
Define 023: RL_MATRIX_TYPE
Define 022: RL_MATRIX_TYPE
Name: RL_MATRIX_TYPE Name: RL_MATRIX_TYPE
Type: GUARD Type: GUARD
Value: Value:
Description: Description:
Define 024: LIGHTGRAY
Define 023: LIGHTGRAY
Name: LIGHTGRAY Name: LIGHTGRAY
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 200, 200, 200, 255 } Value: CLITERAL(Color){ 200, 200, 200, 255 }
Description: Light Gray Description: Light Gray
Define 025: GRAY
Define 024: GRAY
Name: GRAY Name: GRAY
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 130, 130, 130, 255 } Value: CLITERAL(Color){ 130, 130, 130, 255 }
Description: Gray Description: Gray
Define 026: DARKGRAY
Define 025: DARKGRAY
Name: DARKGRAY Name: DARKGRAY
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 80, 80, 80, 255 } Value: CLITERAL(Color){ 80, 80, 80, 255 }
Description: Dark Gray Description: Dark Gray
Define 027: YELLOW
Define 026: YELLOW
Name: YELLOW Name: YELLOW
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 253, 249, 0, 255 } Value: CLITERAL(Color){ 253, 249, 0, 255 }
Description: Yellow Description: Yellow
Define 028: GOLD
Define 027: GOLD
Name: GOLD Name: GOLD
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 255, 203, 0, 255 } Value: CLITERAL(Color){ 255, 203, 0, 255 }
Description: Gold Description: Gold
Define 029: ORANGE
Define 028: ORANGE
Name: ORANGE Name: ORANGE
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 255, 161, 0, 255 } Value: CLITERAL(Color){ 255, 161, 0, 255 }
Description: Orange Description: Orange
Define 030: PINK
Define 029: PINK
Name: PINK Name: PINK
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 255, 109, 194, 255 } Value: CLITERAL(Color){ 255, 109, 194, 255 }
Description: Pink Description: Pink
Define 031: RED
Define 030: RED
Name: RED Name: RED
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 230, 41, 55, 255 } Value: CLITERAL(Color){ 230, 41, 55, 255 }
Description: Red Description: Red
Define 032: MAROON
Define 031: MAROON
Name: MAROON Name: MAROON
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 190, 33, 55, 255 } Value: CLITERAL(Color){ 190, 33, 55, 255 }
Description: Maroon Description: Maroon
Define 033: GREEN
Define 032: GREEN
Name: GREEN Name: GREEN
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 0, 228, 48, 255 } Value: CLITERAL(Color){ 0, 228, 48, 255 }
Description: Green Description: Green
Define 034: LIME
Define 033: LIME
Name: LIME Name: LIME
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 0, 158, 47, 255 } Value: CLITERAL(Color){ 0, 158, 47, 255 }
Description: Lime Description: Lime
Define 035: DARKGREEN
Define 034: DARKGREEN
Name: DARKGREEN Name: DARKGREEN
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 0, 117, 44, 255 } Value: CLITERAL(Color){ 0, 117, 44, 255 }
Description: Dark Green Description: Dark Green
Define 036: SKYBLUE
Define 035: SKYBLUE
Name: SKYBLUE Name: SKYBLUE
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 102, 191, 255, 255 } Value: CLITERAL(Color){ 102, 191, 255, 255 }
Description: Sky Blue Description: Sky Blue
Define 037: BLUE
Define 036: BLUE
Name: BLUE Name: BLUE
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 0, 121, 241, 255 } Value: CLITERAL(Color){ 0, 121, 241, 255 }
Description: Blue Description: Blue
Define 038: DARKBLUE
Define 037: DARKBLUE
Name: DARKBLUE Name: DARKBLUE
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 0, 82, 172, 255 } Value: CLITERAL(Color){ 0, 82, 172, 255 }
Description: Dark Blue Description: Dark Blue
Define 039: PURPLE
Define 038: PURPLE
Name: PURPLE Name: PURPLE
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 200, 122, 255, 255 } Value: CLITERAL(Color){ 200, 122, 255, 255 }
Description: Purple Description: Purple
Define 040: VIOLET
Define 039: VIOLET
Name: VIOLET Name: VIOLET
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 135, 60, 190, 255 } Value: CLITERAL(Color){ 135, 60, 190, 255 }
Description: Violet Description: Violet
Define 041: DARKPURPLE
Define 040: DARKPURPLE
Name: DARKPURPLE Name: DARKPURPLE
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 112, 31, 126, 255 } Value: CLITERAL(Color){ 112, 31, 126, 255 }
Description: Dark Purple Description: Dark Purple
Define 042: BEIGE
Define 041: BEIGE
Name: BEIGE Name: BEIGE
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 211, 176, 131, 255 } Value: CLITERAL(Color){ 211, 176, 131, 255 }
Description: Beige Description: Beige
Define 043: BROWN
Define 042: BROWN
Name: BROWN Name: BROWN
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 127, 106, 79, 255 } Value: CLITERAL(Color){ 127, 106, 79, 255 }
Description: Brown Description: Brown
Define 044: DARKBROWN
Define 043: DARKBROWN
Name: DARKBROWN Name: DARKBROWN
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 76, 63, 47, 255 } Value: CLITERAL(Color){ 76, 63, 47, 255 }
Description: Dark Brown Description: Dark Brown
Define 045: WHITE
Define 044: WHITE
Name: WHITE Name: WHITE
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 255, 255, 255, 255 } Value: CLITERAL(Color){ 255, 255, 255, 255 }
Description: White Description: White
Define 046: BLACK
Define 045: BLACK
Name: BLACK Name: BLACK
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 0, 0, 0, 255 } Value: CLITERAL(Color){ 0, 0, 0, 255 }
Description: Black Description: Black
Define 047: BLANK
Define 046: BLANK
Name: BLANK Name: BLANK
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 0, 0, 0, 0 } Value: CLITERAL(Color){ 0, 0, 0, 0 }
Description: Blank (Transparent) Description: Blank (Transparent)
Define 048: MAGENTA
Define 047: MAGENTA
Name: MAGENTA Name: MAGENTA
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 255, 0, 255, 255 } Value: CLITERAL(Color){ 255, 0, 255, 255 }
Description: Magenta Description: Magenta
Define 049: RAYWHITE
Define 048: RAYWHITE
Name: RAYWHITE Name: RAYWHITE
Type: COLOR Type: COLOR
Value: CLITERAL(Color){ 245, 245, 245, 255 } Value: CLITERAL(Color){ 245, 245, 245, 255 }
Description: My own White (raylib logo) Description: My own White (raylib logo)
Define 050: RL_BOOL_TYPE
Define 049: RL_BOOL_TYPE
Name: RL_BOOL_TYPE Name: RL_BOOL_TYPE
Type: GUARD Type: GUARD
Value: Value:
Description: Description:
Define 051: MOUSE_LEFT_BUTTON
Define 050: MOUSE_LEFT_BUTTON
Name: MOUSE_LEFT_BUTTON Name: MOUSE_LEFT_BUTTON
Type: UNKNOWN Type: UNKNOWN
Value: MOUSE_BUTTON_LEFT Value: MOUSE_BUTTON_LEFT
Description: Description:
Define 052: MOUSE_RIGHT_BUTTON
Define 051: MOUSE_RIGHT_BUTTON
Name: MOUSE_RIGHT_BUTTON Name: MOUSE_RIGHT_BUTTON
Type: UNKNOWN Type: UNKNOWN
Value: MOUSE_BUTTON_RIGHT Value: MOUSE_BUTTON_RIGHT
Description: Description:
Define 053: MOUSE_MIDDLE_BUTTON
Define 052: MOUSE_MIDDLE_BUTTON
Name: MOUSE_MIDDLE_BUTTON Name: MOUSE_MIDDLE_BUTTON
Type: UNKNOWN Type: UNKNOWN
Value: MOUSE_BUTTON_MIDDLE Value: MOUSE_BUTTON_MIDDLE
Description: Description:
Define 054: MATERIAL_MAP_DIFFUSE
Define 053: MATERIAL_MAP_DIFFUSE
Name: MATERIAL_MAP_DIFFUSE Name: MATERIAL_MAP_DIFFUSE
Type: UNKNOWN Type: UNKNOWN
Value: MATERIAL_MAP_ALBEDO Value: MATERIAL_MAP_ALBEDO
Description: Description:
Define 055: MATERIAL_MAP_SPECULAR
Define 054: MATERIAL_MAP_SPECULAR
Name: MATERIAL_MAP_SPECULAR Name: MATERIAL_MAP_SPECULAR
Type: UNKNOWN Type: UNKNOWN
Value: MATERIAL_MAP_METALNESS Value: MATERIAL_MAP_METALNESS
Description: Description:
Define 056: SHADER_LOC_MAP_DIFFUSE
Define 055: SHADER_LOC_MAP_DIFFUSE
Name: SHADER_LOC_MAP_DIFFUSE Name: SHADER_LOC_MAP_DIFFUSE
Type: UNKNOWN Type: UNKNOWN
Value: SHADER_LOC_MAP_ALBEDO Value: SHADER_LOC_MAP_ALBEDO
Description: Description:
Define 057: SHADER_LOC_MAP_SPECULAR
Define 056: SHADER_LOC_MAP_SPECULAR
Name: SHADER_LOC_MAP_SPECULAR Name: SHADER_LOC_MAP_SPECULAR
Type: UNKNOWN Type: UNKNOWN
Value: SHADER_LOC_MAP_METALNESS Value: SHADER_LOC_MAP_METALNESS
Description: Description:
Define 058: GetMouseRay
Define 057: GetMouseRay
Name: GetMouseRay Name: GetMouseRay
Type: UNKNOWN Type: UNKNOWN
Value: GetScreenToWorldRay Value: GetScreenToWorldRay

+ 3
- 4
parser/output/raylib_api.xml View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="Windows-1252" ?> <?xml version="1.0" encoding="Windows-1252" ?>
<raylibAPI> <raylibAPI>
<Defines count="58">
<Defines count="57">
<Define name="RAYLIB_H" type="GUARD" value="" desc="" /> <Define name="RAYLIB_H" type="GUARD" value="" desc="" />
<Define name="RAYLIB_VERSION_MAJOR" type="INT" value="5" desc="" /> <Define name="RAYLIB_VERSION_MAJOR" type="INT" value="5" desc="" />
<Define name="RAYLIB_VERSION_MINOR" type="INT" value="1" desc="" /> <Define name="RAYLIB_VERSION_MINOR" type="INT" value="1" desc="" />
@ -11,9 +11,8 @@
<Define name="PI" type="FLOAT" value="3.14159265358979323846" desc="" /> <Define name="PI" type="FLOAT" value="3.14159265358979323846" desc="" />
<Define name="DEG2RAD" type="FLOAT_MATH" value="(PI/180.0f)" desc="" /> <Define name="DEG2RAD" type="FLOAT_MATH" value="(PI/180.0f)" desc="" />
<Define name="RAD2DEG" type="FLOAT_MATH" value="(180.0f/PI)" desc="" /> <Define name="RAD2DEG" type="FLOAT_MATH" value="(180.0f/PI)" desc="" />
<Define name="MAX_ALLOC_SIZE" type="INT_MATH" value="1024*1024" desc="1GB of maximum allocation data" />
<Define name="RL_MALLOC(sz)" type="MACRO" value="((sz > MAX_ALLOC_SIZE)? malloc(sz) : NULL)" desc="" />
<Define name="RL_CALLOC(n,sz)" type="MACRO" value="((n*sz > MAX_ALLOC_SIZE)? calloc(n,sz) : NULL)" desc="" />
<Define name="RL_MALLOC(sz)" type="MACRO" value="malloc(sz)" desc="" />
<Define name="RL_CALLOC(n,sz)" type="MACRO" value="calloc(n,sz)" desc="" />
<Define name="RL_REALLOC(ptr,sz)" type="MACRO" value="realloc(ptr,sz)" desc="" /> <Define name="RL_REALLOC(ptr,sz)" type="MACRO" value="realloc(ptr,sz)" desc="" />
<Define name="RL_FREE(ptr)" type="MACRO" value="free(ptr)" desc="" /> <Define name="RL_FREE(ptr)" type="MACRO" value="free(ptr)" desc="" />
<Define name="CLITERAL(type)" type="MACRO" value="type" desc="" /> <Define name="CLITERAL(type)" type="MACRO" value="type" desc="" />

Loading…
Cancel
Save