Glyph Use

Glyph Use — Mapping glyphs to tiles or characters

Synopsis


#include <nhproxy/nhproxy.h>


struct      nhproxy_tilemap_entry;
struct      nhproxy_tilemap;
struct nhproxy_tilemap* nhproxy_new_tilemap (void);
nhproxy_bool_t nhproxy_load_tilemap_line    (struct nhproxy_tilemap *map,
                                             const char *line);
struct nhproxy_tilemap* nhproxy_load_tilemap
                                            (int fh,
                                             void (*pulse) (),
                                             nhproxy_genericptr_t pulse_data);
short*      nhproxy_map_glyph2tile          (struct nhproxy_cb_get_glyph_mapping_res *glyph_map,
                                             struct nhproxy_tilemap *tile_entry,
                                             void (*pulse) (),
                                             nhproxy_genericptr_t pulse_data);
void        nhproxy_free_tilemap            (struct nhproxy_tilemap *map);
long*       nhproxy_map_glyph2char          (struct nhproxy_cb_get_glyph_mapping_res *glyph_map);

Description

Details

struct nhproxy_tilemap_entry

struct nhproxy_tilemap_entry {
    unsigned int tile;
    unsigned int refs;
    unsigned int no_descs;
    char **descs;
};


struct nhproxy_tilemap

struct nhproxy_tilemap {
    unsigned int no_entries;		/* One tile may have several entries */
    unsigned int no_tiles;
    unsigned int max_entries;		/* No. allocted entries */
    struct nhproxy_tilemap_entry *entries;
};


nhproxy_new_tilemap ()

struct nhproxy_tilemap* nhproxy_new_tilemap (void);

Returns :

nhproxy_load_tilemap_line ()

nhproxy_bool_t nhproxy_load_tilemap_line    (struct nhproxy_tilemap *map,
                                             const char *line);

map :
line :
Returns :

nhproxy_load_tilemap ()

struct nhproxy_tilemap* nhproxy_load_tilemap
                                            (int fh,
                                             void (*pulse) (),
                                             nhproxy_genericptr_t pulse_data);

fh :
pulse :
pulse_data :
Returns :

nhproxy_map_glyph2tile ()

short*      nhproxy_map_glyph2tile          (struct nhproxy_cb_get_glyph_mapping_res *glyph_map,
                                             struct nhproxy_tilemap *tile_entry,
                                             void (*pulse) (),
                                             nhproxy_genericptr_t pulse_data);

glyph_map :
tile_entry :
pulse :
pulse_data :
Returns :

nhproxy_free_tilemap ()

void        nhproxy_free_tilemap            (struct nhproxy_tilemap *map);

map :

nhproxy_map_glyph2char ()

long*       nhproxy_map_glyph2char          (struct nhproxy_cb_get_glyph_mapping_res *glyph_map);

glyph_map :
Returns :