aboutsummaryrefslogtreecommitdiff
path: root/lib/gim.h
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /lib/gim.h
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'lib/gim.h')
-rw-r--r--lib/gim.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/gim.h b/lib/gim.h
new file mode 100644
index 00000000..def43cef
--- /dev/null
+++ b/lib/gim.h
@@ -0,0 +1,40 @@
+# GIM.H -- Public definitions for GIM graphics-imaging package.
+
+# Default static color assignments. Although explicit color names are used
+# here, the actual colors may be reassigned in the server. NOTE - do not
+# use LAST_COLOR to determine the index of the first dynamically allocatable
+# color cell; this value is device dependent and is set in graphcap.
+# FIRST_COLOR, LAST_COLOR are intended for use to programmatically cycle
+# through the static colors.
+
+define BACKGROUND 0
+define FOREGROUND 1
+define BLACK 0
+define WHITE 1
+define RED 2
+define GREEN 3
+define BLUE 4
+define CYAN 5
+define YELLOW 6
+define MAGENTA 7
+define AUX_COLOR_1 8
+define AUX_COLOR_2 9
+define FIRST_COLOR 2
+define LAST_COLOR 9
+
+# Max amount of pixel data passed in a single WritePixels or ReadPixels call.
+define GIM_MAXCHARS 32736
+
+# Raster type options (set to zero if don't care).
+define RT_NORMAL 1 # normal (client) raster
+define RT_CACHED 2 # cached in server memory
+
+# Coordinate type options.
+define CT_PIXEL 0 # raster pixel coordinates
+define CT_NDC 1 # normalized device coordinates
+
+# Rasterop fields.
+define R_OPCODEMASK 00017B # opcode bits
+define R_TRANSIENT 00020B # map only to screen
+define R_REFRESH_ALL 00040B # force refresh in setmapping
+define R_REFRESH_NONE 00100B # disable refresh in setmapping