NHDT->ANH, nethack->anethack, nhdat->anhdat
[aNetHack.git] / win / gnome / gnglyph.h
blob0e8629b07751040fa33ae8b450e957f1fce622a0
1 /* aNetHack 0.0.1 gnglyph.h $ANH-Date: 1432512806 2015/05/25 00:13:26 $ $ANH-Branch: master $:$ANH-Revision: 1.8 $ */
2 /* Copyright (C) 1998 by Erik Andersen <andersee@debian.org> */
3 /* aNetHack may be freely redistributed. See license for details. */
5 #ifndef GnomeHackGlyph_h
6 #define GnomeHackGlyph_h
8 #include "config.h"
9 #include "global.h"
11 /* the prototypes in system headers contain useless argument names
12 that trigger spurious warnings if gcc's `-Wshadow' option is used */
13 #undef index
14 #define index _hide_index_
15 #define time _hide_time_
17 #include <gdk_imlib.h>
18 #include <gdk/gdk.h>
20 #undef index
21 #define index strchr
22 #undef time
24 extern short glyph2tile[]; /* From tile.c */
26 typedef struct {
27 GdkImlibImage *im;
28 int count;
29 int width;
30 int height;
31 } GHackGlyphs;
33 extern int ghack_init_glyphs(const char *);
34 extern void ghack_free_glyphs(void);
35 extern void ghack_dispose_glyphs(void);
36 extern int ghack_glyph_count(void);
37 extern GdkImlibImage *ghack_image_from_glyph(int, gboolean);
38 extern int ghack_glyph_height(void);
39 extern int ghack_glyph_width(void);
41 #endif /* GnomeHackGlyph_h */