orx 1.16
Portable Game Engine
|
Macros | |
#define | orxFONT_KZ_ANSI "ansi" |
#define | orxFONT_KZ_ASCII "ascii" |
#define | orxFONT_KZ_CONFIG_CHARACTER_HEIGHT "CharacterHeight" |
#define | orxFONT_KZ_CONFIG_CHARACTER_LIST "CharacterList" |
#define | orxFONT_KZ_CONFIG_CHARACTER_PADDING "CharacterPadding" |
#define | orxFONT_KZ_CONFIG_CHARACTER_SIZE "CharacterSize" |
#define | orxFONT_KZ_CONFIG_CHARACTER_SPACING "CharacterSpacing" |
#define | orxFONT_KZ_CONFIG_CHARACTER_WIDTH_LIST "CharacterWidthList" |
#define | orxFONT_KZ_CONFIG_KEEP_IN_CACHE "KeepInCache" |
#define | orxFONT_KZ_CONFIG_SDF "SDF" |
#define | orxFONT_KZ_CONFIG_SHADER "Shader" |
#define | orxFONT_KZ_CONFIG_TEXTURE_NAME "Texture" |
#define | orxFONT_KZ_CONFIG_TEXTURE_ORIGIN "TextureOrigin" |
#define | orxFONT_KZ_CONFIG_TEXTURE_SIZE "TextureSize" |
#define | orxFONT_KZ_CONFIG_TYPEFACE "Typeface" |
#define | orxFONT_KZ_DEFAULT_FONT_NAME "orx:font:default" |
#define | orxFONT_KZ_DEFAULT_TEXTURE_NAME "orx:texture:font:default" |
#define | orxFONT_KZ_RESOURCE_GROUP "Font" |
#define | orxFONT_KZ_SDF_SHADER_NAME "orx:shader:font:sdf" |
Typedefs | |
typedef struct __orxFONT_t | orxFONT |
Functions | |
orxDLLAPI orxSTATUS orxFASTCALL | orxFont_ClearCache () |
orxDLLAPI orxFONT *orxFASTCALL | orxFont_Create () |
orxDLLAPI orxFONT *orxFASTCALL | orxFont_CreateFromConfig (const orxSTRING _zConfigID) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFont_Delete (orxFONT *_pstFont) |
orxDLLAPI void orxFASTCALL | orxFont_Exit () |
orxDLLAPI orxFONT *orxFASTCALL | orxFont_Get (const orxSTRING _zName) |
orxDLLAPI orxFLOAT orxFASTCALL | orxFont_GetCharacterHeight (const orxFONT *_pstFont) |
orxDLLAPI const orxSTRING orxFASTCALL | orxFont_GetCharacterList (const orxFONT *_pstFont) |
orxDLLAPI orxVECTOR *orxFASTCALL | orxFont_GetCharacterSpacing (const orxFONT *_pstFont, orxVECTOR *_pvSpacing) |
orxDLLAPI orxFLOAT orxFASTCALL | orxFont_GetCharacterWidth (const orxFONT *_pstFont, orxU32 _u32CharacterCodePoint) |
orxDLLAPI const orxCHARACTER_MAP *orxFASTCALL | orxFont_GetMap (const orxFONT *_pstFont) |
orxDLLAPI const orxSTRING orxFASTCALL | orxFont_GetName (const orxFONT *_pstFont) |
orxDLLAPI orxVECTOR *orxFASTCALL | orxFont_GetOrigin (const orxFONT *_pstFont, orxVECTOR *_pvOrigin) |
orxDLLAPI const orxSHADER *orxFASTCALL | orxFont_GetShader (const orxFONT *_pstFont) |
orxDLLAPI orxVECTOR *orxFASTCALL | orxFont_GetSize (const orxFONT *_pstFont, orxVECTOR *_pvSize) |
orxDLLAPI orxTEXTURE *orxFASTCALL | orxFont_GetTexture (const orxFONT *_pstFont) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFont_Init () |
orxDLLAPI orxBOOL orxFASTCALL | orxFont_IsSDF (const orxFONT *_pstFont) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFont_SetCharacterHeight (orxFONT *_pstFont, orxFLOAT _fCharacterHeight) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFont_SetCharacterList (orxFONT *_pstFont, const orxSTRING _zList) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFont_SetCharacterSpacing (orxFONT *_pstFont, const orxVECTOR *_pvSpacing) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFont_SetCharacterWidthList (orxFONT *_pstFont, orxU32 _u32CharacterNumber, const orxFLOAT *_afCharacterWidthList) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFont_SetOrigin (orxFONT *_pstFont, const orxVECTOR *_pvOrigin) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFont_SetShader (orxFONT *_pstFont, orxSHADER *_pstShader) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFont_SetShaderFromConfig (orxFONT *_pstFont, const orxSTRING _zShaderID) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFont_SetSize (orxFONT *_pstFont, const orxVECTOR *_pvSize) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFont_SetTexture (orxFONT *_pstFont, orxTEXTURE *_pstTexture) |
orxDLLAPI void orxFASTCALL | orxFont_Setup () |
Font module Module that handles fonts
#define orxFONT_KZ_CONFIG_CHARACTER_HEIGHT "CharacterHeight" |
#define orxFONT_KZ_CONFIG_CHARACTER_PADDING "CharacterPadding" |
#define orxFONT_KZ_CONFIG_CHARACTER_SPACING "CharacterSpacing" |
#define orxFONT_KZ_CONFIG_CHARACTER_WIDTH_LIST "CharacterWidthList" |
#define orxFONT_KZ_CONFIG_TEXTURE_NAME "Texture" |
#define orxFONT_KZ_DEFAULT_TEXTURE_NAME "orx:texture:font:default" |
Clears cache (if any Font is still in active use, it'll remain in memory until not referenced anymore)
Creates an empty font
Deletes a font
[in] | _pstFont | Concerned font |
|
extern |
Exits from the font module
Gets font's character height
[in] | _pstFont | Concerned font |
Gets font's character list
[in] | _pstFont | Concerned font |
|
extern |
Gets font's character spacing
[in] | _pstFont | Concerned font |
[out] | _pvSpacing | Character's spacing |
|
extern |
Gets font's character width
[in] | _pstFont | Concerned font |
[in] | _u32CharacterCodePoint | Character code point |
|
extern |
Gets font name
[in] | _pstFont | Concerned font |
|
extern |
Gets font's origin
[in] | _pstFont | Concerned font |
[out] | _pvOrigin | Font's origin |
Gets font's shader
[in] | _pstFont | Concerned font |
|
extern |
Gets font's size
[in] | _pstFont | Concerned font |
[out] | _pvSize | Font's size |
|
extern |
Gets font's texture
[in] | _pstFont | Concerned font |
Inits the font module
Is Font SDF?
[in] | _pstFont | Concerned font |
|
extern |
Sets font's character height
[in] | _pstFont | Concerned font |
[in] | _fCharacterHeight | Character's height |
|
extern |
Sets font's character list
[in] | _pstFont | Concerned font |
[in] | _zList | Character list |
|
extern |
Sets font's character spacing
[in] | _pstFont | Concerned font |
[in] | _pvSpacing | Character's spacing |
|
extern |
Sets font's character width list
[in] | _pstFont | Concerned font |
[in] | _u32CharacterNumber | Character's number |
[in] | _afCharacterWidthList | List of widths for all the characters |
|
extern |
Sets font's origin
[in] | _pstFont | Concerned font |
[in] | _pvOrigin | Font's origin |
|
extern |
Sets font's shader
[in] | _pstFont | Concerned font |
[in] | _pstShader | Shader to set, orxNULL to remove the current one |
|
extern |
Sets font's shader from config
[in] | _pstFont | Concerned font |
[in] | _zShaderID | Config ID of the shader to set, orxNULL to remove the current one |
|
extern |
Sets font's size
[in] | _pstFont | Concerned font |
[in] | _pvSize | Font's size |
|
extern |
Sets font's texture
[in] | _pstFont | Concerned font |
[in] | _pstTexture | Texture to set |
|
extern |
Setups the font module