rename Font into RLFont
prevent conflict with Xlib.h
This commit is contained in:
parent
521ceeb174
commit
19cd976000
4 changed files with 327 additions and 329 deletions
|
|
@ -690,8 +690,8 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"name": "Font",
|
||||
"description": "Font, font texture and GlyphInfo array data",
|
||||
"name": "RLFont",
|
||||
"description": "RLFont, font texture and GlyphInfo array data",
|
||||
"fields": [
|
||||
{
|
||||
"type": "int",
|
||||
|
|
@ -2818,7 +2818,7 @@
|
|||
},
|
||||
{
|
||||
"name": "FontType",
|
||||
"description": "Font type, defines generation method",
|
||||
"description": "RLFont type, defines generation method",
|
||||
"values": [
|
||||
{
|
||||
"name": "FONT_DEFAULT",
|
||||
|
|
@ -7126,7 +7126,7 @@
|
|||
"returnType": "Image",
|
||||
"params": [
|
||||
{
|
||||
"type": "Font",
|
||||
"type": "RLFont",
|
||||
"name": "font"
|
||||
},
|
||||
{
|
||||
|
|
@ -7999,7 +7999,7 @@
|
|||
"name": "dst"
|
||||
},
|
||||
{
|
||||
"type": "Font",
|
||||
"type": "RLFont",
|
||||
"name": "font"
|
||||
},
|
||||
{
|
||||
|
|
@ -8572,13 +8572,13 @@
|
|||
},
|
||||
{
|
||||
"name": "GetFontDefault",
|
||||
"description": "Get the default Font",
|
||||
"returnType": "Font"
|
||||
"description": "Get the default RLFont",
|
||||
"returnType": "RLFont"
|
||||
},
|
||||
{
|
||||
"name": "LoadFont",
|
||||
"description": "Load font from file into GPU memory (VRAM)",
|
||||
"returnType": "Font",
|
||||
"returnType": "RLFont",
|
||||
"params": [
|
||||
{
|
||||
"type": "const char *",
|
||||
|
|
@ -8589,7 +8589,7 @@
|
|||
{
|
||||
"name": "LoadFontEx",
|
||||
"description": "Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character setFont",
|
||||
"returnType": "Font",
|
||||
"returnType": "RLFont",
|
||||
"params": [
|
||||
{
|
||||
"type": "const char *",
|
||||
|
|
@ -8612,7 +8612,7 @@
|
|||
{
|
||||
"name": "LoadFontFromImage",
|
||||
"description": "Load font from Image (XNA style)",
|
||||
"returnType": "Font",
|
||||
"returnType": "RLFont",
|
||||
"params": [
|
||||
{
|
||||
"type": "Image",
|
||||
|
|
@ -8631,7 +8631,7 @@
|
|||
{
|
||||
"name": "LoadFontFromMemory",
|
||||
"description": "Load font from memory buffer, fileType refers to extension: i.e. '.ttf'",
|
||||
"returnType": "Font",
|
||||
"returnType": "RLFont",
|
||||
"params": [
|
||||
{
|
||||
"type": "const char *",
|
||||
|
|
@ -8665,7 +8665,7 @@
|
|||
"returnType": "bool",
|
||||
"params": [
|
||||
{
|
||||
"type": "Font",
|
||||
"type": "RLFont",
|
||||
"name": "font"
|
||||
}
|
||||
]
|
||||
|
|
@ -8753,7 +8753,7 @@
|
|||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "Font",
|
||||
"type": "RLFont",
|
||||
"name": "font"
|
||||
}
|
||||
]
|
||||
|
|
@ -8764,7 +8764,7 @@
|
|||
"returnType": "bool",
|
||||
"params": [
|
||||
{
|
||||
"type": "Font",
|
||||
"type": "RLFont",
|
||||
"name": "font"
|
||||
},
|
||||
{
|
||||
|
|
@ -8821,7 +8821,7 @@
|
|||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "Font",
|
||||
"type": "RLFont",
|
||||
"name": "font"
|
||||
},
|
||||
{
|
||||
|
|
@ -8848,11 +8848,11 @@
|
|||
},
|
||||
{
|
||||
"name": "DrawTextPro",
|
||||
"description": "Draw text using Font and pro parameters (rotation)",
|
||||
"description": "Draw text using RLFont and pro parameters (rotation)",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "Font",
|
||||
"type": "RLFont",
|
||||
"name": "font"
|
||||
},
|
||||
{
|
||||
|
|
@ -8891,7 +8891,7 @@
|
|||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "Font",
|
||||
"type": "RLFont",
|
||||
"name": "font"
|
||||
},
|
||||
{
|
||||
|
|
@ -8918,7 +8918,7 @@
|
|||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "Font",
|
||||
"type": "RLFont",
|
||||
"name": "font"
|
||||
},
|
||||
{
|
||||
|
|
@ -8975,11 +8975,11 @@
|
|||
},
|
||||
{
|
||||
"name": "MeasureTextEx",
|
||||
"description": "Measure string size for Font",
|
||||
"description": "Measure string size for RLFont",
|
||||
"returnType": "Vector2",
|
||||
"params": [
|
||||
{
|
||||
"type": "Font",
|
||||
"type": "RLFont",
|
||||
"name": "font"
|
||||
},
|
||||
{
|
||||
|
|
@ -9002,7 +9002,7 @@
|
|||
"returnType": "int",
|
||||
"params": [
|
||||
{
|
||||
"type": "Font",
|
||||
"type": "RLFont",
|
||||
"name": "font"
|
||||
},
|
||||
{
|
||||
|
|
@ -9017,7 +9017,7 @@
|
|||
"returnType": "GlyphInfo",
|
||||
"params": [
|
||||
{
|
||||
"type": "Font",
|
||||
"type": "RLFont",
|
||||
"name": "font"
|
||||
},
|
||||
{
|
||||
|
|
@ -9032,7 +9032,7 @@
|
|||
"returnType": "Rectangle",
|
||||
"params": [
|
||||
{
|
||||
"type": "Font",
|
||||
"type": "RLFont",
|
||||
"name": "font"
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -690,8 +690,8 @@ return {
|
|||
}
|
||||
},
|
||||
{
|
||||
name = "Font",
|
||||
description = "Font, font texture and GlyphInfo array data",
|
||||
name = "RLFont",
|
||||
description = "RLFont, font texture and GlyphInfo array data",
|
||||
fields = {
|
||||
{
|
||||
type = "int",
|
||||
|
|
@ -2818,7 +2818,7 @@ return {
|
|||
},
|
||||
{
|
||||
name = "FontType",
|
||||
description = "Font type, defines generation method",
|
||||
description = "RLFont type, defines generation method",
|
||||
values = {
|
||||
{
|
||||
name = "FONT_DEFAULT",
|
||||
|
|
@ -5490,7 +5490,7 @@ return {
|
|||
description = "Create an image from text (custom sprite font)",
|
||||
returnType = "Image",
|
||||
params = {
|
||||
{type = "Font", name = "font"},
|
||||
{type = "RLFont", name = "font"},
|
||||
{type = "const char *", name = "text"},
|
||||
{type = "float", name = "fontSize"},
|
||||
{type = "float", name = "spacing"},
|
||||
|
|
@ -5955,7 +5955,7 @@ return {
|
|||
returnType = "void",
|
||||
params = {
|
||||
{type = "Image *", name = "dst"},
|
||||
{type = "Font", name = "font"},
|
||||
{type = "RLFont", name = "font"},
|
||||
{type = "const char *", name = "text"},
|
||||
{type = "Vector2", name = "position"},
|
||||
{type = "float", name = "fontSize"},
|
||||
|
|
@ -6280,13 +6280,13 @@ return {
|
|||
},
|
||||
{
|
||||
name = "GetFontDefault",
|
||||
description = "Get the default Font",
|
||||
returnType = "Font"
|
||||
description = "Get the default RLFont",
|
||||
returnType = "RLFont"
|
||||
},
|
||||
{
|
||||
name = "LoadFont",
|
||||
description = "Load font from file into GPU memory (VRAM)",
|
||||
returnType = "Font",
|
||||
returnType = "RLFont",
|
||||
params = {
|
||||
{type = "const char *", name = "fileName"}
|
||||
}
|
||||
|
|
@ -6294,7 +6294,7 @@ return {
|
|||
{
|
||||
name = "LoadFontEx",
|
||||
description = "Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character setFont",
|
||||
returnType = "Font",
|
||||
returnType = "RLFont",
|
||||
params = {
|
||||
{type = "const char *", name = "fileName"},
|
||||
{type = "int", name = "fontSize"},
|
||||
|
|
@ -6305,7 +6305,7 @@ return {
|
|||
{
|
||||
name = "LoadFontFromImage",
|
||||
description = "Load font from Image (XNA style)",
|
||||
returnType = "Font",
|
||||
returnType = "RLFont",
|
||||
params = {
|
||||
{type = "Image", name = "image"},
|
||||
{type = "Color", name = "key"},
|
||||
|
|
@ -6315,7 +6315,7 @@ return {
|
|||
{
|
||||
name = "LoadFontFromMemory",
|
||||
description = "Load font from memory buffer, fileType refers to extension: i.e. '.ttf'",
|
||||
returnType = "Font",
|
||||
returnType = "RLFont",
|
||||
params = {
|
||||
{type = "const char *", name = "fileType"},
|
||||
{type = "const unsigned char *", name = "fileData"},
|
||||
|
|
@ -6330,7 +6330,7 @@ return {
|
|||
description = "Check if a font is ready",
|
||||
returnType = "bool",
|
||||
params = {
|
||||
{type = "Font", name = "font"}
|
||||
{type = "RLFont", name = "font"}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -6373,7 +6373,7 @@ return {
|
|||
description = "Unload font from GPU memory (VRAM)",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "Font", name = "font"}
|
||||
{type = "RLFont", name = "font"}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -6381,7 +6381,7 @@ return {
|
|||
description = "Export font as code file, returns true on success",
|
||||
returnType = "bool",
|
||||
params = {
|
||||
{type = "Font", name = "font"},
|
||||
{type = "RLFont", name = "font"},
|
||||
{type = "const char *", name = "fileName"}
|
||||
}
|
||||
},
|
||||
|
|
@ -6411,7 +6411,7 @@ return {
|
|||
description = "Draw text using font and additional parameters",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "Font", name = "font"},
|
||||
{type = "RLFont", name = "font"},
|
||||
{type = "const char *", name = "text"},
|
||||
{type = "Vector2", name = "position"},
|
||||
{type = "float", name = "fontSize"},
|
||||
|
|
@ -6421,10 +6421,10 @@ return {
|
|||
},
|
||||
{
|
||||
name = "DrawTextPro",
|
||||
description = "Draw text using Font and pro parameters (rotation)",
|
||||
description = "Draw text using RLFont and pro parameters (rotation)",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "Font", name = "font"},
|
||||
{type = "RLFont", name = "font"},
|
||||
{type = "const char *", name = "text"},
|
||||
{type = "Vector2", name = "position"},
|
||||
{type = "Vector2", name = "origin"},
|
||||
|
|
@ -6439,7 +6439,7 @@ return {
|
|||
description = "Draw one character (codepoint)",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "Font", name = "font"},
|
||||
{type = "RLFont", name = "font"},
|
||||
{type = "int", name = "codepoint"},
|
||||
{type = "Vector2", name = "position"},
|
||||
{type = "float", name = "fontSize"},
|
||||
|
|
@ -6451,7 +6451,7 @@ return {
|
|||
description = "Draw multiple character (codepoint)",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "Font", name = "font"},
|
||||
{type = "RLFont", name = "font"},
|
||||
{type = "const int *", name = "codepoints"},
|
||||
{type = "int", name = "codepointCount"},
|
||||
{type = "Vector2", name = "position"},
|
||||
|
|
@ -6479,10 +6479,10 @@ return {
|
|||
},
|
||||
{
|
||||
name = "MeasureTextEx",
|
||||
description = "Measure string size for Font",
|
||||
description = "Measure string size for RLFont",
|
||||
returnType = "Vector2",
|
||||
params = {
|
||||
{type = "Font", name = "font"},
|
||||
{type = "RLFont", name = "font"},
|
||||
{type = "const char *", name = "text"},
|
||||
{type = "float", name = "fontSize"},
|
||||
{type = "float", name = "spacing"}
|
||||
|
|
@ -6493,7 +6493,7 @@ return {
|
|||
description = "Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found",
|
||||
returnType = "int",
|
||||
params = {
|
||||
{type = "Font", name = "font"},
|
||||
{type = "RLFont", name = "font"},
|
||||
{type = "int", name = "codepoint"}
|
||||
}
|
||||
},
|
||||
|
|
@ -6502,7 +6502,7 @@ return {
|
|||
description = "Get glyph font info data for a codepoint (unicode character), fallback to '?' if not found",
|
||||
returnType = "GlyphInfo",
|
||||
params = {
|
||||
{type = "Font", name = "font"},
|
||||
{type = "RLFont", name = "font"},
|
||||
{type = "int", name = "codepoint"}
|
||||
}
|
||||
},
|
||||
|
|
@ -6511,7 +6511,7 @@ return {
|
|||
description = "Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found",
|
||||
returnType = "Rectangle",
|
||||
params = {
|
||||
{type = "Font", name = "font"},
|
||||
{type = "RLFont", name = "font"},
|
||||
{type = "int", name = "codepoint"}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -374,9 +374,9 @@ Struct 11: GlyphInfo (5 fields)
|
|||
Field[3]: int offsetY // Character offset Y when drawing
|
||||
Field[4]: int advanceX // Character advance position X
|
||||
Field[5]: Image image // Character image data
|
||||
Struct 12: Font (6 fields)
|
||||
Name: Font
|
||||
Description: Font, font texture and GlyphInfo array data
|
||||
Struct 12: RLFont (6 fields)
|
||||
Name: RLFont
|
||||
Description: RLFont, font texture and GlyphInfo array data
|
||||
Field[1]: int baseSize // Base size (default chars height)
|
||||
Field[2]: int glyphCount // Number of glyph characters
|
||||
Field[3]: int glyphPadding // Padding around the glyph characters
|
||||
|
|
@ -890,7 +890,7 @@ Enum 15: CubemapLayout (6 values)
|
|||
Value[CUBEMAP_LAYOUT_PANORAMA]: 5
|
||||
Enum 16: FontType (3 values)
|
||||
Name: FontType
|
||||
Description: Font type, defines generation method
|
||||
Description: RLFont type, defines generation method
|
||||
Value[FONT_DEFAULT]: 0
|
||||
Value[FONT_BITMAP]: 1
|
||||
Value[FONT_SDF]: 2
|
||||
|
|
@ -2751,7 +2751,7 @@ Function 291: ImageTextEx() (5 input parameters)
|
|||
Name: ImageTextEx
|
||||
Return type: Image
|
||||
Description: Create an image from text (custom sprite font)
|
||||
Param[1]: font (type: Font)
|
||||
Param[1]: font (type: RLFont)
|
||||
Param[2]: text (type: const char *)
|
||||
Param[3]: fontSize (type: float)
|
||||
Param[4]: spacing (type: float)
|
||||
|
|
@ -3075,7 +3075,7 @@ Function 338: ImageDrawTextEx() (7 input parameters)
|
|||
Return type: void
|
||||
Description: Draw text (custom sprite font) within an image (destination)
|
||||
Param[1]: dst (type: Image *)
|
||||
Param[2]: font (type: Font)
|
||||
Param[2]: font (type: RLFont)
|
||||
Param[3]: text (type: const char *)
|
||||
Param[4]: position (type: Vector2)
|
||||
Param[5]: fontSize (type: float)
|
||||
|
|
@ -3296,17 +3296,17 @@ Function 372: GetPixelDataSize() (3 input parameters)
|
|||
Param[3]: format (type: int)
|
||||
Function 373: GetFontDefault() (0 input parameters)
|
||||
Name: GetFontDefault
|
||||
Return type: Font
|
||||
Description: Get the default Font
|
||||
Return type: RLFont
|
||||
Description: Get the default RLFont
|
||||
No input parameters
|
||||
Function 374: LoadFont() (1 input parameters)
|
||||
Name: LoadFont
|
||||
Return type: Font
|
||||
Return type: RLFont
|
||||
Description: Load font from file into GPU memory (VRAM)
|
||||
Param[1]: fileName (type: const char *)
|
||||
Function 375: LoadFontEx() (4 input parameters)
|
||||
Name: LoadFontEx
|
||||
Return type: Font
|
||||
Return type: RLFont
|
||||
Description: Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character setFont
|
||||
Param[1]: fileName (type: const char *)
|
||||
Param[2]: fontSize (type: int)
|
||||
|
|
@ -3314,14 +3314,14 @@ Function 375: LoadFontEx() (4 input parameters)
|
|||
Param[4]: codepointCount (type: int)
|
||||
Function 376: LoadFontFromImage() (3 input parameters)
|
||||
Name: LoadFontFromImage
|
||||
Return type: Font
|
||||
Return type: RLFont
|
||||
Description: Load font from Image (XNA style)
|
||||
Param[1]: image (type: Image)
|
||||
Param[2]: key (type: Color)
|
||||
Param[3]: firstChar (type: int)
|
||||
Function 377: LoadFontFromMemory() (6 input parameters)
|
||||
Name: LoadFontFromMemory
|
||||
Return type: Font
|
||||
Return type: RLFont
|
||||
Description: Load font from memory buffer, fileType refers to extension: i.e. '.ttf'
|
||||
Param[1]: fileType (type: const char *)
|
||||
Param[2]: fileData (type: const unsigned char *)
|
||||
|
|
@ -3333,7 +3333,7 @@ Function 378: IsFontReady() (1 input parameters)
|
|||
Name: IsFontReady
|
||||
Return type: bool
|
||||
Description: Check if a font is ready
|
||||
Param[1]: font (type: Font)
|
||||
Param[1]: font (type: RLFont)
|
||||
Function 379: LoadFontData() (6 input parameters)
|
||||
Name: LoadFontData
|
||||
Return type: GlyphInfo *
|
||||
|
|
@ -3364,12 +3364,12 @@ Function 382: UnloadFont() (1 input parameters)
|
|||
Name: UnloadFont
|
||||
Return type: void
|
||||
Description: Unload font from GPU memory (VRAM)
|
||||
Param[1]: font (type: Font)
|
||||
Param[1]: font (type: RLFont)
|
||||
Function 383: ExportFontAsCode() (2 input parameters)
|
||||
Name: ExportFontAsCode
|
||||
Return type: bool
|
||||
Description: Export font as code file, returns true on success
|
||||
Param[1]: font (type: Font)
|
||||
Param[1]: font (type: RLFont)
|
||||
Param[2]: fileName (type: const char *)
|
||||
Function 384: DrawFPS() (2 input parameters)
|
||||
Name: DrawFPS
|
||||
|
|
@ -3390,7 +3390,7 @@ Function 386: DrawTextEx() (6 input parameters)
|
|||
Name: DrawTextEx
|
||||
Return type: void
|
||||
Description: Draw text using font and additional parameters
|
||||
Param[1]: font (type: Font)
|
||||
Param[1]: font (type: RLFont)
|
||||
Param[2]: text (type: const char *)
|
||||
Param[3]: position (type: Vector2)
|
||||
Param[4]: fontSize (type: float)
|
||||
|
|
@ -3399,8 +3399,8 @@ Function 386: DrawTextEx() (6 input parameters)
|
|||
Function 387: DrawTextPro() (8 input parameters)
|
||||
Name: DrawTextPro
|
||||
Return type: void
|
||||
Description: Draw text using Font and pro parameters (rotation)
|
||||
Param[1]: font (type: Font)
|
||||
Description: Draw text using RLFont and pro parameters (rotation)
|
||||
Param[1]: font (type: RLFont)
|
||||
Param[2]: text (type: const char *)
|
||||
Param[3]: position (type: Vector2)
|
||||
Param[4]: origin (type: Vector2)
|
||||
|
|
@ -3412,7 +3412,7 @@ Function 388: DrawTextCodepoint() (5 input parameters)
|
|||
Name: DrawTextCodepoint
|
||||
Return type: void
|
||||
Description: Draw one character (codepoint)
|
||||
Param[1]: font (type: Font)
|
||||
Param[1]: font (type: RLFont)
|
||||
Param[2]: codepoint (type: int)
|
||||
Param[3]: position (type: Vector2)
|
||||
Param[4]: fontSize (type: float)
|
||||
|
|
@ -3421,7 +3421,7 @@ Function 389: DrawTextCodepoints() (7 input parameters)
|
|||
Name: DrawTextCodepoints
|
||||
Return type: void
|
||||
Description: Draw multiple character (codepoint)
|
||||
Param[1]: font (type: Font)
|
||||
Param[1]: font (type: RLFont)
|
||||
Param[2]: codepoints (type: const int *)
|
||||
Param[3]: codepointCount (type: int)
|
||||
Param[4]: position (type: Vector2)
|
||||
|
|
@ -3442,8 +3442,8 @@ Function 391: MeasureText() (2 input parameters)
|
|||
Function 392: MeasureTextEx() (4 input parameters)
|
||||
Name: MeasureTextEx
|
||||
Return type: Vector2
|
||||
Description: Measure string size for Font
|
||||
Param[1]: font (type: Font)
|
||||
Description: Measure string size for RLFont
|
||||
Param[1]: font (type: RLFont)
|
||||
Param[2]: text (type: const char *)
|
||||
Param[3]: fontSize (type: float)
|
||||
Param[4]: spacing (type: float)
|
||||
|
|
@ -3451,19 +3451,19 @@ Function 393: GetGlyphIndex() (2 input parameters)
|
|||
Name: GetGlyphIndex
|
||||
Return type: int
|
||||
Description: Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found
|
||||
Param[1]: font (type: Font)
|
||||
Param[1]: font (type: RLFont)
|
||||
Param[2]: codepoint (type: int)
|
||||
Function 394: GetGlyphInfo() (2 input parameters)
|
||||
Name: GetGlyphInfo
|
||||
Return type: GlyphInfo
|
||||
Description: Get glyph font info data for a codepoint (unicode character), fallback to '?' if not found
|
||||
Param[1]: font (type: Font)
|
||||
Param[1]: font (type: RLFont)
|
||||
Param[2]: codepoint (type: int)
|
||||
Function 395: GetGlyphAtlasRec() (2 input parameters)
|
||||
Name: GetGlyphAtlasRec
|
||||
Return type: Rectangle
|
||||
Description: Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found
|
||||
Param[1]: font (type: Font)
|
||||
Param[1]: font (type: RLFont)
|
||||
Param[2]: codepoint (type: int)
|
||||
Function 396: LoadUTF8() (2 input parameters)
|
||||
Name: LoadUTF8
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@
|
|||
<Field type="int" name="advanceX" desc="Character advance position X" />
|
||||
<Field type="Image" name="image" desc="Character image data" />
|
||||
</Struct>
|
||||
<Struct name="Font" fieldCount="6" desc="Font, font texture and GlyphInfo array data">
|
||||
<Struct name="RLFont" fieldCount="6" desc="RLFont, font texture and GlyphInfo array data">
|
||||
<Field type="int" name="baseSize" desc="Base size (default chars height)" />
|
||||
<Field type="int" name="glyphCount" desc="Number of glyph characters" />
|
||||
<Field type="int" name="glyphPadding" desc="Padding around the glyph characters" />
|
||||
|
|
@ -597,7 +597,7 @@
|
|||
<Value name="CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE" integer="4" desc="Layout is defined by a 4x3 cross with cubemap faces" />
|
||||
<Value name="CUBEMAP_LAYOUT_PANORAMA" integer="5" desc="Layout is defined by a panorama image (equirrectangular map)" />
|
||||
</Enum>
|
||||
<Enum name="FontType" valueCount="3" desc="Font type, defines generation method">
|
||||
<Enum name="FontType" valueCount="3" desc="RLFont type, defines generation method">
|
||||
<Value name="FONT_DEFAULT" integer="0" desc="Default font generation, anti-aliased" />
|
||||
<Value name="FONT_BITMAP" integer="1" desc="Bitmap font generation, no anti-aliasing" />
|
||||
<Value name="FONT_SDF" integer="2" desc="SDF font generation, requires external shader" />
|
||||
|
|
@ -1783,7 +1783,7 @@
|
|||
<Param type="Color" name="color" desc="" />
|
||||
</Function>
|
||||
<Function name="ImageTextEx" retType="Image" paramCount="5" desc="Create an image from text (custom sprite font)">
|
||||
<Param type="Font" name="font" desc="" />
|
||||
<Param type="RLFont" name="font" desc="" />
|
||||
<Param type="const char *" name="text" desc="" />
|
||||
<Param type="float" name="fontSize" desc="" />
|
||||
<Param type="float" name="spacing" desc="" />
|
||||
|
|
@ -2013,7 +2013,7 @@
|
|||
</Function>
|
||||
<Function name="ImageDrawTextEx" retType="void" paramCount="7" desc="Draw text (custom sprite font) within an image (destination)">
|
||||
<Param type="Image *" name="dst" desc="" />
|
||||
<Param type="Font" name="font" desc="" />
|
||||
<Param type="RLFont" name="font" desc="" />
|
||||
<Param type="const char *" name="text" desc="" />
|
||||
<Param type="Vector2" name="position" desc="" />
|
||||
<Param type="float" name="fontSize" desc="" />
|
||||
|
|
@ -2165,23 +2165,23 @@
|
|||
<Param type="int" name="height" desc="" />
|
||||
<Param type="int" name="format" desc="" />
|
||||
</Function>
|
||||
<Function name="GetFontDefault" retType="Font" paramCount="0" desc="Get the default Font">
|
||||
<Function name="GetFontDefault" retType="RLFont" paramCount="0" desc="Get the default RLFont">
|
||||
</Function>
|
||||
<Function name="LoadFont" retType="Font" paramCount="1" desc="Load font from file into GPU memory (VRAM)">
|
||||
<Function name="LoadFont" retType="RLFont" paramCount="1" desc="Load font from file into GPU memory (VRAM)">
|
||||
<Param type="const char *" name="fileName" desc="" />
|
||||
</Function>
|
||||
<Function name="LoadFontEx" retType="Font" paramCount="4" desc="Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character setFont">
|
||||
<Function name="LoadFontEx" retType="RLFont" paramCount="4" desc="Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character setFont">
|
||||
<Param type="const char *" name="fileName" desc="" />
|
||||
<Param type="int" name="fontSize" desc="" />
|
||||
<Param type="int *" name="codepoints" desc="" />
|
||||
<Param type="int" name="codepointCount" desc="" />
|
||||
</Function>
|
||||
<Function name="LoadFontFromImage" retType="Font" paramCount="3" desc="Load font from Image (XNA style)">
|
||||
<Function name="LoadFontFromImage" retType="RLFont" paramCount="3" desc="Load font from Image (XNA style)">
|
||||
<Param type="Image" name="image" desc="" />
|
||||
<Param type="Color" name="key" desc="" />
|
||||
<Param type="int" name="firstChar" desc="" />
|
||||
</Function>
|
||||
<Function name="LoadFontFromMemory" retType="Font" paramCount="6" desc="Load font from memory buffer, fileType refers to extension: i.e. '.ttf'">
|
||||
<Function name="LoadFontFromMemory" retType="RLFont" paramCount="6" desc="Load font from memory buffer, fileType refers to extension: i.e. '.ttf'">
|
||||
<Param type="const char *" name="fileType" desc="" />
|
||||
<Param type="const unsigned char *" name="fileData" desc="" />
|
||||
<Param type="int" name="dataSize" desc="" />
|
||||
|
|
@ -2190,7 +2190,7 @@
|
|||
<Param type="int" name="codepointCount" desc="" />
|
||||
</Function>
|
||||
<Function name="IsFontReady" retType="bool" paramCount="1" desc="Check if a font is ready">
|
||||
<Param type="Font" name="font" desc="" />
|
||||
<Param type="RLFont" name="font" desc="" />
|
||||
</Function>
|
||||
<Function name="LoadFontData" retType="GlyphInfo *" paramCount="6" desc="Load font data for further use">
|
||||
<Param type="const unsigned char *" name="fileData" desc="" />
|
||||
|
|
@ -2213,10 +2213,10 @@
|
|||
<Param type="int" name="glyphCount" desc="" />
|
||||
</Function>
|
||||
<Function name="UnloadFont" retType="void" paramCount="1" desc="Unload font from GPU memory (VRAM)">
|
||||
<Param type="Font" name="font" desc="" />
|
||||
<Param type="RLFont" name="font" desc="" />
|
||||
</Function>
|
||||
<Function name="ExportFontAsCode" retType="bool" paramCount="2" desc="Export font as code file, returns true on success">
|
||||
<Param type="Font" name="font" desc="" />
|
||||
<Param type="RLFont" name="font" desc="" />
|
||||
<Param type="const char *" name="fileName" desc="" />
|
||||
</Function>
|
||||
<Function name="DrawFPS" retType="void" paramCount="2" desc="Draw current FPS">
|
||||
|
|
@ -2231,15 +2231,15 @@
|
|||
<Param type="Color" name="color" desc="" />
|
||||
</Function>
|
||||
<Function name="DrawTextEx" retType="void" paramCount="6" desc="Draw text using font and additional parameters">
|
||||
<Param type="Font" name="font" desc="" />
|
||||
<Param type="RLFont" name="font" desc="" />
|
||||
<Param type="const char *" name="text" desc="" />
|
||||
<Param type="Vector2" name="position" desc="" />
|
||||
<Param type="float" name="fontSize" desc="" />
|
||||
<Param type="float" name="spacing" desc="" />
|
||||
<Param type="Color" name="tint" desc="" />
|
||||
</Function>
|
||||
<Function name="DrawTextPro" retType="void" paramCount="8" desc="Draw text using Font and pro parameters (rotation)">
|
||||
<Param type="Font" name="font" desc="" />
|
||||
<Function name="DrawTextPro" retType="void" paramCount="8" desc="Draw text using RLFont and pro parameters (rotation)">
|
||||
<Param type="RLFont" name="font" desc="" />
|
||||
<Param type="const char *" name="text" desc="" />
|
||||
<Param type="Vector2" name="position" desc="" />
|
||||
<Param type="Vector2" name="origin" desc="" />
|
||||
|
|
@ -2249,14 +2249,14 @@
|
|||
<Param type="Color" name="tint" desc="" />
|
||||
</Function>
|
||||
<Function name="DrawTextCodepoint" retType="void" paramCount="5" desc="Draw one character (codepoint)">
|
||||
<Param type="Font" name="font" desc="" />
|
||||
<Param type="RLFont" name="font" desc="" />
|
||||
<Param type="int" name="codepoint" desc="" />
|
||||
<Param type="Vector2" name="position" desc="" />
|
||||
<Param type="float" name="fontSize" desc="" />
|
||||
<Param type="Color" name="tint" desc="" />
|
||||
</Function>
|
||||
<Function name="DrawTextCodepoints" retType="void" paramCount="7" desc="Draw multiple character (codepoint)">
|
||||
<Param type="Font" name="font" desc="" />
|
||||
<Param type="RLFont" name="font" desc="" />
|
||||
<Param type="const int *" name="codepoints" desc="" />
|
||||
<Param type="int" name="codepointCount" desc="" />
|
||||
<Param type="Vector2" name="position" desc="" />
|
||||
|
|
@ -2271,22 +2271,22 @@
|
|||
<Param type="const char *" name="text" desc="" />
|
||||
<Param type="int" name="fontSize" desc="" />
|
||||
</Function>
|
||||
<Function name="MeasureTextEx" retType="Vector2" paramCount="4" desc="Measure string size for Font">
|
||||
<Param type="Font" name="font" desc="" />
|
||||
<Function name="MeasureTextEx" retType="Vector2" paramCount="4" desc="Measure string size for RLFont">
|
||||
<Param type="RLFont" name="font" desc="" />
|
||||
<Param type="const char *" name="text" desc="" />
|
||||
<Param type="float" name="fontSize" desc="" />
|
||||
<Param type="float" name="spacing" desc="" />
|
||||
</Function>
|
||||
<Function name="GetGlyphIndex" retType="int" paramCount="2" desc="Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found">
|
||||
<Param type="Font" name="font" desc="" />
|
||||
<Param type="RLFont" name="font" desc="" />
|
||||
<Param type="int" name="codepoint" desc="" />
|
||||
</Function>
|
||||
<Function name="GetGlyphInfo" retType="GlyphInfo" paramCount="2" desc="Get glyph font info data for a codepoint (unicode character), fallback to '?' if not found">
|
||||
<Param type="Font" name="font" desc="" />
|
||||
<Param type="RLFont" name="font" desc="" />
|
||||
<Param type="int" name="codepoint" desc="" />
|
||||
</Function>
|
||||
<Function name="GetGlyphAtlasRec" retType="Rectangle" paramCount="2" desc="Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found">
|
||||
<Param type="Font" name="font" desc="" />
|
||||
<Param type="RLFont" name="font" desc="" />
|
||||
<Param type="int" name="codepoint" desc="" />
|
||||
</Function>
|
||||
<Function name="LoadUTF8" retType="char *" paramCount="2" desc="Load UTF-8 text encoded from codepoints array">
|
||||
|
|
|
|||
Loading…
Reference in a new issue