File: gnglyph.h

package info (click to toggle)
slashem 0.0.7E7F3-7
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 24,312 kB
  • ctags: 23,514
  • sloc: ansic: 263,201; cpp: 7,180; yacc: 2,154; sh: 739; lex: 440; awk: 97; makefile: 61; sed: 11
file content (50 lines) | stat: -rw-r--r-- 1,297 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*	SCCS Id: @(#)gnglyph.h	3.4	2000/07/16	*/
/* Copyright (C) 1998 by Erik Andersen <andersee@debian.org> */
/* NetHack may be freely redistributed.  See license for details. */

#ifndef GnomeHackGlyph_h
#define GnomeHackGlyph_h

#include "config.h"
#include "global.h"

/* the prototypes in system headers contain useless argument names
   that trigger spurious warnings if gcc's `-Wshadow' option is used */
#undef index
#define index _hide_index_
#define time  _hide_time_

#include <gdk_imlib.h>
#include <gdk/gdk.h>

#undef index
#define index strchr
#undef time


extern short glyph2tile[];     /* From tile.c */

typedef struct {
  GdkImlibImage* im;
  int            count;
  int            width;
  int            height;
} GHackGlyphs;

extern int            ghack_init_glyphs( const char *);
extern void           ghack_free_glyphs( void);
extern void           ghack_dispose_glyphs( void);
extern int            ghack_glyph_count( void);
extern GdkImlibImage* ghack_image_from_glyph( int, gboolean);
extern int            ghack_glyph_height( void);
extern int            ghack_glyph_width( void);

#if defined(FILE_AREAS)
#define TILESETDIR FILE_AREA_SHARE
#elif defined(HACKDIR)
#define TILESETDIR HACKDIR
#else
#   error HACKDIR is not defined!
#endif

#endif  /* GnomeHackGlyph_h */