7 extern PALETTE default_palette;
9 /* raster related types and variables*/
12 typedef struct XEPP { int linkcount; /*Count of links */
13 char *filename; /* name of raster file */
14 struct XEPP* next; /* to chain all open rasters
19 typedef struct RASTER_OBJECT { XEPP *file;
21 struct RASTER_OBJECT *next;
24 extern XEPP *first_raster; /* This pointer intentionally made global.
25 even if there are serveral Tcl interpreters,
26 they all should share same list of open rasters*/
27 extern RASTER_OBJECT firstobject;
29 #define MAX_PATTERN_SIZE (32*256)
32 typedef struct PATTERNS { struct PATTERNS *next; /* patterns are linked in order
36 unsigned int bits[MAX_PATTERN_SIZE];
38 #define patternSize(width,height) ((height*256)*sizeof(int)+sizeof (struct PATTERNS)-MAX_PATTERN_SIZE*sizeof(int))
41 extern PATTERNS def_patterns;
43 int Fgis_RasterMin(RASTER_OBJECT handle);
45 int Fgis_RasterMax(RASTER_OBJECT handle);
47 void Fgis_CloseXEPP(XEPP *file);
49 XEPP* Fgis_OpenXEPP(char *filename,EPP *(*openfunc)(char *));
51 XEPP* Fgis_NewXEPP(EPP* file, char *filename);
54 #define FGIS_INVALID_RECLASS ((RECLASS)0x1)
55 #define MAX_EPP_CLASS 65535
57 /* EXPORT macro to cope with ugly Win32 DDLs */
59 # if defined(_MSC_VER)
60 # define EXPORT(a,b) __declspec(dllexport) a b
61 # define DllEntryPoint DllMain
63 # if defined(__BORLANDC__)
64 # define EXPORT(a,b) a _export b
66 # define EXPORT(a,b) a b
70 # define EXPORT(a,b) a b