sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
ftsdfcommon.h File Reference
#include <ft2build.h>
#include <freetype/internal/ftobjs.h>

Go to the source code of this file.

Macros

#define DEFAULT_SPREAD   8
#define MIN_SPREAD   2
#define MAX_SPREAD   32
#define ONE_PIXEL   ( 1 << 6 )
#define USE_SQUARED_DISTANCES   0
#define FT_INT_26D6(x)
#define FT_INT_16D16(x)
#define FT_26D6_16D16(x)
#define FT_CALL(x)
#define VECTOR_LENGTH_16D16(v)
#define square_root(x)

Typedefs

typedef FT_Vector FT_26D6_Vec
typedef FT_Vector FT_16D16_Vec
typedef FT_Int32 FT_16D16
typedef FT_Int32 FT_26D6
typedef FT_Byte FT_SDFFormat
typedef FT_BBox FT_CBox

Functions

 map_fixed_to_sdf (FT_16D16 dist, FT_16D16 max_value)
 invert_sign (FT_SDFFormat dist)

Macro Definition Documentation

◆ DEFAULT_SPREAD

#define DEFAULT_SPREAD   8

Definition at line 50 of file ftsdfcommon.h.

◆ FT_26D6_16D16

#define FT_26D6_16D16 ( x)
Value:
( x * 1024 )

Definition at line 85 of file ftsdfcommon.h.

◆ FT_CALL

#define FT_CALL ( x)
Value:
do \
{ \
error = ( x ); \
if ( error != FT_Err_Ok ) \
goto Exit; \
} while ( 0 )

Definition at line 90 of file ftsdfcommon.h.

◆ FT_INT_16D16

#define FT_INT_16D16 ( x)
Value:
( x * 65536 )

Definition at line 83 of file ftsdfcommon.h.

◆ FT_INT_26D6

#define FT_INT_26D6 ( x)
Value:
( x * 64 )

Definition at line 81 of file ftsdfcommon.h.

◆ MAX_SPREAD

#define MAX_SPREAD   32

Definition at line 54 of file ftsdfcommon.h.

◆ MIN_SPREAD

#define MIN_SPREAD   2

Definition at line 52 of file ftsdfcommon.h.

◆ ONE_PIXEL

#define ONE_PIXEL   ( 1 << 6 )

Definition at line 56 of file ftsdfcommon.h.

◆ square_root

#define square_root ( x)
Value:
(FT_16D16)FT_SqrtFixed( (FT_UInt32)( x ) )

Definition at line 129 of file ftsdfcommon.h.

◆ USE_SQUARED_DISTANCES

#define USE_SQUARED_DISTANCES   0

Definition at line 70 of file ftsdfcommon.h.

◆ VECTOR_LENGTH_16D16

#define VECTOR_LENGTH_16D16 ( v)
Value:
FT_Vector_Length( &v )

Definition at line 109 of file ftsdfcommon.h.

Typedef Documentation

◆ FT_16D16

typedef FT_Int32 FT_16D16

Definition at line 122 of file ftsdfcommon.h.

◆ FT_16D16_Vec

typedef FT_Vector FT_16D16_Vec

Definition at line 120 of file ftsdfcommon.h.

◆ FT_26D6

typedef FT_Int32 FT_26D6

Definition at line 123 of file ftsdfcommon.h.

◆ FT_26D6_Vec

typedef FT_Vector FT_26D6_Vec

Definition at line 119 of file ftsdfcommon.h.

◆ FT_CBox

typedef FT_BBox FT_CBox

Definition at line 126 of file ftsdfcommon.h.

◆ FT_SDFFormat

typedef FT_Byte FT_SDFFormat

Definition at line 124 of file ftsdfcommon.h.

Function Documentation

◆ invert_sign()

invert_sign ( FT_SDFFormat dist)

Definition at line 98 of file ftsdfcommon.c.

◆ map_fixed_to_sdf()

map_fixed_to_sdf ( FT_16D16 dist,
FT_16D16 max_value )

Definition at line 47 of file ftsdfcommon.c.