Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
ftcalc.h File Reference
#include <ft2build.h>

Go to the source code of this file.

Macros

#define INT_TO_F26DOT6(x)   ( (FT_Long)(x) << 6 )
 
#define INT_TO_F2DOT14(x)   ( (FT_Long)(x) << 14 )
 
#define INT_TO_FIXED(x)   ( (FT_Long)(x) << 16 )
 
#define F2DOT14_TO_FIXED(x)   ( (FT_Long)(x) << 2 )
 
#define FLOAT_TO_FIXED(x)   ( (FT_Long)( x * 65536.0 ) )
 
#define FIXED_TO_INT(x)   ( FT_RoundFix( x ) >> 16 )
 
#define ROUND_F26DOT6(x)
 

Functions

FT_BEGIN_HEADER FT_SqrtFixed (FT_Int32 x)
 
 FT_MulDiv_No_Round (FT_Long a, FT_Long b, FT_Long c)
 
 FT_Matrix_Multiply_Scaled (const FT_Matrix *a, FT_Matrix *b, FT_Long scaling)
 
 FT_Vector_Transform_Scaled (FT_Vector *vector, const FT_Matrix *matrix, FT_Long scaling)
 
 ft_corner_orientation (FT_Pos in_x, FT_Pos in_y, FT_Pos out_x, FT_Pos out_y)
 
 ft_corner_is_flat (FT_Pos in_x, FT_Pos in_y, FT_Pos out_x, FT_Pos out_y)
 
 FT_MSB (FT_UInt32 z)
 
 FT_Hypot (FT_Fixed x, FT_Fixed y)
 

Macro Definition Documentation

◆ F2DOT14_TO_FIXED

#define F2DOT14_TO_FIXED (   x)    ( (FT_Long)(x) << 2 )

Definition at line 177 of file ftcalc.h.

◆ FIXED_TO_INT

#define FIXED_TO_INT (   x)    ( FT_RoundFix( x ) >> 16 )

◆ FLOAT_TO_FIXED

#define FLOAT_TO_FIXED (   x)    ( (FT_Long)( x * 65536.0 ) )

Definition at line 178 of file ftcalc.h.

◆ INT_TO_F26DOT6

#define INT_TO_F26DOT6 (   x)    ( (FT_Long)(x) << 6 )

Definition at line 174 of file ftcalc.h.

◆ INT_TO_F2DOT14

#define INT_TO_F2DOT14 (   x)    ( (FT_Long)(x) << 14 )

Definition at line 175 of file ftcalc.h.

◆ INT_TO_FIXED

#define INT_TO_FIXED (   x)    ( (FT_Long)(x) << 16 )

◆ ROUND_F26DOT6

#define ROUND_F26DOT6 (   x)
Value:
( x >= 0 ? ( ( (x) + 32 ) & -64 ) \
: ( -( ( 32 - (x) ) & -64 ) ) )
GLint GLint GLint GLint GLint x

Definition at line 181 of file ftcalc.h.

Function Documentation

◆ ft_corner_is_flat()

ft_corner_is_flat ( FT_Pos  in_x,
FT_Pos  in_y,
FT_Pos  out_x,
FT_Pos  out_y 
)

Definition at line 971 of file ftcalc.c.

References FT_Pos.

Referenced by af_glyph_hints_reload().

◆ ft_corner_orientation()

ft_corner_orientation ( FT_Pos  in_x,
FT_Pos  in_y,
FT_Pos  out_x,
FT_Pos  out_y 
)

Definition at line 891 of file ftcalc.c.

◆ FT_Hypot()

FT_Hypot ( FT_Fixed  x,
FT_Fixed  y 
)

◆ FT_Matrix_Multiply_Scaled()

FT_Matrix_Multiply_Scaled ( const FT_Matrix a,
FT_Matrix b,
FT_Long  scaling 
)

Definition at line 805 of file ftcalc.c.

References FT_BASE_DEF, and FT_MulDiv().

Referenced by cff_face_init().

◆ FT_MSB()

FT_MSB ( FT_UInt32  z)

Definition at line 104 of file ftcalc.c.

References FT_BASE_DEF.

Referenced by FT_Outline_Get_Orientation().

◆ FT_MulDiv_No_Round()

FT_MulDiv_No_Round ( FT_Long  a,
FT_Long  b,
FT_Long  c 
)

Definition at line 450 of file ftcalc.c.

References FT_ABS.

Referenced by FT_Hypot().

◆ FT_SqrtFixed()

FT_BEGIN_HEADER FT_SqrtFixed ( FT_Int32  x)

Definition at line 856 of file ftcalc.c.

References FT_BASE_DEF, and root.

◆ FT_Vector_Transform_Scaled()

FT_Vector_Transform_Scaled ( FT_Vector vector,
const FT_Matrix matrix,
FT_Long  scaling 
)

Definition at line 830 of file ftcalc.c.

References FT_BASE_DEF, FT_MulDiv(), and FT_Pos.

Referenced by cff_face_init().