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 | Typedefs | Functions | Variables
ftccmap.c File Reference
#include <ft2build.h>
#include "ftcmanag.h"
#include "ftccback.h"
#include "ftcerror.h"

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_cache
 
#define FTC_CMAP_INDICES_MAX   128
 
#define FTC_CMAP_HASH(faceid, index, charcode)
 
#define FTC_CMAP_QUERY(x)   ((FTC_CMapQuery)(x))
 
#define FTC_CMAP_QUERY_HASH(x)   FTC_CMAP_HASH( (x)->face_id, (x)->cmap_index, (x)->char_code )
 
#define FTC_CMAP_NODE(x)   ( (FTC_CMapNode)( x ) )
 
#define FTC_CMAP_NODE_HASH(x)   FTC_CMAP_HASH( (x)->face_id, (x)->cmap_index, (x)->first )
 
#define FTC_CMAP_UNKNOWN   (FT_UInt16)~0
 

Typedefs

typedef struct FTC_CMapQueryRec_ FTC_CMapQueryRec
 
typedef struct FTC_CMapQueryRec_ * FTC_CMapQuery
 
typedef struct FTC_CMapNodeRec_ FTC_CMapNodeRec
 
typedef struct FTC_CMapNodeRec_ * FTC_CMapNode
 

Functions

 ftc_cmap_node_free (FTC_Node ftcnode, FTC_Cache cache)
 
 ftc_cmap_node_new (FTC_Node *ftcanode, FT_Pointer ftcquery, FTC_Cache cache)
 
 ftc_cmap_node_weight (FTC_Node cnode, FTC_Cache cache)
 
 ftc_cmap_node_compare (FTC_Node ftcnode, FT_Pointer ftcquery, FTC_Cache cache, FT_Bool *list_changed)
 
 ftc_cmap_node_remove_faceid (FTC_Node ftcnode, FT_Pointer ftcface_id, FTC_Cache cache, FT_Bool *list_changed)
 
 FTC_CMapCache_New (FTC_Manager manager, FTC_CMapCache *acache)
 
 FTC_CMapCache_Lookup (FTC_CMapCache cmap_cache, FTC_FaceID face_id, FT_Int cmap_index, FT_UInt32 char_code)
 

Variables

FT_CALLBACK_TABLE_DEF const FTC_CacheClassRec ftc_cmap_cache_class
 

Macro Definition Documentation

◆ FT_COMPONENT

#define FT_COMPONENT   trace_cache

Definition at line 31 of file ftccmap.c.

◆ FTC_CMAP_HASH

#define FTC_CMAP_HASH (   faceid,
  index,
  charcode 
)
Value:
( _FTC_FACE_ID_HASH( faceid ) + 211 * (index) + \
( (charcode) / FTC_CMAP_INDICES_MAX ) )
#define FTC_CMAP_INDICES_MAX
Definition: ftccmap.c:86
#define _FTC_FACE_ID_HASH(i)
Definition: ftccache.h:27
GLuint index

Definition at line 89 of file ftccmap.c.

Referenced by FTC_CMapCache_Lookup().

◆ FTC_CMAP_INDICES_MAX

#define FTC_CMAP_INDICES_MAX   128

Definition at line 86 of file ftccmap.c.

Referenced by ftc_cmap_node_compare(), ftc_cmap_node_new(), and FTC_CMapCache_Lookup().

◆ FTC_CMAP_NODE

#define FTC_CMAP_NODE (   x)    ( (FTC_CMapNode)( x ) )

Definition at line 117 of file ftccmap.c.

Referenced by FTC_CMapCache_Lookup().

◆ FTC_CMAP_NODE_HASH

#define FTC_CMAP_NODE_HASH (   x)    FTC_CMAP_HASH( (x)->face_id, (x)->cmap_index, (x)->first )

Definition at line 118 of file ftccmap.c.

◆ FTC_CMAP_QUERY

#define FTC_CMAP_QUERY (   x)    ((FTC_CMapQuery)(x))

Definition at line 102 of file ftccmap.c.

◆ FTC_CMAP_QUERY_HASH

#define FTC_CMAP_QUERY_HASH (   x)    FTC_CMAP_HASH( (x)->face_id, (x)->cmap_index, (x)->char_code )

Definition at line 103 of file ftccmap.c.

