diff options
author | Guido van Rossum <guido@python.org> | 1992-01-24 12:54:01 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-24 12:54:01 (GMT) |
commit | bd7fd1a225349b3c5a45e4d99d6169eb7def8cd1 (patch) | |
tree | f2e9dc5870f246b758b403091f1f4536cf925dac | |
parent | 27060c004ece45eba9618d0175b6a01b900296f9 (diff) | |
download | cpython-bd7fd1a225349b3c5a45e4d99d6169eb7def8cd1.zip cpython-bd7fd1a225349b3c5a45e4d99d6169eb7def8cd1.tar.gz cpython-bd7fd1a225349b3c5a45e4d99d6169eb7def8cd1.tar.bz2 |
Use output from h2py.
-rwxr-xr-x | Lib/irix5/DEVICE.py | 796 | ||||
-rwxr-xr-x | Lib/irix5/GL.py | 391 | ||||
-rwxr-xr-x | Lib/plat-irix5/DEVICE.py | 796 | ||||
-rwxr-xr-x | Lib/plat-irix5/GL.py | 391 |
4 files changed, 1170 insertions, 1204 deletions
diff --git a/Lib/irix5/DEVICE.py b/Lib/irix5/DEVICE.py index 00eddfc..2c20485 100755 --- a/Lib/irix5/DEVICE.py +++ b/Lib/irix5/DEVICE.py @@ -1,423 +1,399 @@ -#/************************************************************************** -# * * -# * Copyright (C) 1984, Silicon Graphics, Inc. * -# * * -# * These coded instructions, statements, and computer programs contain * -# * unpublished proprietary information of Silicon Graphics, Inc., and * -# * are protected by Federal copyright law. They may not be disclosed * -# * to third parties or copied or duplicated in any form, in whole or * -# * in part, without the prior written consent of Silicon Graphics, Inc. * -# * * -# **************************************************************************/ -#/* file with device definitions (see /usr/include/device.h) */ - -NULLDEV = 0 +NULLDEV = 0 BUTOFFSET = 1 VALOFFSET = 256 +PSEUDOFFSET = 512 +BUT2OFFSET = 3840 TIMOFFSET = 515 XKBDOFFSET = 143 -INOFFSET = 1024 -OUTOFFSET = 1033 -BUTCOUNT = 190 -VALCOUNT = 27 +BUTCOUNT = 255 +VALCOUNT = 256 TIMCOUNT = 4 XKBDCOUNT = 28 -INCOUNT = 8 -OUTCOUNT = 8 -# -# -# -# -BUT0 = 1 -BUT1 = 2 -BUT2 = 3 -BUT3 = 4 -BUT4 = 5 -BUT5 = 6 -BUT6 = 7 -BUT7 = 8 -BUT8 = 9 -BUT9 = 10 -BUT10 = 11 -BUT11 = 12 -BUT12 = 13 -BUT13 = 14 -BUT14 = 15 -BUT15 = 16 -BUT16 = 17 -BUT17 = 18 -BUT18 = 19 -BUT19 = 20 -BUT20 = 21 -BUT21 = 22 -BUT22 = 23 -BUT23 = 24 -BUT24 = 25 -BUT25 = 26 -BUT26 = 27 -BUT27 = 28 -BUT28 = 29 -BUT29 = 30 -BUT30 = 31 -BUT31 = 32 -BUT32 = 33 -BUT33 = 34 -BUT34 = 35 -BUT35 = 36 -BUT36 = 37 -BUT37 = 38 -BUT38 = 39 -BUT39 = 40 -BUT40 = 41 -BUT41 = 42 -BUT42 = 43 -BUT43 = 44 -BUT44 = 45 -BUT45 = 46 -BUT46 = 47 -BUT47 = 48 -BUT48 = 49 -BUT49 = 50 -BUT50 = 51 -BUT51 = 52 -BUT52 = 53 -BUT53 = 54 -BUT54 = 55 -BUT55 = 56 -BUT56 = 57 -BUT57 = 58 -BUT58 = 59 -BUT59 = 60 -BUT60 = 61 -BUT61 = 62 -BUT62 = 63 -BUT63 = 64 -BUT64 = 65 -BUT65 = 66 -BUT66 = 67 -BUT67 = 68 -BUT68 = 69 -BUT69 = 70 -BUT70 = 71 -BUT71 = 72 -BUT72 = 73 -BUT73 = 74 -BUT74 = 75 -BUT75 = 76 -BUT76 = 77 -BUT77 = 78 -BUT78 = 79 -BUT79 = 80 -BUT80 = 81 -BUT81 = 82 -BUT82 = 83 -MAXKBDBUT = 83 -BUT100 = 101 -BUT101 = 102 -BUT102 = 103 -BUT110 = 111 -BUT111 = 112 -BUT112 = 113 -BUT113 = 114 -BUT114 = 115 -BUT115 = 116 -BUT116 = 117 -BUT117 = 118 -BUT118 = 119 -BUT119 = 120 -BUT120 = 121 -BUT121 = 122 -BUT122 = 123 -BUT123 = 124 -BUT124 = 125 -BUT125 = 126 -BUT126 = 127 -BUT127 = 128 -BUT128 = 129 -BUT129 = 130 -BUT130 = 131 -BUT131 = 132 -BUT132 = 133 -BUT133 = 134 -BUT134 = 135 -BUT135 = 136 -BUT136 = 137 -BUT137 = 138 -BUT138 = 139 -BUT139 = 140 -BUT140 = 141 -BUT141 = 142 -BUT142 = 143 -BUT143 = 144 -BUT144 = 145 -BUT145 = 146 -BUT146 = 147 -BUT147 = 148 -BUT148 = 149 -BUT149 = 150 -BUT150 = 151 -BUT151 = 152 -BUT152 = 153 -BUT153 = 154 -BUT154 = 155 -BUT155 = 156 -BUT156 = 157 -BUT157 = 158 -BUT158 = 159 -BUT159 = 160 -BUT160 = 161 -BUT161 = 162 -BUT162 = 163 -BUT163 = 164 -BUT164 = 165 -BUT165 = 166 -BUT166 = 167 -BUT167 = 168 -BUT168 = 169 -BUT181 = 182 -BUT182 = 183 -BUT183 = 184 -BUT184 = 185 -BUT185 = 186 -BUT186 = 187 -BUT187 = 188 -BUT188 = 189 -BUT189 = 190 -MOUSE1 = 101 -MOUSE2 = 102 -MOUSE3 = 103 -LEFTMOUSE = 103 -MIDDLEMOUSE = 102 -RIGHTMOUSE = 101 -LPENBUT = 104 -BPAD0 = 105 -BPAD1 = 106 -BPAD2 = 107 -BPAD3 = 108 -LPENVALID = 109 -SWBASE = 111 -SW0 = 111 -SW1 = 112 -SW2 = 113 -SW3 = 114 -SW4 = 115 -SW5 = 116 -SW6 = 117 -SW7 = 118 -SW8 = 119 -SW9 = 120 -SW10 = 121 -SW11 = 122 -SW12 = 123 -SW13 = 124 -SW14 = 125 -SW15 = 126 -SW16 = 127 -SW17 = 128 -SW18 = 129 -SW19 = 130 -SW20 = 131 -SW21 = 132 -SW22 = 133 -SW23 = 134 -SW24 = 135 -SW25 = 136 -SW26 = 137 -SW27 = 138 -SW28 = 139 -SW29 = 140 -SW30 = 141 -SW31 = 142 -SBBASE = 182 -SBPICK = 182 -SBBUT1 = 183 -SBBUT2 = 184 -SBBUT3 = 185 -SBBUT4 = 186 -SBBUT5 = 187 -SBBUT6 = 188 -SBBUT7 = 189 -SBBUT8 = 190 -AKEY = 11 -BKEY = 36 -CKEY = 28 -DKEY = 18 -EKEY = 17 -FKEY = 19 -GKEY = 26 -HKEY = 27 -IKEY = 40 -JKEY = 34 -KKEY = 35 -LKEY = 42 -MKEY = 44 -NKEY = 37 -OKEY = 41 -PKEY = 48 -QKEY = 10 -RKEY = 24 -SKEY = 12 -TKEY = 25 -UKEY = 33 -VKEY = 29 -WKEY = 16 -XKEY = 21 -YKEY = 32 -ZKEY = 20 -ZEROKEY = 46 -ONEKEY = 8 -TWOKEY = 14 -THREEKEY = 15 -FOURKEY = 22 -FIVEKEY = 23 -SIXKEY = 30 -SEVENKEY = 31 -EIGHTKEY = 38 -NINEKEY = 39 -BREAKKEY = 1 -SETUPKEY = 2 -CTRLKEY = 3 -LEFTCTRLKEY = CTRLKEY -CAPSLOCKKEY = 4 -RIGHTSHIFTKEY = 5 -LEFTSHIFTKEY = 6 -NOSCRLKEY = 13 -ESCKEY = 7 -TABKEY = 9 -RETKEY = 51 -SPACEKEY = 83 -LINEFEEDKEY = 60 -BACKSPACEKEY = 61 -DELKEY = 62 -SEMICOLONKEY = 43 -PERIODKEY = 52 -COMMAKEY = 45 -QUOTEKEY = 50 -ACCENTGRAVEKEY = 55 -MINUSKEY = 47 -VIRGULEKEY = 53 -BACKSLASHKEY = 57 -EQUALKEY = 54 -LEFTBRACKETKEY = 49 -RIGHTBRACKETKEY = 56 -LEFTARROWKEY = 73 -DOWNARROWKEY = 74 -RIGHTARROWKEY = 80 -UPARROWKEY = 81 -PAD0 = 59 -PAD1 = 58 -PAD2 = 64 -PAD3 = 65 -PAD4 = 63 -PAD5 = 69 -PAD6 = 70 -PAD7 = 67 -PAD8 = 68 -PAD9 = 75 -PADPF1 = 72 -PADPF2 = 71 -PADPF3 = 79 -PADPF4 = 78 -PADPERIOD = 66 -PADMINUS = 76 -PADCOMMA = 77 -PADENTER = 82 -LEFTALTKEY = 143 -RIGHTALTKEY = 144 -RIGHTCTRLKEY = 145 -F1KEY = 146 -F2KEY = 147 -F3KEY = 148 -F4KEY = 149 -F5KEY = 150 -F6KEY = 151 -F7KEY = 152 -F8KEY = 153 -F9KEY = 154 -F10KEY = 155 -F11KEY = 156 -F12KEY = 157 +USERBUTOFFSET = 4096 +USERVALOFFSET = 12288 +USERPSEUDOFFSET = 16384 +BUT0 = 1 +BUT1 = 2 +BUT2 = 3 +BUT3 = 4 +BUT4 = 5 +BUT5 = 6 +BUT6 = 7 +BUT7 = 8 +BUT8 = 9 +BUT9 = 10 +BUT10 = 11 +BUT11 = 12 +BUT12 = 13 +BUT13 = 14 +BUT14 = 15 +BUT15 = 16 +BUT16 = 17 +BUT17 = 18 +BUT18 = 19 +BUT19 = 20 +BUT20 = 21 +BUT21 = 22 +BUT22 = 23 +BUT23 = 24 +BUT24 = 25 +BUT25 = 26 +BUT26 = 27 +BUT27 = 28 +BUT28 = 29 +BUT29 = 30 +BUT30 = 31 +BUT31 = 32 +BUT32 = 33 +BUT33 = 34 +BUT34 = 35 +BUT35 = 36 +BUT36 = 37 +BUT37 = 38 +BUT38 = 39 +BUT39 = 40 +BUT40 = 41 +BUT41 = 42 +BUT42 = 43 +BUT43 = 44 +BUT44 = 45 +BUT45 = 46 +BUT46 = 47 +BUT47 = 48 +BUT48 = 49 +BUT49 = 50 +BUT50 = 51 +BUT51 = 52 +BUT52 = 53 +BUT53 = 54 +BUT54 = 55 +BUT55 = 56 +BUT56 = 57 +BUT57 = 58 +BUT58 = 59 +BUT59 = 60 +BUT60 = 61 +BUT61 = 62 +BUT62 = 63 +BUT63 = 64 +BUT64 = 65 +BUT65 = 66 +BUT66 = 67 +BUT67 = 68 +BUT68 = 69 +BUT69 = 70 +BUT70 = 71 +BUT71 = 72 +BUT72 = 73 +BUT73 = 74 +BUT74 = 75 +BUT75 = 76 +BUT76 = 77 +BUT77 = 78 +BUT78 = 79 +BUT79 = 80 +BUT80 = 81 +BUT81 = 82 +BUT82 = 83 +MAXKBDBUT = 83 +BUT100 = 101 +BUT101 = 102 +BUT102 = 103 +BUT103 = 104 +BUT104 = 105 +BUT105 = 106 +BUT106 = 107 +BUT107 = 108 +BUT108 = 109 +BUT109 = 110 +BUT110 = 111 +BUT111 = 112 +BUT112 = 113 +BUT113 = 114 +BUT114 = 115 +BUT115 = 116 +BUT116 = 117 +BUT117 = 118 +BUT118 = 119 +BUT119 = 120 +BUT120 = 121 +BUT121 = 122 +BUT122 = 123 +BUT123 = 124 +BUT124 = 125 +BUT125 = 126 +BUT126 = 127 +BUT127 = 128 +BUT128 = 129 +BUT129 = 130 +BUT130 = 131 +BUT131 = 132 +BUT132 = 133 +BUT133 = 134 +BUT134 = 135 +BUT135 = 136 +BUT136 = 137 +BUT137 = 138 +BUT138 = 139 +BUT139 = 140 +BUT140 = 141 +BUT141 = 142 +BUT142 = 143 +BUT143 = 144 +BUT144 = 145 +BUT145 = 146 +BUT146 = 147 +BUT147 = 148 +BUT148 = 149 +BUT149 = 150 +BUT150 = 151 +BUT151 = 152 +BUT152 = 153 +BUT153 = 154 +BUT154 = 155 +BUT155 = 156 +BUT156 = 157 +BUT157 = 158 +BUT158 = 159 +BUT159 = 160 +BUT160 = 161 +BUT161 = 162 +BUT162 = 163 +BUT163 = 164 +BUT164 = 165 +BUT165 = 166 +BUT166 = 167 +BUT167 = 168 +BUT168 = 169 +BUT181 = 182 +BUT182 = 183 +BUT183 = 184 +BUT184 = 185 +BUT185 = 186 +BUT186 = 187 +BUT187 = 188 +BUT188 = 189 +BUT189 = 190 +MOUSE1 = 101 +MOUSE2 = 102 +MOUSE3 = 103 +LEFTMOUSE = 103 +MIDDLEMOUSE = 102 +RIGHTMOUSE = 101 +LPENBUT = 104 +BPAD0 = 105 +BPAD1 = 106 +BPAD2 = 107 +BPAD3 = 108 +LPENVALID = 109 +SWBASE = 111 +SW0 = 111 +SW1 = 112 +SW2 = 113 +SW3 = 114 +SW4 = 115 +SW5 = 116 +SW6 = 117 +SW7 = 118 +SW8 = 119 +SW9 = 120 +SW10 = 121 +SW11 = 122 +SW12 = 123 +SW13 = 124 +SW14 = 125 +SW15 = 126 +SW16 = 127 +SW17 = 128 +SW18 = 129 +SW19 = 130 +SW20 = 131 +SW21 = 132 +SW22 = 133 +SW23 = 134 +SW24 = 135 +SW25 = 136 +SW26 = 137 +SW27 = 138 +SW28 = 139 +SW29 = 140 +SW30 = 141 +SW31 = 142 +SBBASE = 182 +SBPICK = 182 +SBBUT1 = 183 +SBBUT2 = 184 +SBBUT3 = 185 +SBBUT4 = 186 +SBBUT5 = 187 +SBBUT6 = 188 +SBBUT7 = 189 +SBBUT8 = 190 +AKEY = 11 +BKEY = 36 +CKEY = 28 +DKEY = 18 +EKEY = 17 +FKEY = 19 +GKEY = 26 +HKEY = 27 +IKEY = 40 +JKEY = 34 +KKEY = 35 +LKEY = 42 +MKEY = 44 +NKEY = 37 +OKEY = 41 +PKEY = 48 +QKEY = 10 +RKEY = 24 +SKEY = 12 +TKEY = 25 +UKEY = 33 +VKEY = 29 +WKEY = 16 +XKEY = 21 +YKEY = 32 +ZKEY = 20 +ZEROKEY = 46 +ONEKEY = 8 +TWOKEY = 14 +THREEKEY = 15 +FOURKEY = 22 +FIVEKEY = 23 +SIXKEY = 30 +SEVENKEY = 31 +EIGHTKEY = 38 +NINEKEY = 39 +BREAKKEY = 1 +SETUPKEY = 2 +CTRLKEY = 3 +LEFTCTRLKEY = CTRLKEY +CAPSLOCKKEY = 4 +RIGHTSHIFTKEY = 5 +LEFTSHIFTKEY = 6 +NOSCRLKEY = 13 +ESCKEY = 7 +TABKEY = 9 +RETKEY = 51 +SPACEKEY = 83 +LINEFEEDKEY = 60 +BACKSPACEKEY = 61 +DELKEY = 62 +SEMICOLONKEY = 43 +PERIODKEY = 52 +COMMAKEY = 45 +QUOTEKEY = 50 +ACCENTGRAVEKEY = 55 +MINUSKEY = 47 +VIRGULEKEY = 53 +BACKSLASHKEY = 57 +EQUALKEY = 54 +LEFTBRACKETKEY = 49 +RIGHTBRACKETKEY = 56 +LEFTARROWKEY = 73 +DOWNARROWKEY = 74 +RIGHTARROWKEY = 80 +UPARROWKEY = 81 +PAD0 = 59 +PAD1 = 58 +PAD2 = 64 +PAD3 = 65 +PAD4 = 63 +PAD5 = 69 +PAD6 = 70 +PAD7 = 67 +PAD8 = 68 +PAD9 = 75 +PADPF1 = 72 +PADPF2 = 71 +PADPF3 = 79 +PADPF4 = 78 +PADPERIOD = 66 +PADMINUS = 76 +PADCOMMA = 77 +PADENTER = 82 +LEFTALTKEY = 143 +RIGHTALTKEY = 144 +RIGHTCTRLKEY = 145 +F1KEY = 146 +F2KEY = 147 +F3KEY = 148 +F4KEY = 149 +F5KEY = 150 +F6KEY = 151 +F7KEY = 152 +F8KEY = 153 +F9KEY = 154 +F10KEY = 155 +F11KEY = 156 +F12KEY = 157 PRINTSCREENKEY = 158 SCROLLLOCKKEY = 159 PAUSEKEY = 160 INSERTKEY = 161 -HOMEKEY = 162 -PAGEUPKEY = 163 -ENDKEY = 164 +HOMEKEY = 162 +PAGEUPKEY = 163 +ENDKEY = 164 PAGEDOWNKEY = 165 NUMLOCKKEY = 166 -PADVIRGULEKEY = 167 -PADASTERKEY = 168 -PADPLUSKEY = 169 -SGIRESERVED = 256 -DIAL0 = 257 -DIAL1 = 258 -DIAL2 = 259 -DIAL3 = 260 -DIAL4 = 261 -DIAL5 = 262 -DIAL6 = 263 -DIAL7 = 264 -DIAL8 = 265 -MOUSEX = 266 -MOUSEY = 267 -LPENX = 268 -LPENY = 269 -BPADX = 270 -BPADY = 271 -CURSORX = 272 -CURSORY = 273 -GHOSTX = 274 -GHOSTY = 275 -SBTX = 276 -SBTY = 277 -SBTZ = 278 -SBRX = 279 -SBRY = 280 -SBRZ = 281 -SBPERIOD = 282 -TIMER0 = 515 -TIMER1 = 516 -TIMER2 = 517 -TIMER3 = 518 -KEYBD = 513 -RAWKEYBD = 514 -VALMARK = 523 -GERROR = 524 -REDRAW = 528 -WMSEND = 529 -WMREPLY = 530 -WMGFCLOSE = 531 -WMTXCLOSE = 532 -MODECHANGE = 533 -INPUTCHANGE = 534 -QFULL = 535 -PIECECHANGE = 536 -WINCLOSE = 537 -QREADERROR = 538 -WINFREEZE = 539 -WINTHAW = 540 -REDRAWICONIC = 541 -WINQUIT = 542 -DEPTHCHANGE = 543 -KEYBDFNAMES = 544 -KEYBDFSTRINGS = 545 -WINSHUT = 546 -INPUT0 = 1024 -INPUT1 = 1025 -INPUT2 = 1026 -INPUT3 = 1027 -INPUT4 = 1028 -INPUT5 = 1029 -INPUT6 = 1030 -INPUT7 = 1032 -OUTPUT0 = 1033 -OUTPUT1 = 1034 -OUTPUT2 = 1035 -OUTPUT3 = 1036 -OUTPUT4 = 1037 -OUTPUT5 = 1038 -OUTPUT6 = 1039 -OUTPUT7 = 1040 +PADVIRGULEKEY = 167 +PADASTERKEY = 168 +PADPLUSKEY = 169 +SGIRESERVED = 256 +DIAL0 = 257 +DIAL1 = 258 +DIAL2 = 259 +DIAL3 = 260 +DIAL4 = 261 +DIAL5 = 262 +DIAL6 = 263 +DIAL7 = 264 +DIAL8 = 265 +MOUSEX = 266 +MOUSEY = 267 +LPENX = 268 +LPENY = 269 +BPADX = 270 +BPADY = 271 +CURSORX = 272 +CURSORY = 273 +GHOSTX = 274 +GHOSTY = 275 +SBTX = 276 +SBTY = 277 +SBTZ = 278 +SBRX = 279 +SBRY = 280 +SBRZ = 281 +SBPERIOD = 282 +TIMER0 = 515 +TIMER1 = 516 +TIMER2 = 517 +TIMER3 = 518 +KEYBD = 513 +RAWKEYBD = 514 +VALMARK = 523 +REDRAW = 528 +INPUTCHANGE = 534 +QFULL = 535 +QREADERROR = 538 +WINFREEZE = 539 +WINTHAW = 540 +REDRAWICONIC = 541 +WINQUIT = 542 +DEPTHCHANGE = 543 +WINSHUT = 546 +DRAWOVERLAY = 547 +MENUBUTTON = RIGHTMOUSE +WINCLOSE = 537 +KEYBDFNAMES = 544 +KEYBDFSTRINGS = 545 MAXSGIDEVICE = 20000 -MENUBUTTON = RIGHTMOUSE +GERROR = 524 +WMSEND = 529 +WMREPLY = 530 +WMGFCLOSE = 531 +WMTXCLOSE = 532 +MODECHANGE = 533 +PIECECHANGE = 536 diff --git a/Lib/irix5/GL.py b/Lib/irix5/GL.py index 65a315a..9f02f65 100755 --- a/Lib/irix5/GL.py +++ b/Lib/irix5/GL.py @@ -1,43 +1,12 @@ -# Constants defined in <gl.h> - -#************************************************************************** -#* * -#* Copyright (C) 1984, Silicon Graphics, Inc. * -#* * -#* These coded instructions, statements, and computer programs contain * -#* unpublished proprietary information of Silicon Graphics, Inc., and * -#* are protected by Federal copyright law. They may not be disclosed * -#* to third parties or copied or duplicated in any form, in whole or * -#* in part, without the prior written consent of Silicon Graphics, Inc. * -#* * -#************************************************************************** - -# Graphics Libary constants - -# Booleans -TRUE = 1 +NULL = 0 FALSE = 0 - -# maximum X and Y screen coordinates -XMAXSCREEN = 1279 -YMAXSCREEN = 1023 -XMAXMEDIUM = 1023 # max for medium res monitor -YMAXMEDIUM = 767 -XMAX170 = 645 # max for RS-170 -YMAX170 = 484 -XMAXPAL = 779 # max for PAL -YMAXPAL = 574 - -# various hardware/software limits +TRUE = 1 ATTRIBSTACKDEPTH = 10 VPSTACKDEPTH = 8 MATRIXSTACKDEPTH = 32 NAMESTACKDEPTH = 1025 STARTTAG = -2 ENDTAG = -3 -CPOSX_INVALID = -(2*XMAXSCREEN) - -# names for colors in color map loaded by greset BLACK = 0 RED = 1 GREEN = 2 @@ -46,30 +15,22 @@ BLUE = 4 MAGENTA = 5 CYAN = 6 WHITE = 7 - -# popup colors PUP_CLEAR = 0 PUP_COLOR = 1 PUP_BLACK = 2 PUP_WHITE = 3 - -# defines for drawmode -NORMALDRAW = 0 -PUPDRAW = 1 -OVERDRAW = 2 -UNDERDRAW = 3 -CURSORDRAW = 4 - -# defines for defpattern +NORMALDRAW = 0x010 +PUPDRAW = 0x020 +OVERDRAW = 0x040 +UNDERDRAW = 0x080 +CURSORDRAW = 0x100 +DUALDRAW = 0x200 PATTERN_16 = 16 PATTERN_32 = 32 PATTERN_64 = 64 - PATTERN_16_SIZE = 16 PATTERN_32_SIZE = 64 PATTERN_64_SIZE = 256 - -# defines for readsource SRC_AUTO = 0 SRC_FRONT = 1 SRC_BACK = 2 @@ -78,8 +39,6 @@ SRC_PUP = 4 SRC_OVER = 5 SRC_UNDER = 6 SRC_FRAMEGRABBER = 7 - -# defines for blendfunction BF_ZERO = 0 BF_ONE = 1 BF_DC = 2 @@ -90,8 +49,15 @@ BF_SA = 4 BF_MSA = 5 BF_DA = 6 BF_MDA = 7 - -# defines for zfunction +BF_MIN_SA_MDA = 8 +AF_NEVER = 0 +AF_LESS = 1 +AF_EQUAL = 2 +AF_LEQUAL = 3 +AF_GREATER = 4 +AF_NOTEQUAL = 5 +AF_GEQUAL = 6 +AF_ALWAYS = 7 ZF_NEVER = 0 ZF_LESS = 1 ZF_EQUAL = 2 @@ -100,39 +66,43 @@ ZF_GREATER = 4 ZF_NOTEQUAL = 5 ZF_GEQUAL = 6 ZF_ALWAYS = 7 - -# defines for zsource ZSRC_DEPTH = 0 ZSRC_COLOR = 1 - -# defines for pntsmooth -SMP_OFF = 0 -SMP_ON = 1 - -# defines for linesmooth -SML_OFF = 0 -SML_ON = 1 - -# defines for setpup +SMP_OFF = 0x0 +SMP_ON = 0x1 +SMP_SMOOTHER = 0x2 +SML_OFF = 0x0 +SML_ON = 0x1 +SML_SMOOTHER = 0x2 +SML_END_CORRECT = 0x4 +PYSM_OFF = 0 +PYSM_ON = 1 +PYSM_SHRINK = 2 +DT_OFF = 0 +DT_ON = 1 PUP_NONE = 0 -PUP_GREY = 1 - -# defines for glcompat +PUP_GREY = 0x1 +PUP_BOX = 0x2 +PUP_CHECK = 0x4 GLC_OLDPOLYGON = 0 GLC_ZRANGEMAP = 1 - -# defines for curstype +GLC_MQUEUERATE = 2 +GLC_SOFTATTACH = 3 +GLC_MANAGEBG = 4 +GLC_SLOWMAPCOLORS = 5 +GLC_INPUTCHANGEBUG = 6 +GLC_NOBORDERBUG = 7 +GLC_SET_VSYNC = 8 +GLC_GET_VSYNC = 9 +GLC_VSYNC_SLEEP = 10 +GLC_COMPATRATE = 15 C16X1 = 0 C16X2 = 1 C32X1 = 2 C32X2 = 3 CCROSS = 4 - -# defines for shademodel FLAT = 0 GOURAUD = 1 - -# defines for logicop LO_ZERO = 0x0 LO_AND = 0x1 LO_ANDR = 0x2 @@ -149,33 +119,76 @@ LO_NSRC = 0xc LO_ORI = 0xd LO_NAND = 0xe LO_ONE = 0xf - -# defines for pixmode -PM_SHIFT = 0 -PM_EXPAND = 1 -PM_C0 = 2 -PM_C1 = 3 -PM_ADD24 = 4 -PM_SIZE = 5 -PM_OFFSET = 6 -PM_STRIDE = 7 -PM_TTOB = 8 -PM_RTOL = 9 -PM_ZDATA = 10 -PM_WARP = 11 -PM_RDX = 12 -PM_RDY = 13 -PM_CDX = 14 -PM_CDY = 15 -PM_XSTART = 16 -PM_YSTART = 17 -PM_VO1 = 1000 # internal use only - - -# -# START defines for getgdesc -# - +INFOCUSSCRN = -2 +ST_KEEP = 0 +ST_ZERO = 1 +ST_REPLACE = 2 +ST_INCR = 3 +ST_DECR = 4 +ST_INVERT = 5 +SF_NEVER = 0 +SF_LESS = 1 +SF_EQUAL = 2 +SF_LEQUAL = 3 +SF_GREATER = 4 +SF_NOTEQUAL = 5 +SF_GEQUAL = 6 +SF_ALWAYS = 7 +SS_OFF = 0 +SS_DEPTH = 1 +PYM_FILL = 1 +PYM_POINT = 2 +PYM_LINE = 3 +PYM_HOLLOW = 4 +PYM_LINE_FAST = 5 +FG_OFF = 0 +FG_ON = 1 +FG_DEFINE = 2 +FG_VTX_EXP = 2 +FG_VTX_LIN = 3 +FG_PIX_EXP = 4 +FG_PIX_LIN = 5 +FG_VTX_EXP2 = 6 +FG_PIX_EXP2 = 7 +PM_SHIFT = 0 +PM_EXPAND = 1 +PM_C0 = 2 +PM_C1 = 3 +PM_ADD24 = 4 +PM_SIZE = 5 +PM_OFFSET = 6 +PM_STRIDE = 7 +PM_TTOB = 8 +PM_RTOL = 9 +PM_ZDATA = 10 +PM_WARP = 11 +PM_RDX = 12 +PM_RDY = 13 +PM_CDX = 14 +PM_CDY = 15 +PM_XSTART = 16 +PM_YSTART = 17 +PM_VO1 = 1000 +NAUTO = 0 +NNORMALIZE = 1 +AC_CLEAR = 0 +AC_ACCUMULATE = 1 +AC_CLEAR_ACCUMULATE = 2 +AC_RETURN = 3 +AC_MULT = 4 +AC_ADD = 5 +CP_OFF = 0 +CP_ON = 1 +CP_DEFINE = 2 +SB_RESET = 0 +SB_TRACK = 1 +SB_HOLD = 2 +RD_FREEZE = 0x00000001 +RD_ALPHAONE = 0x00000002 +RD_IGNORE_UNDERLAY = 0x00000004 +RD_IGNORE_OVERLAY = 0x00000008 +RD_IGNORE_PUP = 0x00000010 +RD_OFFSCREEN = 0x00000020 GD_XPMAX = 0 GD_YPMAX = 1 GD_XMMAX = 2 @@ -196,7 +209,7 @@ GD_BITS_NORM_ZBUFFER = 16 GD_BITS_OVER_SNG_CMODE = 17 GD_BITS_UNDR_SNG_CMODE = 18 GD_BITS_PUP_SNG_CMODE = 19 -GD_BITS_NORM_SNG_ALPHA = 21 +GD_BITS_NORM_SNG_ALPHA = 21 GD_BITS_NORM_DBL_ALPHA = 22 GD_BITS_CURSOR = 23 GD_OVERUNDER_SHARED = 24 @@ -243,28 +256,14 @@ GD_POLYMODE = 77 GD_POLYSMOOTH = 78 GD_SCRBOX = 79 GD_TEXTURE = 80 - -# return value for inquiries when there is no limit -GD_NOLIMIT = 2 - -# return values for GD_WSYS +GD_FOGPIXEL = 81 +GD_TEXTURE_PERSP = 82 +GD_MUXPIPES = 83 +GD_NOLIMIT = -2 GD_WSYS_NONE = 0 GD_WSYS_4S = 1 - -# return values for GD_SCRNTYPE GD_SCRNTYPE_WM = 0 GD_SCRNTYPE_NOWM = 1 - -# -# END defines for getgdesc -# - - -# -# START NURBS interface definitions -# - -# NURBS Rendering Properties N_PIXEL_TOLERANCE = 1 N_CULLING = 2 N_DISPLAY = 3 @@ -273,60 +272,39 @@ N_SUBDIVISIONS = 5 N_S_STEPS = 6 N_T_STEPS = 7 N_TILES = 8 - -N_SHADED = 1.0 - -# --------------------------------------------------------------------------- -# FLAGS FOR NURBS SURFACES AND CURVES -# -# Bit: 9876 5432 1 0 -# |tttt|nnnn|f|r| : r - 1 bit = 1 if rational coordinate exists -# : f - 1 bit = 1 if rational coordinate is before rest -# : = 0 if rational coordinate is after rest -# : nnnn - 4 bits for number of coordinates -# : tttt - 4 bits for type of data (color, position, etc.) -# -# NURBS data type -# N_T_ST 0 parametric space data -# N_T_XYZ 1 model space data -# -# rational or non-rational data and position in memory -# N_NONRATIONAL 0 non-rational data -# N_RATAFTER 1 rational data with rat coord after rest -# N_RATBEFORE 3 rational data with rat coord before rest -# -# N_MKFLAG(a,b,c) ((a<<6) | (b<<2) | c) -# -# --------------------------------------------------------------------------- -# -N_ST = 0x8 # N_MKFLAG( N_T_ST, 2, N_NONRATIONAL ) -N_STW = 0xd # N_MKFLAG( N_T_ST, 3, N_RATAFTER ) -N_WST = 0xf # N_MKFLAG( N_T_ST, 3, N_RATBEFORE ) -N_XYZ = 0x4c # N_MKFLAG( N_T_XYZ, 3, N_NONRATIONAL ) -N_XYZW = 0x51 # N_MKFLAG( N_T_XYZ, 4, N_RATAFTER ) -N_WXYZ = 0x53 # N_MKFLAG( N_T_XYZ, 4, N_RATBEFORE ) - -# -# END NURBS interface definitions -# - - -# -# START lighting model defines -# - +N_TMP1 = 9 +N_TMP2 = 10 +N_TMP3 = 11 +N_TMP4 = 12 +N_TMP5 = 13 +N_TMP6 = 14 +N_FILL = 1.0 +N_OUTLINE_POLY = 2.0 +N_OUTLINE_PATCH = 5.0 +N_ISOLINE_S = 12.0 +N_ST = 0x8 +N_STW = 0xd +N_XYZ = 0x4c +N_XYZW = 0x51 +N_TEX = 0x88 +N_TEXW = 0x8d +N_RGBA = 0xd0 +N_RGBAW = 0xd5 +N_P2D = 0x8 +N_P2DR = 0xd +N_V3D = 0x4c +N_V3DR = 0x51 +N_T2D = 0x88 +N_T2DR = 0x8d +N_C4D = 0xd0 +N_C4DR = 0xd5 LMNULL = 0.0 - -# MATRIX modes MSINGLE = 0 MPROJECTION = 1 MVIEWING = 2 - -# LIGHT constants +MTEXTURE = 3 MAXLIGHTS = 8 MAXRESTRICTIONS = 4 - -# MATERIAL properties DEFMATERIAL = 0 EMISSION = 1 AMBIENT = 2 @@ -335,19 +313,18 @@ SPECULAR = 4 SHININESS = 5 COLORINDEXES = 6 ALPHA = 7 - -# LIGHT properties DEFLIGHT = 100 LCOLOR = 101 POSITION = 102 - -# LIGHTINGMODEL properties +SPOTDIRECTION = 103 +SPOTLIGHT = 104 DEFLMODEL = 200 LOCALVIEWER = 201 ATTENUATION = 202 - -# TARGET constants +ATTENUATION2 = 203 +TWOSIDE = 204 MATERIAL = 1000 +BACKMATERIAL = 1001 LIGHT0 = 1100 LIGHT1 = 1101 LIGHT2 = 1102 @@ -357,8 +334,6 @@ LIGHT5 = 1105 LIGHT6 = 1106 LIGHT7 = 1107 LMODEL = 1200 - -# lmcolor modes LMC_COLOR = 0 LMC_EMISSION = 1 LMC_AMBIENT = 2 @@ -366,21 +341,53 @@ LMC_DIFFUSE = 3 LMC_SPECULAR = 4 LMC_AD = 5 LMC_NULL = 6 - -# -# END lighting model defines -# - - -# -# START distributed graphics library defines -# - -DGLSINK = 0 # sink connection -DGLLOCAL = 1 # local connection -DGLTSOCKET = 2 # tcp socket connection -DGL4DDN = 3 # 4DDN (DECnet) - -# -# END distributed graphics library defines -# +TX_MINFILTER = 0x100 +TX_MAGFILTER = 0x200 +TX_WRAP = 0x300 +TX_WRAP_S = 0x310 +TX_WRAP_T = 0x320 +TX_TILE = 0x400 +TX_BORDER = 0x500 +TX_NULL = 0x000 +TX_POINT = 0x110 +TX_BILINEAR = 0x220 +TX_MIPMAP = 0x120 +TX_MIPMAP_POINT = 0x121 +TX_MIPMAP_LINEAR = 0x122 +TX_MIPMAP_BILINEAR = 0x123 +TX_MIPMAP_TRILINEAR = 0x124 +TX_REPEAT = 0x301 +TX_CLAMP = 0x302 +TX_SELECT = 0x303 +TX_TEXTURE_0 = 0 +TV_MODULATE = 0x101 +TV_BLEND = 0x102 +TV_DECAL = 0x103 +TV_COLOR = 0x200 +TV_NULL = 0x000 +TV_ENV0 = 0 +TX_S = 0 +TX_T = 1 +TG_OFF = 0 +TG_ON = 1 +TG_CONTOUR = 2 +TG_LINEAR = 3 +TG_SPHEREMAP = 4 +TG_REFRACTMAP = 5 +DGLSINK = 0 +DGLLOCAL = 1 +DGLTSOCKET = 2 +DGL4DDN = 3 +PUP_CURSOR = PUP_COLOR +FATAL = 1 +WARNING = 2 +ASK_CONT = 3 +ASK_RESTART = 4 +XMAXSCREEN = 1279 +YMAXSCREEN = 1023 +XMAXMEDIUM = 1023 +YMAXMEDIUM = 767 +XMAX170 = 645 +YMAX170 = 484 +XMAXPAL = 779 +YMAXPAL = 574 diff --git a/Lib/plat-irix5/DEVICE.py b/Lib/plat-irix5/DEVICE.py index 00eddfc..2c20485 100755 --- a/Lib/plat-irix5/DEVICE.py +++ b/Lib/plat-irix5/DEVICE.py @@ -1,423 +1,399 @@ -#/************************************************************************** -# * * -# * Copyright (C) 1984, Silicon Graphics, Inc. * -# * * -# * These coded instructions, statements, and computer programs contain * -# * unpublished proprietary information of Silicon Graphics, Inc., and * -# * are protected by Federal copyright law. They may not be disclosed * -# * to third parties or copied or duplicated in any form, in whole or * -# * in part, without the prior written consent of Silicon Graphics, Inc. * -# * * -# **************************************************************************/ -#/* file with device definitions (see /usr/include/device.h) */ - -NULLDEV = 0 +NULLDEV = 0 BUTOFFSET = 1 VALOFFSET = 256 +PSEUDOFFSET = 512 +BUT2OFFSET = 3840 TIMOFFSET = 515 XKBDOFFSET = 143 -INOFFSET = 1024 -OUTOFFSET = 1033 -BUTCOUNT = 190 -VALCOUNT = 27 +BUTCOUNT = 255 +VALCOUNT = 256 TIMCOUNT = 4 XKBDCOUNT = 28 -INCOUNT = 8 -OUTCOUNT = 8 -# -# -# -# -BUT0 = 1 -BUT1 = 2 -BUT2 = 3 -BUT3 = 4 -BUT4 = 5 -BUT5 = 6 -BUT6 = 7 -BUT7 = 8 -BUT8 = 9 -BUT9 = 10 -BUT10 = 11 -BUT11 = 12 -BUT12 = 13 -BUT13 = 14 -BUT14 = 15 -BUT15 = 16 -BUT16 = 17 -BUT17 = 18 -BUT18 = 19 -BUT19 = 20 -BUT20 = 21 -BUT21 = 22 -BUT22 = 23 -BUT23 = 24 -BUT24 = 25 -BUT25 = 26 -BUT26 = 27 -BUT27 = 28 -BUT28 = 29 -BUT29 = 30 -BUT30 = 31 -BUT31 = 32 -BUT32 = 33 -BUT33 = 34 -BUT34 = 35 -BUT35 = 36 -BUT36 = 37 -BUT37 = 38 -BUT38 = 39 -BUT39 = 40 -BUT40 = 41 -BUT41 = 42 -BUT42 = 43 -BUT43 = 44 -BUT44 = 45 -BUT45 = 46 -BUT46 = 47 -BUT47 = 48 -BUT48 = 49 -BUT49 = 50 -BUT50 = 51 -BUT51 = 52 -BUT52 = 53 -BUT53 = 54 -BUT54 = 55 -BUT55 = 56 -BUT56 = 57 -BUT57 = 58 -BUT58 = 59 -BUT59 = 60 -BUT60 = 61 -BUT61 = 62 -BUT62 = 63 -BUT63 = 64 -BUT64 = 65 -BUT65 = 66 -BUT66 = 67 -BUT67 = 68 -BUT68 = 69 -BUT69 = 70 -BUT70 = 71 -BUT71 = 72 -BUT72 = 73 -BUT73 = 74 -BUT74 = 75 -BUT75 = 76 -BUT76 = 77 -BUT77 = 78 -BUT78 = 79 -BUT79 = 80 -BUT80 = 81 -BUT81 = 82 -BUT82 = 83 -MAXKBDBUT = 83 -BUT100 = 101 -BUT101 = 102 -BUT102 = 103 -BUT110 = 111 -BUT111 = 112 -BUT112 = 113 -BUT113 = 114 -BUT114 = 115 -BUT115 = 116 -BUT116 = 117 -BUT117 = 118 -BUT118 = 119 -BUT119 = 120 -BUT120 = 121 -BUT121 = 122 -BUT122 = 123 -BUT123 = 124 -BUT124 = 125 -BUT125 = 126 -BUT126 = 127 -BUT127 = 128 -BUT128 = 129 -BUT129 = 130 -BUT130 = 131 -BUT131 = 132 -BUT132 = 133 -BUT133 = 134 -BUT134 = 135 -BUT135 = 136 -BUT136 = 137 -BUT137 = 138 -BUT138 = 139 -BUT139 = 140 -BUT140 = 141 -BUT141 = 142 -BUT142 = 143 -BUT143 = 144 -BUT144 = 145 -BUT145 = 146 -BUT146 = 147 -BUT147 = 148 -BUT148 = 149 -BUT149 = 150 -BUT150 = 151 -BUT151 = 152 -BUT152 = 153 -BUT153 = 154 -BUT154 = 155 -BUT155 = 156 -BUT156 = 157 -BUT157 = 158 -BUT158 = 159 -BUT159 = 160 -BUT160 = 161 -BUT161 = 162 -BUT162 = 163 -BUT163 = 164 -BUT164 = 165 -BUT165 = 166 -BUT166 = 167 -BUT167 = 168 -BUT168 = 169 -BUT181 = 182 -BUT182 = 183 -BUT183 = 184 -BUT184 = 185 -BUT185 = 186 -BUT186 = 187 -BUT187 = 188 -BUT188 = 189 -BUT189 = 190 -MOUSE1 = 101 -MOUSE2 = 102 -MOUSE3 = 103 -LEFTMOUSE = 103 -MIDDLEMOUSE = 102 -RIGHTMOUSE = 101 -LPENBUT = 104 -BPAD0 = 105 -BPAD1 = 106 -BPAD2 = 107 -BPAD3 = 108 -LPENVALID = 109 -SWBASE = 111 -SW0 = 111 -SW1 = 112 -SW2 = 113 -SW3 = 114 -SW4 = 115 -SW5 = 116 -SW6 = 117 -SW7 = 118 -SW8 = 119 -SW9 = 120 -SW10 = 121 -SW11 = 122 -SW12 = 123 -SW13 = 124 -SW14 = 125 -SW15 = 126 -SW16 = 127 -SW17 = 128 -SW18 = 129 -SW19 = 130 -SW20 = 131 -SW21 = 132 -SW22 = 133 -SW23 = 134 -SW24 = 135 -SW25 = 136 -SW26 = 137 -SW27 = 138 -SW28 = 139 -SW29 = 140 -SW30 = 141 -SW31 = 142 -SBBASE = 182 -SBPICK = 182 -SBBUT1 = 183 -SBBUT2 = 184 -SBBUT3 = 185 -SBBUT4 = 186 -SBBUT5 = 187 -SBBUT6 = 188 -SBBUT7 = 189 -SBBUT8 = 190 -AKEY = 11 -BKEY = 36 -CKEY = 28 -DKEY = 18 -EKEY = 17 -FKEY = 19 -GKEY = 26 -HKEY = 27 -IKEY = 40 -JKEY = 34 -KKEY = 35 -LKEY = 42 -MKEY = 44 -NKEY = 37 -OKEY = 41 -PKEY = 48 -QKEY = 10 -RKEY = 24 -SKEY = 12 -TKEY = 25 -UKEY = 33 -VKEY = 29 -WKEY = 16 -XKEY = 21 -YKEY = 32 -ZKEY = 20 -ZEROKEY = 46 -ONEKEY = 8 -TWOKEY = 14 -THREEKEY = 15 -FOURKEY = 22 -FIVEKEY = 23 -SIXKEY = 30 -SEVENKEY = 31 -EIGHTKEY = 38 -NINEKEY = 39 -BREAKKEY = 1 -SETUPKEY = 2 -CTRLKEY = 3 -LEFTCTRLKEY = CTRLKEY -CAPSLOCKKEY = 4 -RIGHTSHIFTKEY = 5 -LEFTSHIFTKEY = 6 -NOSCRLKEY = 13 -ESCKEY = 7 -TABKEY = 9 -RETKEY = 51 -SPACEKEY = 83 -LINEFEEDKEY = 60 -BACKSPACEKEY = 61 -DELKEY = 62 -SEMICOLONKEY = 43 -PERIODKEY = 52 -COMMAKEY = 45 -QUOTEKEY = 50 -ACCENTGRAVEKEY = 55 -MINUSKEY = 47 -VIRGULEKEY = 53 -BACKSLASHKEY = 57 -EQUALKEY = 54 -LEFTBRACKETKEY = 49 -RIGHTBRACKETKEY = 56 -LEFTARROWKEY = 73 -DOWNARROWKEY = 74 -RIGHTARROWKEY = 80 -UPARROWKEY = 81 -PAD0 = 59 -PAD1 = 58 -PAD2 = 64 -PAD3 = 65 -PAD4 = 63 -PAD5 = 69 -PAD6 = 70 -PAD7 = 67 -PAD8 = 68 -PAD9 = 75 -PADPF1 = 72 -PADPF2 = 71 -PADPF3 = 79 -PADPF4 = 78 -PADPERIOD = 66 -PADMINUS = 76 -PADCOMMA = 77 -PADENTER = 82 -LEFTALTKEY = 143 -RIGHTALTKEY = 144 -RIGHTCTRLKEY = 145 -F1KEY = 146 -F2KEY = 147 -F3KEY = 148 -F4KEY = 149 -F5KEY = 150 -F6KEY = 151 -F7KEY = 152 -F8KEY = 153 -F9KEY = 154 -F10KEY = 155 -F11KEY = 156 -F12KEY = 157 +USERBUTOFFSET = 4096 +USERVALOFFSET = 12288 +USERPSEUDOFFSET = 16384 +BUT0 = 1 +BUT1 = 2 +BUT2 = 3 +BUT3 = 4 +BUT4 = 5 +BUT5 = 6 +BUT6 = 7 +BUT7 = 8 +BUT8 = 9 +BUT9 = 10 +BUT10 = 11 +BUT11 = 12 +BUT12 = 13 +BUT13 = 14 +BUT14 = 15 +BUT15 = 16 +BUT16 = 17 +BUT17 = 18 +BUT18 = 19 +BUT19 = 20 +BUT20 = 21 +BUT21 = 22 +BUT22 = 23 +BUT23 = 24 +BUT24 = 25 +BUT25 = 26 +BUT26 = 27 +BUT27 = 28 +BUT28 = 29 +BUT29 = 30 +BUT30 = 31 +BUT31 = 32 +BUT32 = 33 +BUT33 = 34 +BUT34 = 35 +BUT35 = 36 +BUT36 = 37 +BUT37 = 38 +BUT38 = 39 +BUT39 = 40 +BUT40 = 41 +BUT41 = 42 +BUT42 = 43 +BUT43 = 44 +BUT44 = 45 +BUT45 = 46 +BUT46 = 47 +BUT47 = 48 +BUT48 = 49 +BUT49 = 50 +BUT50 = 51 +BUT51 = 52 +BUT52 = 53 +BUT53 = 54 +BUT54 = 55 +BUT55 = 56 +BUT56 = 57 +BUT57 = 58 +BUT58 = 59 +BUT59 = 60 +BUT60 = 61 +BUT61 = 62 +BUT62 = 63 +BUT63 = 64 +BUT64 = 65 +BUT65 = 66 +BUT66 = 67 +BUT67 = 68 +BUT68 = 69 +BUT69 = 70 +BUT70 = 71 +BUT71 = 72 +BUT72 = 73 +BUT73 = 74 +BUT74 = 75 +BUT75 = 76 +BUT76 = 77 +BUT77 = 78 +BUT78 = 79 +BUT79 = 80 +BUT80 = 81 +BUT81 = 82 +BUT82 = 83 +MAXKBDBUT = 83 +BUT100 = 101 +BUT101 = 102 +BUT102 = 103 +BUT103 = 104 +BUT104 = 105 +BUT105 = 106 +BUT106 = 107 +BUT107 = 108 +BUT108 = 109 +BUT109 = 110 +BUT110 = 111 +BUT111 = 112 +BUT112 = 113 +BUT113 = 114 +BUT114 = 115 +BUT115 = 116 +BUT116 = 117 +BUT117 = 118 +BUT118 = 119 +BUT119 = 120 +BUT120 = 121 +BUT121 = 122 +BUT122 = 123 +BUT123 = 124 +BUT124 = 125 +BUT125 = 126 +BUT126 = 127 +BUT127 = 128 +BUT128 = 129 +BUT129 = 130 +BUT130 = 131 +BUT131 = 132 +BUT132 = 133 +BUT133 = 134 +BUT134 = 135 +BUT135 = 136 +BUT136 = 137 +BUT137 = 138 +BUT138 = 139 +BUT139 = 140 +BUT140 = 141 +BUT141 = 142 +BUT142 = 143 +BUT143 = 144 +BUT144 = 145 +BUT145 = 146 +BUT146 = 147 +BUT147 = 148 +BUT148 = 149 +BUT149 = 150 +BUT150 = 151 +BUT151 = 152 +BUT152 = 153 +BUT153 = 154 +BUT154 = 155 +BUT155 = 156 +BUT156 = 157 +BUT157 = 158 +BUT158 = 159 +BUT159 = 160 +BUT160 = 161 +BUT161 = 162 +BUT162 = 163 +BUT163 = 164 +BUT164 = 165 +BUT165 = 166 +BUT166 = 167 +BUT167 = 168 +BUT168 = 169 +BUT181 = 182 +BUT182 = 183 +BUT183 = 184 +BUT184 = 185 +BUT185 = 186 +BUT186 = 187 +BUT187 = 188 +BUT188 = 189 +BUT189 = 190 +MOUSE1 = 101 +MOUSE2 = 102 +MOUSE3 = 103 +LEFTMOUSE = 103 +MIDDLEMOUSE = 102 +RIGHTMOUSE = 101 +LPENBUT = 104 +BPAD0 = 105 +BPAD1 = 106 +BPAD2 = 107 +BPAD3 = 108 +LPENVALID = 109 +SWBASE = 111 +SW0 = 111 +SW1 = 112 +SW2 = 113 +SW3 = 114 +SW4 = 115 +SW5 = 116 +SW6 = 117 +SW7 = 118 +SW8 = 119 +SW9 = 120 +SW10 = 121 +SW11 = 122 +SW12 = 123 +SW13 = 124 +SW14 = 125 +SW15 = 126 +SW16 = 127 +SW17 = 128 +SW18 = 129 +SW19 = 130 +SW20 = 131 +SW21 = 132 +SW22 = 133 +SW23 = 134 +SW24 = 135 +SW25 = 136 +SW26 = 137 +SW27 = 138 +SW28 = 139 +SW29 = 140 +SW30 = 141 +SW31 = 142 +SBBASE = 182 +SBPICK = 182 +SBBUT1 = 183 +SBBUT2 = 184 +SBBUT3 = 185 +SBBUT4 = 186 +SBBUT5 = 187 +SBBUT6 = 188 +SBBUT7 = 189 +SBBUT8 = 190 +AKEY = 11 +BKEY = 36 +CKEY = 28 +DKEY = 18 +EKEY = 17 +FKEY = 19 +GKEY = 26 +HKEY = 27 +IKEY = 40 +JKEY = 34 +KKEY = 35 +LKEY = 42 +MKEY = 44 +NKEY = 37 +OKEY = 41 +PKEY = 48 +QKEY = 10 +RKEY = 24 +SKEY = 12 +TKEY = 25 +UKEY = 33 +VKEY = 29 +WKEY = 16 +XKEY = 21 +YKEY = 32 +ZKEY = 20 +ZEROKEY = 46 +ONEKEY = 8 +TWOKEY = 14 +THREEKEY = 15 +FOURKEY = 22 +FIVEKEY = 23 +SIXKEY = 30 +SEVENKEY = 31 +EIGHTKEY = 38 +NINEKEY = 39 +BREAKKEY = 1 +SETUPKEY = 2 +CTRLKEY = 3 +LEFTCTRLKEY = CTRLKEY +CAPSLOCKKEY = 4 +RIGHTSHIFTKEY = 5 +LEFTSHIFTKEY = 6 +NOSCRLKEY = 13 +ESCKEY = 7 +TABKEY = 9 +RETKEY = 51 +SPACEKEY = 83 +LINEFEEDKEY = 60 +BACKSPACEKEY = 61 +DELKEY = 62 +SEMICOLONKEY = 43 +PERIODKEY = 52 +COMMAKEY = 45 +QUOTEKEY = 50 +ACCENTGRAVEKEY = 55 +MINUSKEY = 47 +VIRGULEKEY = 53 +BACKSLASHKEY = 57 +EQUALKEY = 54 +LEFTBRACKETKEY = 49 +RIGHTBRACKETKEY = 56 +LEFTARROWKEY = 73 +DOWNARROWKEY = 74 +RIGHTARROWKEY = 80 +UPARROWKEY = 81 +PAD0 = 59 +PAD1 = 58 +PAD2 = 64 +PAD3 = 65 +PAD4 = 63 +PAD5 = 69 +PAD6 = 70 +PAD7 = 67 +PAD8 = 68 +PAD9 = 75 +PADPF1 = 72 +PADPF2 = 71 +PADPF3 = 79 +PADPF4 = 78 +PADPERIOD = 66 +PADMINUS = 76 +PADCOMMA = 77 +PADENTER = 82 +LEFTALTKEY = 143 +RIGHTALTKEY = 144 +RIGHTCTRLKEY = 145 +F1KEY = 146 +F2KEY = 147 +F3KEY = 148 +F4KEY = 149 +F5KEY = 150 +F6KEY = 151 +F7KEY = 152 +F8KEY = 153 +F9KEY = 154 +F10KEY = 155 +F11KEY = 156 +F12KEY = 157 PRINTSCREENKEY = 158 SCROLLLOCKKEY = 159 PAUSEKEY = 160 INSERTKEY = 161 -HOMEKEY = 162 -PAGEUPKEY = 163 -ENDKEY = 164 +HOMEKEY = 162 +PAGEUPKEY = 163 +ENDKEY = 164 PAGEDOWNKEY = 165 NUMLOCKKEY = 166 -PADVIRGULEKEY = 167 -PADASTERKEY = 168 -PADPLUSKEY = 169 -SGIRESERVED = 256 -DIAL0 = 257 -DIAL1 = 258 -DIAL2 = 259 -DIAL3 = 260 -DIAL4 = 261 -DIAL5 = 262 -DIAL6 = 263 -DIAL7 = 264 -DIAL8 = 265 -MOUSEX = 266 -MOUSEY = 267 -LPENX = 268 -LPENY = 269 -BPADX = 270 -BPADY = 271 -CURSORX = 272 -CURSORY = 273 -GHOSTX = 274 -GHOSTY = 275 -SBTX = 276 -SBTY = 277 -SBTZ = 278 -SBRX = 279 -SBRY = 280 -SBRZ = 281 -SBPERIOD = 282 -TIMER0 = 515 -TIMER1 = 516 -TIMER2 = 517 -TIMER3 = 518 -KEYBD = 513 -RAWKEYBD = 514 -VALMARK = 523 -GERROR = 524 -REDRAW = 528 -WMSEND = 529 -WMREPLY = 530 -WMGFCLOSE = 531 -WMTXCLOSE = 532 -MODECHANGE = 533 -INPUTCHANGE = 534 -QFULL = 535 -PIECECHANGE = 536 -WINCLOSE = 537 -QREADERROR = 538 -WINFREEZE = 539 -WINTHAW = 540 -REDRAWICONIC = 541 -WINQUIT = 542 -DEPTHCHANGE = 543 -KEYBDFNAMES = 544 -KEYBDFSTRINGS = 545 -WINSHUT = 546 -INPUT0 = 1024 -INPUT1 = 1025 -INPUT2 = 1026 -INPUT3 = 1027 -INPUT4 = 1028 -INPUT5 = 1029 -INPUT6 = 1030 -INPUT7 = 1032 -OUTPUT0 = 1033 -OUTPUT1 = 1034 -OUTPUT2 = 1035 -OUTPUT3 = 1036 -OUTPUT4 = 1037 -OUTPUT5 = 1038 -OUTPUT6 = 1039 -OUTPUT7 = 1040 +PADVIRGULEKEY = 167 +PADASTERKEY = 168 +PADPLUSKEY = 169 +SGIRESERVED = 256 +DIAL0 = 257 +DIAL1 = 258 +DIAL2 = 259 +DIAL3 = 260 +DIAL4 = 261 +DIAL5 = 262 +DIAL6 = 263 +DIAL7 = 264 +DIAL8 = 265 +MOUSEX = 266 +MOUSEY = 267 +LPENX = 268 +LPENY = 269 +BPADX = 270 +BPADY = 271 +CURSORX = 272 +CURSORY = 273 +GHOSTX = 274 +GHOSTY = 275 +SBTX = 276 +SBTY = 277 +SBTZ = 278 +SBRX = 279 +SBRY = 280 +SBRZ = 281 +SBPERIOD = 282 +TIMER0 = 515 +TIMER1 = 516 +TIMER2 = 517 +TIMER3 = 518 +KEYBD = 513 +RAWKEYBD = 514 +VALMARK = 523 +REDRAW = 528 +INPUTCHANGE = 534 +QFULL = 535 +QREADERROR = 538 +WINFREEZE = 539 +WINTHAW = 540 +REDRAWICONIC = 541 +WINQUIT = 542 +DEPTHCHANGE = 543 +WINSHUT = 546 +DRAWOVERLAY = 547 +MENUBUTTON = RIGHTMOUSE +WINCLOSE = 537 +KEYBDFNAMES = 544 +KEYBDFSTRINGS = 545 MAXSGIDEVICE = 20000 -MENUBUTTON = RIGHTMOUSE +GERROR = 524 +WMSEND = 529 +WMREPLY = 530 +WMGFCLOSE = 531 +WMTXCLOSE = 532 +MODECHANGE = 533 +PIECECHANGE = 536 diff --git a/Lib/plat-irix5/GL.py b/Lib/plat-irix5/GL.py index 65a315a..9f02f65 100755 --- a/Lib/plat-irix5/GL.py +++ b/Lib/plat-irix5/GL.py @@ -1,43 +1,12 @@ -# Constants defined in <gl.h> - -#************************************************************************** -#* * -#* Copyright (C) 1984, Silicon Graphics, Inc. * -#* * -#* These coded instructions, statements, and computer programs contain * -#* unpublished proprietary information of Silicon Graphics, Inc., and * -#* are protected by Federal copyright law. They may not be disclosed * -#* to third parties or copied or duplicated in any form, in whole or * -#* in part, without the prior written consent of Silicon Graphics, Inc. * -#* * -#************************************************************************** - -# Graphics Libary constants - -# Booleans -TRUE = 1 +NULL = 0 FALSE = 0 - -# maximum X and Y screen coordinates -XMAXSCREEN = 1279 -YMAXSCREEN = 1023 -XMAXMEDIUM = 1023 # max for medium res monitor -YMAXMEDIUM = 767 -XMAX170 = 645 # max for RS-170 -YMAX170 = 484 -XMAXPAL = 779 # max for PAL -YMAXPAL = 574 - -# various hardware/software limits +TRUE = 1 ATTRIBSTACKDEPTH = 10 VPSTACKDEPTH = 8 MATRIXSTACKDEPTH = 32 NAMESTACKDEPTH = 1025 STARTTAG = -2 ENDTAG = -3 -CPOSX_INVALID = -(2*XMAXSCREEN) - -# names for colors in color map loaded by greset BLACK = 0 RED = 1 GREEN = 2 @@ -46,30 +15,22 @@ BLUE = 4 MAGENTA = 5 CYAN = 6 WHITE = 7 - -# popup colors PUP_CLEAR = 0 PUP_COLOR = 1 PUP_BLACK = 2 PUP_WHITE = 3 - -# defines for drawmode -NORMALDRAW = 0 -PUPDRAW = 1 -OVERDRAW = 2 -UNDERDRAW = 3 -CURSORDRAW = 4 - -# defines for defpattern +NORMALDRAW = 0x010 +PUPDRAW = 0x020 +OVERDRAW = 0x040 +UNDERDRAW = 0x080 +CURSORDRAW = 0x100 +DUALDRAW = 0x200 PATTERN_16 = 16 PATTERN_32 = 32 PATTERN_64 = 64 - PATTERN_16_SIZE = 16 PATTERN_32_SIZE = 64 PATTERN_64_SIZE = 256 - -# defines for readsource SRC_AUTO = 0 SRC_FRONT = 1 SRC_BACK = 2 @@ -78,8 +39,6 @@ SRC_PUP = 4 SRC_OVER = 5 SRC_UNDER = 6 SRC_FRAMEGRABBER = 7 - -# defines for blendfunction BF_ZERO = 0 BF_ONE = 1 BF_DC = 2 @@ -90,8 +49,15 @@ BF_SA = 4 BF_MSA = 5 BF_DA = 6 BF_MDA = 7 - -# defines for zfunction +BF_MIN_SA_MDA = 8 +AF_NEVER = 0 +AF_LESS = 1 +AF_EQUAL = 2 +AF_LEQUAL = 3 +AF_GREATER = 4 +AF_NOTEQUAL = 5 +AF_GEQUAL = 6 +AF_ALWAYS = 7 ZF_NEVER = 0 ZF_LESS = 1 ZF_EQUAL = 2 @@ -100,39 +66,43 @@ ZF_GREATER = 4 ZF_NOTEQUAL = 5 ZF_GEQUAL = 6 ZF_ALWAYS = 7 - -# defines for zsource ZSRC_DEPTH = 0 ZSRC_COLOR = 1 - -# defines for pntsmooth -SMP_OFF = 0 -SMP_ON = 1 - -# defines for linesmooth -SML_OFF = 0 -SML_ON = 1 - -# defines for setpup +SMP_OFF = 0x0 +SMP_ON = 0x1 +SMP_SMOOTHER = 0x2 +SML_OFF = 0x0 +SML_ON = 0x1 +SML_SMOOTHER = 0x2 +SML_END_CORRECT = 0x4 +PYSM_OFF = 0 +PYSM_ON = 1 +PYSM_SHRINK = 2 +DT_OFF = 0 +DT_ON = 1 PUP_NONE = 0 -PUP_GREY = 1 - -# defines for glcompat +PUP_GREY = 0x1 +PUP_BOX = 0x2 +PUP_CHECK = 0x4 GLC_OLDPOLYGON = 0 GLC_ZRANGEMAP = 1 - -# defines for curstype +GLC_MQUEUERATE = 2 +GLC_SOFTATTACH = 3 +GLC_MANAGEBG = 4 +GLC_SLOWMAPCOLORS = 5 +GLC_INPUTCHANGEBUG = 6 +GLC_NOBORDERBUG = 7 +GLC_SET_VSYNC = 8 +GLC_GET_VSYNC = 9 +GLC_VSYNC_SLEEP = 10 +GLC_COMPATRATE = 15 C16X1 = 0 C16X2 = 1 C32X1 = 2 C32X2 = 3 CCROSS = 4 - -# defines for shademodel FLAT = 0 GOURAUD = 1 - -# defines for logicop LO_ZERO = 0x0 LO_AND = 0x1 LO_ANDR = 0x2 @@ -149,33 +119,76 @@ LO_NSRC = 0xc LO_ORI = 0xd LO_NAND = 0xe LO_ONE = 0xf - -# defines for pixmode -PM_SHIFT = 0 -PM_EXPAND = 1 -PM_C0 = 2 -PM_C1 = 3 -PM_ADD24 = 4 -PM_SIZE = 5 -PM_OFFSET = 6 -PM_STRIDE = 7 -PM_TTOB = 8 -PM_RTOL = 9 -PM_ZDATA = 10 -PM_WARP = 11 -PM_RDX = 12 -PM_RDY = 13 -PM_CDX = 14 -PM_CDY = 15 -PM_XSTART = 16 -PM_YSTART = 17 -PM_VO1 = 1000 # internal use only - - -# -# START defines for getgdesc -# - +INFOCUSSCRN = -2 +ST_KEEP = 0 +ST_ZERO = 1 +ST_REPLACE = 2 +ST_INCR = 3 +ST_DECR = 4 +ST_INVERT = 5 +SF_NEVER = 0 +SF_LESS = 1 +SF_EQUAL = 2 +SF_LEQUAL = 3 +SF_GREATER = 4 +SF_NOTEQUAL = 5 +SF_GEQUAL = 6 +SF_ALWAYS = 7 +SS_OFF = 0 +SS_DEPTH = 1 +PYM_FILL = 1 +PYM_POINT = 2 +PYM_LINE = 3 +PYM_HOLLOW = 4 +PYM_LINE_FAST = 5 +FG_OFF = 0 +FG_ON = 1 +FG_DEFINE = 2 +FG_VTX_EXP = 2 +FG_VTX_LIN = 3 +FG_PIX_EXP = 4 +FG_PIX_LIN = 5 +FG_VTX_EXP2 = 6 +FG_PIX_EXP2 = 7 +PM_SHIFT = 0 +PM_EXPAND = 1 +PM_C0 = 2 +PM_C1 = 3 +PM_ADD24 = 4 +PM_SIZE = 5 +PM_OFFSET = 6 +PM_STRIDE = 7 +PM_TTOB = 8 +PM_RTOL = 9 +PM_ZDATA = 10 +PM_WARP = 11 +PM_RDX = 12 +PM_RDY = 13 +PM_CDX = 14 +PM_CDY = 15 +PM_XSTART = 16 +PM_YSTART = 17 +PM_VO1 = 1000 +NAUTO = 0 +NNORMALIZE = 1 +AC_CLEAR = 0 +AC_ACCUMULATE = 1 +AC_CLEAR_ACCUMULATE = 2 +AC_RETURN = 3 +AC_MULT = 4 +AC_ADD = 5 +CP_OFF = 0 +CP_ON = 1 +CP_DEFINE = 2 +SB_RESET = 0 +SB_TRACK = 1 +SB_HOLD = 2 +RD_FREEZE = 0x00000001 +RD_ALPHAONE = 0x00000002 +RD_IGNORE_UNDERLAY = 0x00000004 +RD_IGNORE_OVERLAY = 0x00000008 +RD_IGNORE_PUP = 0x00000010 +RD_OFFSCREEN = 0x00000020 GD_XPMAX = 0 GD_YPMAX = 1 GD_XMMAX = 2 @@ -196,7 +209,7 @@ GD_BITS_NORM_ZBUFFER = 16 GD_BITS_OVER_SNG_CMODE = 17 GD_BITS_UNDR_SNG_CMODE = 18 GD_BITS_PUP_SNG_CMODE = 19 -GD_BITS_NORM_SNG_ALPHA = 21 +GD_BITS_NORM_SNG_ALPHA = 21 GD_BITS_NORM_DBL_ALPHA = 22 GD_BITS_CURSOR = 23 GD_OVERUNDER_SHARED = 24 @@ -243,28 +256,14 @@ GD_POLYMODE = 77 GD_POLYSMOOTH = 78 GD_SCRBOX = 79 GD_TEXTURE = 80 - -# return value for inquiries when there is no limit -GD_NOLIMIT = 2 - -# return values for GD_WSYS +GD_FOGPIXEL = 81 +GD_TEXTURE_PERSP = 82 +GD_MUXPIPES = 83 +GD_NOLIMIT = -2 GD_WSYS_NONE = 0 GD_WSYS_4S = 1 - -# return values for GD_SCRNTYPE GD_SCRNTYPE_WM = 0 GD_SCRNTYPE_NOWM = 1 - -# -# END defines for getgdesc -# - - -# -# START NURBS interface definitions -# - -# NURBS Rendering Properties N_PIXEL_TOLERANCE = 1 N_CULLING = 2 N_DISPLAY = 3 @@ -273,60 +272,39 @@ N_SUBDIVISIONS = 5 N_S_STEPS = 6 N_T_STEPS = 7 N_TILES = 8 - -N_SHADED = 1.0 - -# --------------------------------------------------------------------------- -# FLAGS FOR NURBS SURFACES AND CURVES -# -# Bit: 9876 5432 1 0 -# |tttt|nnnn|f|r| : r - 1 bit = 1 if rational coordinate exists -# : f - 1 bit = 1 if rational coordinate is before rest -# : = 0 if rational coordinate is after rest -# : nnnn - 4 bits for number of coordinates -# : tttt - 4 bits for type of data (color, position, etc.) -# -# NURBS data type -# N_T_ST 0 parametric space data -# N_T_XYZ 1 model space data -# -# rational or non-rational data and position in memory -# N_NONRATIONAL 0 non-rational data -# N_RATAFTER 1 rational data with rat coord after rest -# N_RATBEFORE 3 rational data with rat coord before rest -# -# N_MKFLAG(a,b,c) ((a<<6) | (b<<2) | c) -# -# --------------------------------------------------------------------------- -# -N_ST = 0x8 # N_MKFLAG( N_T_ST, 2, N_NONRATIONAL ) -N_STW = 0xd # N_MKFLAG( N_T_ST, 3, N_RATAFTER ) -N_WST = 0xf # N_MKFLAG( N_T_ST, 3, N_RATBEFORE ) -N_XYZ = 0x4c # N_MKFLAG( N_T_XYZ, 3, N_NONRATIONAL ) -N_XYZW = 0x51 # N_MKFLAG( N_T_XYZ, 4, N_RATAFTER ) -N_WXYZ = 0x53 # N_MKFLAG( N_T_XYZ, 4, N_RATBEFORE ) - -# -# END NURBS interface definitions -# - - -# -# START lighting model defines -# - +N_TMP1 = 9 +N_TMP2 = 10 +N_TMP3 = 11 +N_TMP4 = 12 +N_TMP5 = 13 +N_TMP6 = 14 +N_FILL = 1.0 +N_OUTLINE_POLY = 2.0 +N_OUTLINE_PATCH = 5.0 +N_ISOLINE_S = 12.0 +N_ST = 0x8 +N_STW = 0xd +N_XYZ = 0x4c +N_XYZW = 0x51 +N_TEX = 0x88 +N_TEXW = 0x8d +N_RGBA = 0xd0 +N_RGBAW = 0xd5 +N_P2D = 0x8 +N_P2DR = 0xd +N_V3D = 0x4c +N_V3DR = 0x51 +N_T2D = 0x88 +N_T2DR = 0x8d +N_C4D = 0xd0 +N_C4DR = 0xd5 LMNULL = 0.0 - -# MATRIX modes MSINGLE = 0 MPROJECTION = 1 MVIEWING = 2 - -# LIGHT constants +MTEXTURE = 3 MAXLIGHTS = 8 MAXRESTRICTIONS = 4 - -# MATERIAL properties DEFMATERIAL = 0 EMISSION = 1 AMBIENT = 2 @@ -335,19 +313,18 @@ SPECULAR = 4 SHININESS = 5 COLORINDEXES = 6 ALPHA = 7 - -# LIGHT properties DEFLIGHT = 100 LCOLOR = 101 POSITION = 102 - -# LIGHTINGMODEL properties +SPOTDIRECTION = 103 +SPOTLIGHT = 104 DEFLMODEL = 200 LOCALVIEWER = 201 ATTENUATION = 202 - -# TARGET constants +ATTENUATION2 = 203 +TWOSIDE = 204 MATERIAL = 1000 +BACKMATERIAL = 1001 LIGHT0 = 1100 LIGHT1 = 1101 LIGHT2 = 1102 @@ -357,8 +334,6 @@ LIGHT5 = 1105 LIGHT6 = 1106 LIGHT7 = 1107 LMODEL = 1200 - -# lmcolor modes LMC_COLOR = 0 LMC_EMISSION = 1 LMC_AMBIENT = 2 @@ -366,21 +341,53 @@ LMC_DIFFUSE = 3 LMC_SPECULAR = 4 LMC_AD = 5 LMC_NULL = 6 - -# -# END lighting model defines -# - - -# -# START distributed graphics library defines -# - -DGLSINK = 0 # sink connection -DGLLOCAL = 1 # local connection -DGLTSOCKET = 2 # tcp socket connection -DGL4DDN = 3 # 4DDN (DECnet) - -# -# END distributed graphics library defines -# +TX_MINFILTER = 0x100 +TX_MAGFILTER = 0x200 +TX_WRAP = 0x300 +TX_WRAP_S = 0x310 +TX_WRAP_T = 0x320 +TX_TILE = 0x400 +TX_BORDER = 0x500 +TX_NULL = 0x000 +TX_POINT = 0x110 +TX_BILINEAR = 0x220 +TX_MIPMAP = 0x120 +TX_MIPMAP_POINT = 0x121 +TX_MIPMAP_LINEAR = 0x122 +TX_MIPMAP_BILINEAR = 0x123 +TX_MIPMAP_TRILINEAR = 0x124 +TX_REPEAT = 0x301 +TX_CLAMP = 0x302 +TX_SELECT = 0x303 +TX_TEXTURE_0 = 0 +TV_MODULATE = 0x101 +TV_BLEND = 0x102 +TV_DECAL = 0x103 +TV_COLOR = 0x200 +TV_NULL = 0x000 +TV_ENV0 = 0 +TX_S = 0 +TX_T = 1 +TG_OFF = 0 +TG_ON = 1 +TG_CONTOUR = 2 +TG_LINEAR = 3 +TG_SPHEREMAP = 4 +TG_REFRACTMAP = 5 +DGLSINK = 0 +DGLLOCAL = 1 +DGLTSOCKET = 2 +DGL4DDN = 3 +PUP_CURSOR = PUP_COLOR +FATAL = 1 +WARNING = 2 +ASK_CONT = 3 +ASK_RESTART = 4 +XMAXSCREEN = 1279 +YMAXSCREEN = 1023 +XMAXMEDIUM = 1023 +YMAXMEDIUM = 767 +XMAX170 = 645 +YMAX170 = 484 +XMAXPAL = 779 +YMAXPAL = 574 |