◆ FTC_CMAP_UNKNOWN

#define FTC_CMAP_UNKNOWN   (FT_UInt16)~0

Definition at line 123 of file ftccmap.c.

Referenced by ftc_cmap_node_new(), and FTC_CMapCache_Lookup().

Typedef Documentation

◆ FTC_CMapNode

typedef struct FTC_CMapNodeRec_ * FTC_CMapNode

◆ FTC_CMapNodeRec

typedef struct FTC_CMapNodeRec_ FTC_CMapNodeRec

◆ FTC_CMapQuery

typedef struct FTC_CMapQueryRec_ * FTC_CMapQuery

◆ FTC_CMapQueryRec

typedef struct FTC_CMapQueryRec_ FTC_CMapQueryRec

Function Documentation

◆ ftc_cmap_node_compare()

ftc_cmap_node_compare ( FTC_Node  ftcnode,
FT_Pointer  ftcquery,
FTC_Cache  cache,
FT_Bool list_changed 
)

Definition at line 191 of file ftccmap.c.

References FALSE, FT_Bool, FT_BOOL, FT_CALLBACK_DEF, FT_UNUSED, and FTC_CMAP_INDICES_MAX.

Referenced by FTC_CMapCache_Lookup().

◆ ftc_cmap_node_free()

ftc_cmap_node_free ( FTC_Node  ftcnode,
FTC_Cache  cache 
)

Definition at line 136 of file ftccmap.c.

References FT_CALLBACK_DEF, and FT_FREE.

◆ ftc_cmap_node_new()

ftc_cmap_node_new ( FTC_Node ftcanode,
FT_Pointer  ftcquery,
FTC_Cache  cache 
)

Definition at line 149 of file ftccmap.c.

References error, FT_CALLBACK_DEF, FT_NEW, FTC_CMAP_INDICES_MAX, FTC_CMAP_UNKNOWN, and NULL.

◆ ftc_cmap_node_remove_faceid()

ftc_cmap_node_remove_faceid ( FTC_Node  ftcnode,
FT_Pointer  ftcface_id,
FTC_Cache  cache,
FT_Bool list_changed 
)

Definition at line 217 of file ftccmap.c.

References FALSE, FT_BOOL, FT_CALLBACK_TABLE_DEF, FT_UNUSED, and FTC_FaceID.

◆ ftc_cmap_node_weight()

ftc_cmap_node_weight ( FTC_Node  cnode,
FTC_Cache  cache 
)

Definition at line 179 of file ftccmap.c.

References FT_Bool, FT_CALLBACK_DEF, and FT_UNUSED.

◆ FTC_CMapCache_Lookup()

FTC_CMapCache_Lookup ( FTC_CMapCache  cmap_cache,
FTC_FaceID  face_id,
FT_Int  cmap_index,
FT_UInt32  char_code 
)

◆ FTC_CMapCache_New()

FTC_CMapCache_New ( FTC_Manager  manager,
FTC_CMapCache acache 
)

Definition at line 260 of file ftccmap.c.

References FT_EXPORT_DEF, FTC_CACHE_P, and FTC_Manager_RegisterCache().

Variable Documentation

◆ ftc_cmap_cache_class

Initial value:
=
{
sizeof ( FTC_CacheRec ),
}
ftc_cmap_node_new(FTC_Node *ftcanode, FT_Pointer ftcquery, FTC_Cache cache)
Definition: ftccmap.c:149
ftc_cmap_node_weight(FTC_Node cnode, FTC_Cache cache)
Definition: ftccmap.c:179
ftc_cmap_node_compare(FTC_Node ftcnode, FT_Pointer ftcquery, FTC_Cache cache, FT_Bool *list_changed)
Definition: ftccmap.c:191
ftc_cmap_node_free(FTC_Node ftcnode, FTC_Cache cache)
Definition: ftccmap.c:136
ftc_cache_init(FTC_Cache cache)
Definition: ftccache.c:339
struct FTC_CacheRec_ FTC_CacheRec
ftc_cache_done(FTC_Cache cache)
Definition: ftccache.c:393
ftc_cmap_node_remove_faceid(FTC_Node ftcnode, FT_Pointer ftcface_id, FTC_Cache cache, FT_Bool *list_changed)
Definition: ftccmap.c:217

Definition at line 243 of file ftccmap.c.