PageRenderTime 396ms CodeModel.GetById 169ms app.highlight 68ms RepoModel.GetById 144ms app.codeStats 2ms

/lib/SDL/Constants.pm

http://github.com/PerlGameDev/SDL
Perl | 3724 lines | 3665 code | 55 blank | 4 comment | 3 complexity | 0504d0ec95c26bb1949b85c1eff5be94 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

   1#!/usr/bin/env perl
   2package SDL::Constants;
   3
   4use strict;
   5use warnings;
   6use base 'Exporter';
   7use Config;
   8
   9our $VERSION = 2.548;
  10
  11our @EXPORT_OK   = ();
  12our %EXPORT_TAGS = (
  13	'SDL/defaults' => [
  14		qw(
  15			SDL_LIL_ENDIAN
  16			SDL_BIG_ENDIAN
  17			SDL_BYTEORDER
  18
  19			)
  20	],
  21	'SDL/init' => [
  22		qw(
  23			SDL_INIT_AUDIO
  24			SDL_INIT_CDROM
  25			SDL_INIT_EVENTTHREAD
  26			SDL_INIT_EVERYTHING
  27			SDL_INIT_JOYSTICK
  28			SDL_INIT_NOPARACHUTE
  29			SDL_INIT_TIMER
  30			SDL_INIT_VIDEO
  31			)
  32	],
  33	'SDL::Audio/format' => [
  34		qw(
  35			AUDIO_U8
  36			AUDIO_S8
  37			AUDIO_U16LSB
  38			AUDIO_S16LSB
  39			AUDIO_U16MSB
  40			AUDIO_S16MSB
  41			AUDIO_U16
  42			AUDIO_S16
  43			AUDIO_U16SYS
  44			AUDIO_S16SYS
  45			)
  46	],
  47	'SDL::Audio/status' => [
  48		qw(
  49			SDL_AUDIO_STOPPED
  50			SDL_AUDIO_PLAYING
  51			SDL_AUDIO_PAUSED
  52			)
  53	],
  54	'SDL::CDROM/defaults' => [
  55		qw(
  56			CD_FPS
  57			SDL_MAX_TRACKS
  58			)
  59	],
  60	'SDL::CDROM/status' => [
  61		qw(
  62			CD_TRAYEMPTY
  63			CD_STOPPED
  64			CD_PLAYING
  65			CD_PAUSED
  66			CD_ERROR
  67			)
  68	],
  69	'SDL::CDROM/track_type' => [
  70		qw(
  71			SDL_AUDIO_TRACK
  72			SDL_DATA_TRACK
  73			)
  74	],
  75	'SDL::Events/type' => [
  76		qw(
  77			SDL_ACTIVEEVENT
  78			SDL_KEYDOWN
  79			SDL_KEYUP
  80			SDL_MOUSEMOTION
  81			SDL_MOUSEBUTTONDOWN
  82			SDL_MOUSEBUTTONUP
  83			SDL_JOYAXISMOTION
  84			SDL_JOYBALLMOTION
  85			SDL_JOYHATMOTION
  86			SDL_JOYBUTTONDOWN
  87			SDL_JOYBUTTONUP
  88			SDL_QUIT
  89			SDL_SYSWMEVENT
  90			SDL_VIDEORESIZE
  91			SDL_VIDEOEXPOSE
  92			SDL_USEREVENT
  93			SDL_NUMEVENTS
  94			)
  95	],
  96	'SDL::Events/mask' => [
  97		qw(
  98			SDL_EVENTMASK
  99			SDL_ACTIVEEVENTMASK
 100			SDL_KEYDOWNMASK
 101			SDL_KEYUPMASK
 102			SDL_KEYEVENTMASK
 103			SDL_MOUSEMOTIONMASK
 104			SDL_MOUSEBUTTONDOWNMASK
 105			SDL_MOUSEBUTTONUPMASK
 106			SDL_MOUSEEVENTMASK
 107			SDL_JOYAXISMOTIONMASK
 108			SDL_JOYBALLMOTIONMASK
 109			SDL_JOYHATMOTIONMASK
 110			SDL_JOYBUTTONDOWNMASK
 111			SDL_JOYBUTTONUPMASK
 112			SDL_JOYEVENTMASK
 113			SDL_VIDEORESIZEMASK
 114			SDL_VIDEOEXPOSEMASK
 115			SDL_QUITMASK
 116			SDL_SYSWMEVENTMASK
 117			SDL_ALLEVENTS
 118			)
 119	],
 120	'SDL::Events/action' => [
 121		qw(
 122			SDL_ADDEVENT
 123			SDL_PEEKEVENT
 124			SDL_GETEVENT
 125			)
 126	],
 127	'SDL::Events/state' => [
 128		qw(
 129			SDL_QUERY
 130			SDL_IGNORE
 131			SDL_DISABLE
 132			SDL_ENABLE
 133			SDL_RELEASED
 134			SDL_PRESSED
 135			)
 136	],
 137	'SDL::Events/hat' => [
 138		qw(
 139			SDL_HAT_CENTERED
 140			SDL_HAT_UP
 141			SDL_HAT_RIGHT
 142			SDL_HAT_DOWN
 143			SDL_HAT_LEFT
 144			SDL_HAT_RIGHTUP
 145			SDL_HAT_RIGHTDOWN
 146			SDL_HAT_LEFTUP
 147			SDL_HAT_LEFTDOWN
 148			)
 149	],
 150	'SDL::Events/app' => [
 151		qw(
 152			SDL_APPMOUSEFOCUS
 153			SDL_APPINPUTFOCUS
 154			SDL_APPACTIVE
 155			)
 156	],
 157	'SDL::Events/button' => [
 158		qw(
 159			SDL_BUTTON
 160			SDL_BUTTON_LEFT
 161			SDL_BUTTON_MIDDLE
 162			SDL_BUTTON_RIGHT
 163			SDL_BUTTON_WHEELUP
 164			SDL_BUTTON_WHEELDOWN
 165			SDL_BUTTON_X1
 166			SDL_BUTTON_X2
 167			SDL_BUTTON_LMASK
 168			SDL_BUTTON_MMASK
 169			SDL_BUTTON_RMASK
 170			SDL_BUTTON_X1MASK
 171			SDL_BUTTON_X2MASK
 172			)
 173	],
 174	'SDL::Events/keysym' => [
 175		qw(
 176			SDLK_UNKNOWN
 177			SDLK_FIRST
 178			SDLK_BACKSPACE
 179			SDLK_TAB
 180			SDLK_CLEAR
 181			SDLK_RETURN
 182			SDLK_PAUSE
 183			SDLK_ESCAPE
 184			SDLK_SPACE
 185			SDLK_EXCLAIM
 186			SDLK_QUOTEDBL
 187			SDLK_HASH
 188			SDLK_DOLLAR
 189			SDLK_AMPERSAND
 190			SDLK_QUOTE
 191			SDLK_LEFTPAREN
 192			SDLK_RIGHTPAREN
 193			SDLK_ASTERISK
 194			SDLK_PLUS
 195			SDLK_COMMA
 196			SDLK_MINUS
 197			SDLK_PERIOD
 198			SDLK_SLASH
 199			SDLK_0
 200			SDLK_1
 201			SDLK_2
 202			SDLK_3
 203			SDLK_4
 204			SDLK_5
 205			SDLK_6
 206			SDLK_7
 207			SDLK_8
 208			SDLK_9
 209			SDLK_COLON
 210			SDLK_SEMICOLON
 211			SDLK_LESS
 212			SDLK_EQUALS
 213			SDLK_GREATER
 214			SDLK_QUESTION
 215			SDLK_AT
 216			SDLK_LEFTBRACKET
 217			SDLK_BACKSLASH
 218			SDLK_RIGHTBRACKET
 219			SDLK_CARET
 220			SDLK_UNDERSCORE
 221			SDLK_BACKQUOTE
 222			SDLK_a
 223			SDLK_b
 224			SDLK_c
 225			SDLK_d
 226			SDLK_e
 227			SDLK_f
 228			SDLK_g
 229			SDLK_h
 230			SDLK_i
 231			SDLK_j
 232			SDLK_k
 233			SDLK_l
 234			SDLK_m
 235			SDLK_n
 236			SDLK_o
 237			SDLK_p
 238			SDLK_q
 239			SDLK_r
 240			SDLK_s
 241			SDLK_t
 242			SDLK_u
 243			SDLK_v
 244			SDLK_w
 245			SDLK_x
 246			SDLK_y
 247			SDLK_z
 248			SDLK_DELETE
 249			SDLK_WORLD_0
 250			SDLK_WORLD_1
 251			SDLK_WORLD_2
 252			SDLK_WORLD_3
 253			SDLK_WORLD_4
 254			SDLK_WORLD_5
 255			SDLK_WORLD_6
 256			SDLK_WORLD_7
 257			SDLK_WORLD_8
 258			SDLK_WORLD_9
 259			SDLK_WORLD_10
 260			SDLK_WORLD_11
 261			SDLK_WORLD_12
 262			SDLK_WORLD_13
 263			SDLK_WORLD_14
 264			SDLK_WORLD_15
 265			SDLK_WORLD_16
 266			SDLK_WORLD_17
 267			SDLK_WORLD_18
 268			SDLK_WORLD_19
 269			SDLK_WORLD_20
 270			SDLK_WORLD_21
 271			SDLK_WORLD_22
 272			SDLK_WORLD_23
 273			SDLK_WORLD_24
 274			SDLK_WORLD_25
 275			SDLK_WORLD_26
 276			SDLK_WORLD_27
 277			SDLK_WORLD_28
 278			SDLK_WORLD_29
 279			SDLK_WORLD_30
 280			SDLK_WORLD_31
 281			SDLK_WORLD_32
 282			SDLK_WORLD_33
 283			SDLK_WORLD_34
 284			SDLK_WORLD_35
 285			SDLK_WORLD_36
 286			SDLK_WORLD_37
 287			SDLK_WORLD_38
 288			SDLK_WORLD_39
 289			SDLK_WORLD_40
 290			SDLK_WORLD_41
 291			SDLK_WORLD_42
 292			SDLK_WORLD_43
 293			SDLK_WORLD_44
 294			SDLK_WORLD_45
 295			SDLK_WORLD_46
 296			SDLK_WORLD_47
 297			SDLK_WORLD_48
 298			SDLK_WORLD_49
 299			SDLK_WORLD_50
 300			SDLK_WORLD_51
 301			SDLK_WORLD_52
 302			SDLK_WORLD_53
 303			SDLK_WORLD_54
 304			SDLK_WORLD_55
 305			SDLK_WORLD_56
 306			SDLK_WORLD_57
 307			SDLK_WORLD_58
 308			SDLK_WORLD_59
 309			SDLK_WORLD_60
 310			SDLK_WORLD_61
 311			SDLK_WORLD_62
 312			SDLK_WORLD_63
 313			SDLK_WORLD_64
 314			SDLK_WORLD_65
 315			SDLK_WORLD_66
 316			SDLK_WORLD_67
 317			SDLK_WORLD_68
 318			SDLK_WORLD_69
 319			SDLK_WORLD_70
 320			SDLK_WORLD_71
 321			SDLK_WORLD_72
 322			SDLK_WORLD_73
 323			SDLK_WORLD_74
 324			SDLK_WORLD_75
 325			SDLK_WORLD_76
 326			SDLK_WORLD_77
 327			SDLK_WORLD_78
 328			SDLK_WORLD_79
 329			SDLK_WORLD_80
 330			SDLK_WORLD_81
 331			SDLK_WORLD_82
 332			SDLK_WORLD_83
 333			SDLK_WORLD_84
 334			SDLK_WORLD_85
 335			SDLK_WORLD_86
 336			SDLK_WORLD_87
 337			SDLK_WORLD_88
 338			SDLK_WORLD_89
 339			SDLK_WORLD_90
 340			SDLK_WORLD_91
 341			SDLK_WORLD_92
 342			SDLK_WORLD_93
 343			SDLK_WORLD_94
 344			SDLK_WORLD_95
 345			SDLK_KP0
 346			SDLK_KP1
 347			SDLK_KP2
 348			SDLK_KP3
 349			SDLK_KP4
 350			SDLK_KP5
 351			SDLK_KP6
 352			SDLK_KP7
 353			SDLK_KP8
 354			SDLK_KP9
 355			SDLK_KP_PERIOD
 356			SDLK_KP_DIVIDE
 357			SDLK_KP_MULTIPLY
 358			SDLK_KP_MINUS
 359			SDLK_KP_PLUS
 360			SDLK_KP_ENTER
 361			SDLK_KP_EQUALS
 362			SDLK_UP
 363			SDLK_DOWN
 364			SDLK_RIGHT
 365			SDLK_LEFT
 366			SDLK_INSERT
 367			SDLK_HOME
 368			SDLK_END
 369			SDLK_PAGEUP
 370			SDLK_PAGEDOWN
 371			SDLK_F1
 372			SDLK_F2
 373			SDLK_F3
 374			SDLK_F4
 375			SDLK_F5
 376			SDLK_F6
 377			SDLK_F7
 378			SDLK_F8
 379			SDLK_F9
 380			SDLK_F10
 381			SDLK_F11
 382			SDLK_F12
 383			SDLK_F13
 384			SDLK_F14
 385			SDLK_F15
 386			SDLK_NUMLOCK
 387			SDLK_CAPSLOCK
 388			SDLK_SCROLLOCK
 389			SDLK_RSHIFT
 390			SDLK_LSHIFT
 391			SDLK_RCTRL
 392			SDLK_LCTRL
 393			SDLK_RALT
 394			SDLK_LALT
 395			SDLK_RMETA
 396			SDLK_LMETA
 397			SDLK_LSUPER
 398			SDLK_RSUPER
 399			SDLK_MODE
 400			SDLK_COMPOSE
 401			SDLK_HELP
 402			SDLK_PRINT
 403			SDLK_SYSREQ
 404			SDLK_BREAK
 405			SDLK_MENU
 406			SDLK_POWER
 407			SDLK_EURO
 408			SDLK_UNDO
 409			)
 410	],
 411	'SDL::Events/keymod' => [
 412		qw(
 413			KMOD_NONE
 414			KMOD_LSHIFT
 415			KMOD_RSHIFT
 416			KMOD_LCTRL
 417			KMOD_RCTRL
 418			KMOD_LALT
 419			KMOD_RALT
 420			KMOD_LMETA
 421			KMOD_RMETA
 422			KMOD_NUM
 423			KMOD_CAPS
 424			KMOD_MODE
 425			KMOD_RESERVED
 426			KMOD_CTRL
 427			KMOD_SHIFT
 428			KMOD_ALT
 429			KMOD_META
 430			)
 431	],
 432	'SDL::GFX/smoothing' => [
 433		qw(
 434			SMOOTHING_OFF
 435			SMOOTHING_ON
 436			)
 437	],
 438	'SDL::Image/init' => [
 439		qw(
 440			IMG_INIT_JPG
 441			IMG_INIT_PNG
 442			IMG_INIT_TIF
 443			)
 444	],
 445	'SDL::Net/defaults' => [
 446		qw(
 447			INADDR_ANY
 448			INADDR_NONE
 449			INADDR_BROADCAST
 450			SDLNET_MAX_UDPCHANNELS
 451			SDLNET_MAX_UDPADDRESSES
 452			)
 453	],
 454	'SDL::Mixer/init' => [
 455		qw(
 456			MIX_INIT_FLAC
 457			MIX_INIT_MOD
 458			MIX_INIT_MP3
 459			MIX_INIT_OGG
 460			)
 461	],
 462	'SDL::Mixer/defaults' => [
 463		qw(
 464			MIX_CHANNELS
 465			MIX_DEFAULT_FORMAT
 466			MIX_DEFAULT_FREQUENCY
 467			MIX_DEFAULT_CHANNELS
 468			MIX_MAX_VOLUME
 469			MIX_CHANNEL_POST
 470			)
 471	],
 472	'SDL::Mixer/fading' => [
 473		qw(
 474			MIX_NO_FADING
 475			MIX_FADING_OUT
 476			MIX_FADING_IN
 477			)
 478	],
 479	'SDL::Mixer/type' => [
 480		qw(
 481			MUS_NONE
 482			MUS_CMD
 483			MUS_WAV
 484			MUS_MOD
 485			MUS_MID
 486			MUS_OGG
 487			MUS_MP3
 488			MUS_MP3_MAD
 489			MUS_MP3_FLAC
 490			)
 491	],
 492	'SDL::Pango/direction' => [
 493		qw(
 494			SDLPANGO_DIRECTION_LTR
 495			SDLPANGO_DIRECTION_RTL
 496			SDLPANGO_DIRECTION_WEAK_LTR
 497			SDLPANGO_DIRECTION_WEAK_RTL
 498			SDLPANGO_DIRECTION_NEUTRAL
 499			)
 500	],
 501	'SDL::Pango/align' => [
 502		qw(
 503			SDLPANGO_ALIGN_LEFT
 504			SDLPANGO_ALIGN_CENTER
 505			SDLPANGO_ALIGN_RIGHT
 506			)
 507	],
 508	'SDL::RWOps/defaults' => [
 509		qw(
 510			RW_SEEK_SET
 511			RW_SEEK_CUR
 512			RW_SEEK_END
 513			)
 514	],
 515	'SDL::TTF/hinting' => [
 516		qw(
 517			TTF_HINTING_NORMAL
 518			TTF_HINTING_LIGHT
 519			TTF_HINTING_MONO
 520			TTF_HINTING_NONE
 521			)
 522	],
 523	'SDL::TTF/style' => [
 524		qw(
 525			TTF_STYLE_NORMAL
 526			TTF_STYLE_BOLD
 527			TTF_STYLE_ITALIC
 528			TTF_STYLE_UNDERLINE
 529			TTF_STYLE_STRIKETHROUGH
 530			)
 531	],
 532	'SDL::Video/color' => [
 533		qw(
 534			SDL_ALPHA_OPAQUE
 535			SDL_ALPHA_TRANSPARENT
 536			)
 537	],
 538	'SDL::Video/surface' => [
 539		qw(
 540			SDL_SWSURFACE
 541			SDL_HWSURFACE
 542			SDL_ASYNCBLIT
 543			)
 544	],
 545	'SDL::Video/video' => [
 546		qw(
 547			SDL_SWSURFACE
 548			SDL_HWSURFACE
 549			SDL_ASYNCBLIT
 550			SDL_ANYFORMAT
 551			SDL_HWPALETTE
 552			SDL_DOUBLEBUF
 553			SDL_FULLSCREEN
 554			SDL_OPENGL
 555			SDL_OPENGLBLIT
 556			SDL_RESIZABLE
 557			SDL_NOFRAME
 558			SDL_HWACCEL
 559			SDL_SRCCOLORKEY
 560			SDL_RLEACCELOK
 561			SDL_RLEACCEL
 562			SDL_SRCALPHA
 563			SDL_PREALLOC
 564			)
 565	],
 566	'SDL::Video/overlay' => [
 567		qw(
 568			SDL_YV12_OVERLAY
 569			SDL_IYUV_OVERLAY
 570			SDL_YUY2_OVERLAY
 571			SDL_UYVY_OVERLAY
 572			SDL_YVYU_OVERLAY
 573			)
 574	],
 575	'SDL::Video/palette' => [
 576		qw(
 577			SDL_LOGPAL
 578			SDL_PHYSPAL
 579			)
 580	],
 581	'SDL::Video/grab' => [
 582		qw(
 583			SDL_GRAB_QUERY
 584			SDL_GRAB_OFF
 585			SDL_GRAB_ON
 586			SDL_GRAB_FULLSCREEN
 587			)
 588	],
 589	'SDL::Video/gl' => [
 590		qw(
 591			SDL_GL_RED_SIZE
 592			SDL_GL_GREEN_SIZE
 593			SDL_GL_BLUE_SIZE
 594			SDL_GL_ALPHA_SIZE
 595			SDL_GL_BUFFER_SIZE
 596			SDL_GL_DOUBLEBUFFER
 597			SDL_GL_DEPTH_SIZE
 598			SDL_GL_STENCIL_SIZE
 599			SDL_GL_ACCUM_RED_SIZE
 600			SDL_GL_ACCUM_GREEN_SIZE
 601			SDL_GL_ACCUM_BLUE_SIZE
 602			SDL_GL_ACCUM_ALPHA_SIZE
 603			SDL_GL_STEREO
 604			SDL_GL_MULTISAMPLEBUFFERS
 605			SDL_GL_MULTISAMPLESAMPLES
 606			SDL_GL_ACCELERATED_VISUAL
 607			SDL_GL_SWAP_CONTROL
 608			)
 609	],
 610);
 611
 612# 1. all constants from %EXPORT_TAGS are gonna pushed into @EXPORT
 613# 2. tags like 'package/tag' and 'package/next_tag' are merged into tag 'package'
 614my %seen;
 615foreach my $package ( keys %EXPORT_TAGS ) {
 616	my $super_package = $package;
 617	$super_package =~ s/\/.*$//;
 618	push( @{ $EXPORT_TAGS{$super_package} }, @{ $EXPORT_TAGS{$package} } )
 619		if $super_package ne $package;
 620	push( @EXPORT_OK, grep { !$seen{$_}++ } @{ $EXPORT_TAGS{$package} } );
 621}
 622
 623use constant {
 624	SDL_INIT_TIMER       => 0x00000001,
 625	SDL_INIT_AUDIO       => 0x00000010,
 626	SDL_INIT_VIDEO       => 0x00000020,
 627	SDL_INIT_CDROM       => 0x00000100,
 628	SDL_INIT_JOYSTICK    => 0x00000200,
 629	SDL_INIT_NOPARACHUTE => 0x00100000,
 630	SDL_INIT_EVENTTHREAD => 0x01000000,
 631	SDL_INIT_EVERYTHING  => 0x0000FFFF,
 632}; # SDL/init
 633
 634use constant {
 635	SDL_LIL_ENDIAN => 1234,
 636	SDL_BIG_ENDIAN => 4321,
 637	SDL_BYTEORDER  => $Config{byteorder}
 638}; # SDL/defaults
 639
 640use constant {
 641	AUDIO_U8     => 0x0008,
 642	AUDIO_S8     => 0x8008,
 643	AUDIO_U16LSB => 0x0010,
 644	AUDIO_S16LSB => 0x8010,
 645	AUDIO_U16MSB => 0x1010,
 646	AUDIO_S16MSB => 0x9010,
 647	AUDIO_U16    => 0x0010,
 648	AUDIO_S16    => 0x8010,
 649}; # SDL::Audio/format
 650
 651use constant {
 652	AUDIO_U16SYS => ( $Config{byteorder} == 1234 ? 0x0010 : 0x1010 ),
 653	AUDIO_S16SYS => ( $Config{byteorder} == 1234 ? 0x8010 : 0x9010 ),
 654}; # SDL::Audio/format
 655
 656use constant {
 657	SDL_AUDIO_STOPPED => 0,
 658	SDL_AUDIO_PLAYING => 1,
 659	SDL_AUDIO_PAUSED  => 2,
 660}; # SDL::Audio/status
 661
 662use constant {
 663	CD_FPS         => 75,
 664	SDL_MAX_TRACKS => 99,
 665}; # SDL::CDROM/defaults
 666
 667use constant {
 668	CD_TRAYEMPTY => 0,
 669	CD_STOPPED   => 1,
 670	CD_PLAYING   => 2,
 671	CD_PAUSED    => 3,
 672	CD_ERROR     => -1,
 673}; # SDL::CDROM/status
 674
 675use constant {
 676	SDL_AUDIO_TRACK => 0,
 677	SDL_DATA_TRACK  => 4,
 678}; # SDL::CDROM/track_type
 679
 680use constant {
 681	SDL_ACTIVEEVENT     => 1,
 682	SDL_KEYDOWN         => 2,
 683	SDL_KEYUP           => 3,
 684	SDL_MOUSEMOTION     => 4,
 685	SDL_MOUSEBUTTONDOWN => 5,
 686	SDL_MOUSEBUTTONUP   => 6,
 687	SDL_JOYAXISMOTION   => 7,
 688	SDL_JOYBALLMOTION   => 8,
 689	SDL_JOYHATMOTION    => 9,
 690	SDL_JOYBUTTONDOWN   => 10,
 691	SDL_JOYBUTTONUP     => 11,
 692	SDL_QUIT            => 12,
 693	SDL_SYSWMEVENT      => 13,
 694	SDL_VIDEORESIZE     => 16,
 695	SDL_VIDEOEXPOSE     => 17,
 696	SDL_USEREVENT       => 24,
 697	SDL_NUMEVENTS       => 32,
 698}; # SDL::Events/type
 699
 700sub SDL_EVENTMASK { return 1 << shift; }
 701
 702use constant {
 703	SDL_ACTIVEEVENTMASK     => SDL_EVENTMASK(SDL_ACTIVEEVENT),
 704	SDL_KEYDOWNMASK         => SDL_EVENTMASK(SDL_KEYDOWN),
 705	SDL_KEYUPMASK           => SDL_EVENTMASK(SDL_KEYUP),
 706	SDL_KEYEVENTMASK        => SDL_EVENTMASK(SDL_KEYDOWN) | SDL_EVENTMASK(SDL_KEYUP),
 707	SDL_MOUSEMOTIONMASK     => SDL_EVENTMASK(SDL_MOUSEMOTION),
 708	SDL_MOUSEBUTTONDOWNMASK => SDL_EVENTMASK(SDL_MOUSEBUTTONDOWN),
 709	SDL_MOUSEBUTTONUPMASK   => SDL_EVENTMASK(SDL_MOUSEBUTTONUP),
 710	SDL_MOUSEEVENTMASK      => SDL_EVENTMASK(SDL_MOUSEMOTION) |
 711		SDL_EVENTMASK(SDL_MOUSEBUTTONDOWN) | SDL_EVENTMASK(SDL_MOUSEBUTTONUP),
 712	SDL_JOYAXISMOTIONMASK => SDL_EVENTMASK(SDL_JOYAXISMOTION),
 713	SDL_JOYBALLMOTIONMASK => SDL_EVENTMASK(SDL_JOYBALLMOTION),
 714	SDL_JOYHATMOTIONMASK  => SDL_EVENTMASK(SDL_JOYHATMOTION),
 715	SDL_JOYBUTTONDOWNMASK => SDL_EVENTMASK(SDL_JOYBUTTONDOWN),
 716	SDL_JOYBUTTONUPMASK   => SDL_EVENTMASK(SDL_JOYBUTTONUP),
 717	SDL_JOYEVENTMASK      => SDL_EVENTMASK(SDL_JOYAXISMOTION) |
 718		SDL_EVENTMASK(SDL_JOYBALLMOTION) | SDL_EVENTMASK(SDL_JOYHATMOTION) |
 719		SDL_EVENTMASK(SDL_JOYBUTTONDOWN) | SDL_EVENTMASK(SDL_JOYBUTTONUP),
 720	SDL_VIDEORESIZEMASK => SDL_EVENTMASK(SDL_VIDEORESIZE),
 721	SDL_VIDEOEXPOSEMASK => SDL_EVENTMASK(SDL_VIDEOEXPOSE),
 722	SDL_QUITMASK        => SDL_EVENTMASK(SDL_QUIT),
 723	SDL_SYSWMEVENTMASK  => SDL_EVENTMASK(SDL_SYSWMEVENT),
 724	SDL_ALLEVENTS       => 0xFFFFFFFF,
 725}; # SDL::Events/mask
 726
 727use constant {
 728	SDL_ADDEVENT  => 0,
 729	SDL_PEEKEVENT => 1,
 730	SDL_GETEVENT  => 2,
 731}; # SDL::Events/action
 732
 733use constant {
 734	SDL_QUERY    => -1,
 735	SDL_IGNORE   => 0,
 736	SDL_DISABLE  => 0,
 737	SDL_ENABLE   => 1,
 738	SDL_RELEASED => 0,
 739	SDL_PRESSED  => 1,
 740}; # SDL::Events/state
 741
 742use constant {
 743	SDL_HAT_CENTERED  => 0x00,
 744	SDL_HAT_UP        => 0x01,
 745	SDL_HAT_RIGHT     => 0x02,
 746	SDL_HAT_DOWN      => 0x04,
 747	SDL_HAT_LEFT      => 0x08,
 748	SDL_HAT_RIGHTUP   => ( 0x02 | 0x01 ),
 749	SDL_HAT_RIGHTDOWN => ( 0x02 | 0x04 ),
 750	SDL_HAT_LEFTUP    => ( 0x08 | 0x01 ),
 751	SDL_HAT_LEFTDOWN  => ( 0x08 | 0x04 ),
 752}; # SDL::Events/hat
 753
 754use constant {
 755	SDL_APPMOUSEFOCUS => 0x01,
 756	SDL_APPINPUTFOCUS => 0x02,
 757	SDL_APPACTIVE     => 0x04,
 758}; # SDL::Events/app
 759
 760sub SDL_BUTTON { return ( 1 << ( ( $_[0] ) - 1 ) ); }
 761
 762use constant {
 763	SDL_BUTTON_LEFT      => 1,
 764	SDL_BUTTON_MIDDLE    => 2,
 765	SDL_BUTTON_RIGHT     => 3,
 766	SDL_BUTTON_WHEELUP   => 4,
 767	SDL_BUTTON_WHEELDOWN => 5,
 768	SDL_BUTTON_X1        => 6,
 769	SDL_BUTTON_X2        => 7,
 770	SDL_BUTTON_LMASK     => SDL_BUTTON(1),
 771	SDL_BUTTON_MMASK     => SDL_BUTTON(2),
 772	SDL_BUTTON_RMASK     => SDL_BUTTON(3),
 773	SDL_BUTTON_X1MASK    => SDL_BUTTON(6),
 774	SDL_BUTTON_X2MASK    => SDL_BUTTON(7),
 775}; # SDL::Events/button
 776
 777use constant {
 778	SDLK_UNKNOWN      => 0,
 779	SDLK_FIRST        => 0,
 780	SDLK_BACKSPACE    => 8,
 781	SDLK_TAB          => 9,
 782	SDLK_CLEAR        => 12,
 783	SDLK_RETURN       => 13,
 784	SDLK_PAUSE        => 19,
 785	SDLK_ESCAPE       => 27,
 786	SDLK_SPACE        => 32,
 787	SDLK_EXCLAIM      => 33,
 788	SDLK_QUOTEDBL     => 34,
 789	SDLK_HASH         => 35,
 790	SDLK_DOLLAR       => 36,
 791	SDLK_AMPERSAND    => 38,
 792	SDLK_QUOTE        => 39,
 793	SDLK_LEFTPAREN    => 40,
 794	SDLK_RIGHTPAREN   => 41,
 795	SDLK_ASTERISK     => 42,
 796	SDLK_PLUS         => 43,
 797	SDLK_COMMA        => 44,
 798	SDLK_MINUS        => 45,
 799	SDLK_PERIOD       => 46,
 800	SDLK_SLASH        => 47,
 801	SDLK_0            => 48,
 802	SDLK_1            => 49,
 803	SDLK_2            => 50,
 804	SDLK_3            => 51,
 805	SDLK_4            => 52,
 806	SDLK_5            => 53,
 807	SDLK_6            => 54,
 808	SDLK_7            => 55,
 809	SDLK_8            => 56,
 810	SDLK_9            => 57,
 811	SDLK_COLON        => 58,
 812	SDLK_SEMICOLON    => 59,
 813	SDLK_LESS         => 60,
 814	SDLK_EQUALS       => 61,
 815	SDLK_GREATER      => 62,
 816	SDLK_QUESTION     => 63,
 817	SDLK_AT           => 64,
 818	SDLK_LEFTBRACKET  => 91,
 819	SDLK_BACKSLASH    => 92,
 820	SDLK_RIGHTBRACKET => 93,
 821	SDLK_CARET        => 94,
 822	SDLK_UNDERSCORE   => 95,
 823	SDLK_BACKQUOTE    => 96,
 824	SDLK_a            => 97,
 825	SDLK_b            => 98,
 826	SDLK_c            => 99,
 827	SDLK_d            => 100,
 828	SDLK_e            => 101,
 829	SDLK_f            => 102,
 830	SDLK_g            => 103,
 831	SDLK_h            => 104,
 832	SDLK_i            => 105,
 833	SDLK_j            => 106,
 834	SDLK_k            => 107,
 835	SDLK_l            => 108,
 836	SDLK_m            => 109,
 837	SDLK_n            => 110,
 838	SDLK_o            => 111,
 839	SDLK_p            => 112,
 840	SDLK_q            => 113,
 841	SDLK_r            => 114,
 842	SDLK_s            => 115,
 843	SDLK_t            => 116,
 844	SDLK_u            => 117,
 845	SDLK_v            => 118,
 846	SDLK_w            => 119,
 847	SDLK_x            => 120,
 848	SDLK_y            => 121,
 849	SDLK_z            => 122,
 850	SDLK_DELETE       => 127,
 851	SDLK_WORLD_0      => 160,
 852	SDLK_WORLD_1      => 161,
 853	SDLK_WORLD_2      => 162,
 854	SDLK_WORLD_3      => 163,
 855	SDLK_WORLD_4      => 164,
 856	SDLK_WORLD_5      => 165,
 857	SDLK_WORLD_6      => 166,
 858	SDLK_WORLD_7      => 167,
 859	SDLK_WORLD_8      => 168,
 860	SDLK_WORLD_9      => 169,
 861	SDLK_WORLD_10     => 170,
 862	SDLK_WORLD_11     => 171,
 863	SDLK_WORLD_12     => 172,
 864	SDLK_WORLD_13     => 173,
 865	SDLK_WORLD_14     => 174,
 866	SDLK_WORLD_15     => 175,
 867	SDLK_WORLD_16     => 176,
 868	SDLK_WORLD_17     => 177,
 869	SDLK_WORLD_18     => 178,
 870	SDLK_WORLD_19     => 179,
 871	SDLK_WORLD_20     => 180,
 872	SDLK_WORLD_21     => 181,
 873	SDLK_WORLD_22     => 182,
 874	SDLK_WORLD_23     => 183,
 875	SDLK_WORLD_24     => 184,
 876	SDLK_WORLD_25     => 185,
 877	SDLK_WORLD_26     => 186,
 878	SDLK_WORLD_27     => 187,
 879	SDLK_WORLD_28     => 188,
 880	SDLK_WORLD_29     => 189,
 881	SDLK_WORLD_30     => 190,
 882	SDLK_WORLD_31     => 191,
 883	SDLK_WORLD_32     => 192,
 884	SDLK_WORLD_33     => 193,
 885	SDLK_WORLD_34     => 194,
 886	SDLK_WORLD_35     => 195,
 887	SDLK_WORLD_36     => 196,
 888	SDLK_WORLD_37     => 197,
 889	SDLK_WORLD_38     => 198,
 890	SDLK_WORLD_39     => 199,
 891	SDLK_WORLD_40     => 200,
 892	SDLK_WORLD_41     => 201,
 893	SDLK_WORLD_42     => 202,
 894	SDLK_WORLD_43     => 203,
 895	SDLK_WORLD_44     => 204,
 896	SDLK_WORLD_45     => 205,
 897	SDLK_WORLD_46     => 206,
 898	SDLK_WORLD_47     => 207,
 899	SDLK_WORLD_48     => 208,
 900	SDLK_WORLD_49     => 209,
 901	SDLK_WORLD_50     => 210,
 902	SDLK_WORLD_51     => 211,
 903	SDLK_WORLD_52     => 212,
 904	SDLK_WORLD_53     => 213,
 905	SDLK_WORLD_54     => 214,
 906	SDLK_WORLD_55     => 215,
 907	SDLK_WORLD_56     => 216,
 908	SDLK_WORLD_57     => 217,
 909	SDLK_WORLD_58     => 218,
 910	SDLK_WORLD_59     => 219,
 911	SDLK_WORLD_60     => 220,
 912	SDLK_WORLD_61     => 221,
 913	SDLK_WORLD_62     => 222,
 914	SDLK_WORLD_63     => 223,
 915	SDLK_WORLD_64     => 224,
 916	SDLK_WORLD_65     => 225,
 917	SDLK_WORLD_66     => 226,
 918	SDLK_WORLD_67     => 227,
 919	SDLK_WORLD_68     => 228,
 920	SDLK_WORLD_69     => 229,
 921	SDLK_WORLD_70     => 230,
 922	SDLK_WORLD_71     => 231,
 923	SDLK_WORLD_72     => 232,
 924	SDLK_WORLD_73     => 233,
 925	SDLK_WORLD_74     => 234,
 926	SDLK_WORLD_75     => 235,
 927	SDLK_WORLD_76     => 236,
 928	SDLK_WORLD_77     => 237,
 929	SDLK_WORLD_78     => 238,
 930	SDLK_WORLD_79     => 239,
 931	SDLK_WORLD_80     => 240,
 932	SDLK_WORLD_81     => 241,
 933	SDLK_WORLD_82     => 242,
 934	SDLK_WORLD_83     => 243,
 935	SDLK_WORLD_84     => 244,
 936	SDLK_WORLD_85     => 245,
 937	SDLK_WORLD_86     => 246,
 938	SDLK_WORLD_87     => 247,
 939	SDLK_WORLD_88     => 248,
 940	SDLK_WORLD_89     => 249,
 941	SDLK_WORLD_90     => 250,
 942	SDLK_WORLD_91     => 251,
 943	SDLK_WORLD_92     => 252,
 944	SDLK_WORLD_93     => 253,
 945	SDLK_WORLD_94     => 254,
 946	SDLK_WORLD_95     => 255,
 947	SDLK_KP0          => 256,
 948	SDLK_KP1          => 257,
 949	SDLK_KP2          => 258,
 950	SDLK_KP3          => 259,
 951	SDLK_KP4          => 260,
 952	SDLK_KP5          => 261,
 953	SDLK_KP6          => 262,
 954	SDLK_KP7          => 263,
 955	SDLK_KP8          => 264,
 956	SDLK_KP9          => 265,
 957	SDLK_KP_PERIOD    => 266,
 958	SDLK_KP_DIVIDE    => 267,
 959	SDLK_KP_MULTIPLY  => 268,
 960	SDLK_KP_MINUS     => 269,
 961	SDLK_KP_PLUS      => 270,
 962	SDLK_KP_ENTER     => 271,
 963	SDLK_KP_EQUALS    => 272,
 964	SDLK_UP           => 273,
 965	SDLK_DOWN         => 274,
 966	SDLK_RIGHT        => 275,
 967	SDLK_LEFT         => 276,
 968	SDLK_INSERT       => 277,
 969	SDLK_HOME         => 278,
 970	SDLK_END          => 279,
 971	SDLK_PAGEUP       => 280,
 972	SDLK_PAGEDOWN     => 281,
 973	SDLK_F1           => 282,
 974	SDLK_F2           => 283,
 975	SDLK_F3           => 284,
 976	SDLK_F4           => 285,
 977	SDLK_F5           => 286,
 978	SDLK_F6           => 287,
 979	SDLK_F7           => 288,
 980	SDLK_F8           => 289,
 981	SDLK_F9           => 290,
 982	SDLK_F10          => 291,
 983	SDLK_F11          => 292,
 984	SDLK_F12          => 293,
 985	SDLK_F13          => 294,
 986	SDLK_F14          => 295,
 987	SDLK_F15          => 296,
 988	SDLK_NUMLOCK      => 300,
 989	SDLK_CAPSLOCK     => 301,
 990	SDLK_SCROLLOCK    => 302,
 991	SDLK_RSHIFT       => 303,
 992	SDLK_LSHIFT       => 304,
 993	SDLK_RCTRL        => 305,
 994	SDLK_LCTRL        => 306,
 995	SDLK_RALT         => 307,
 996	SDLK_LALT         => 308,
 997	SDLK_RMETA        => 309,
 998	SDLK_LMETA        => 310,
 999	SDLK_LSUPER       => 311,
1000	SDLK_RSUPER       => 312,
1001	SDLK_MODE         => 313,
1002	SDLK_COMPOSE      => 314,
1003	SDLK_HELP         => 315,
1004	SDLK_PRINT        => 316,
1005	SDLK_SYSREQ       => 317,
1006	SDLK_BREAK        => 318,
1007	SDLK_MENU         => 319,
1008	SDLK_POWER        => 320,
1009	SDLK_EURO         => 321,
1010	SDLK_UNDO         => 322,
1011}; # SDL::Events/keysym
1012
1013use constant {
1014	KMOD_NONE     => 0x0000,
1015	KMOD_LSHIFT   => 0x0001,
1016	KMOD_RSHIFT   => 0x0002,
1017	KMOD_LCTRL    => 0x0040,
1018	KMOD_RCTRL    => 0x0080,
1019	KMOD_LALT     => 0x0100,
1020	KMOD_RALT     => 0x0200,
1021	KMOD_LMETA    => 0x0400,
1022	KMOD_RMETA    => 0x0800,
1023	KMOD_NUM      => 0x1000,
1024	KMOD_CAPS     => 0x2000,
1025	KMOD_MODE     => 0x4000,
1026	KMOD_RESERVED => 0x8000
1027}; # SDL::Events/keymod
1028
1029use constant {
1030	KMOD_CTRL  => ( KMOD_LCTRL | KMOD_RCTRL ),
1031	KMOD_SHIFT => ( KMOD_LSHIFT | KMOD_RSHIFT ),
1032	KMOD_ALT   => ( KMOD_LALT | KMOD_RALT ),
1033	KMOD_META  => ( KMOD_LMETA | KMOD_RMETA ),
1034}; # SDL::Events/keymod
1035
1036use constant {
1037	SMOOTHING_OFF => 0,
1038	SMOOTHING_ON  => 1,
1039}; # SDL::GFX/smoothing
1040
1041use constant {
1042	IMG_INIT_JPG => 0x00000001,
1043	IMG_INIT_PNG => 0x00000002,
1044	IMG_INIT_TIF => 0x00000004,
1045}; # SDL::Image
1046
1047use constant {
1048	MIX_INIT_FLAC => 0x00000001,
1049	MIX_INIT_MOD  => 0x00000002,
1050	MIX_INIT_MP3  => 0x00000004,
1051	MIX_INIT_OGG  => 0x00000008
1052}; # SDL::Mixer/init
1053
1054use constant {
1055	MIX_CHANNELS          => 8,
1056	MIX_DEFAULT_FORMAT    => 32784,
1057	MIX_DEFAULT_FREQUENCY => 22050,
1058	MIX_DEFAULT_CHANNELS  => 2,
1059	MIX_MAX_VOLUME        => 128,
1060	MIX_CHANNEL_POST      => -2,
1061}; # SDL::Mixer/defaults
1062
1063use constant {
1064	MIX_NO_FADING  => 0,
1065	MIX_FADING_OUT => 1,
1066	MIX_FADING_IN  => 2,
1067}; # SDL::Mixer/fading
1068
1069use constant {
1070	MUS_NONE     => 0,
1071	MUS_CMD      => 1,
1072	MUS_WAV      => 2,
1073	MUS_MOD      => 3,
1074	MUS_MID      => 4,
1075	MUS_OGG      => 5,
1076	MUS_MP3      => 6,
1077	MUS_MP3_MAD  => 7,
1078	MUS_MP3_FLAC => 8,
1079}; # SDL::Mixer/type
1080
1081use constant {
1082	INADDR_ANY              => 0x00000000,
1083	INADDR_NONE             => 0xFFFFFFFF,
1084	INADDR_BROADCAST        => 0xFFFFFFFF,
1085	SDLNET_MAX_UDPCHANNELS  => 32,
1086	SDLNET_MAX_UDPADDRESSES => 4
1087}; # SDL::Net
1088
1089use constant {
1090	SDLPANGO_DIRECTION_LTR      => 0,
1091	SDLPANGO_DIRECTION_RTL      => 1,
1092	SDLPANGO_DIRECTION_WEAK_LTR => 2,
1093	SDLPANGO_DIRECTION_WEAK_RTL => 3,
1094	SDLPANGO_DIRECTION_NEUTRAL  => 4
1095}; # SDL::Pango/direction
1096
1097use constant {
1098	SDLPANGO_ALIGN_LEFT   => 0,
1099	SDLPANGO_ALIGN_CENTER => 1,
1100	SDLPANGO_ALIGN_RIGHT  => 2
1101}; # SDL::Pango/align
1102
1103use constant {
1104	RW_SEEK_SET => 0,
1105	RW_SEEK_CUR => 1,
1106	RW_SEEK_END => 2,
1107}; # SDL::RWOps/defaults
1108
1109use constant {
1110	TTF_HINTING_NORMAL      => 0,
1111	TTF_HINTING_LIGHT       => 1,
1112	TTF_HINTING_MONO        => 2,
1113	TTF_HINTING_NONE        => 3,
1114	TTF_STYLE_NORMAL        => 0,
1115	TTF_STYLE_BOLD          => 1,
1116	TTF_STYLE_ITALIC        => 2,
1117	TTF_STYLE_UNDERLINE     => 4,
1118	TTF_STYLE_STRIKETHROUGH => 8,
1119}; # SDL::TTF
1120
1121use constant {
1122	SDL_ALPHA_OPAQUE      => 255,
1123	SDL_ALPHA_TRANSPARENT => 0,
1124
1125	SDL_SWSURFACE   => 0x00000000, # for SDL::Surface->new() and set_video_mode()
1126	SDL_HWSURFACE   => 0x00000001, # for SDL::Surface->new() and set_video_mode()
1127	SDL_ASYNCBLIT   => 0x00000004, # for SDL::Surface->new() and set_video_mode()
1128	SDL_ANYFORMAT   => 0x10000000, # set_video_mode()
1129	SDL_HWPALETTE   => 0x20000000, # set_video_mode()
1130	SDL_DOUBLEBUF   => 0x40000000, # set_video_mode()
1131	SDL_FULLSCREEN  => 0x80000000, # set_video_mode()
1132	SDL_OPENGL      => 0x00000002, # set_video_mode()
1133	SDL_OPENGLBLIT  => 0x0000000A, # set_video_mode()
1134	SDL_RESIZABLE   => 0x00000010, # set_video_mode()
1135	SDL_NOFRAME     => 0x00000020, # set_video_mode()
1136	SDL_HWACCEL     => 0x00000100, # set_video_mode()
1137	SDL_SRCCOLORKEY => 0x00001000, # set_video_mode()
1138	SDL_RLEACCELOK  => 0x00002000, # set_video_mode()
1139	SDL_RLEACCEL    => 0x00004000, # set_video_mode()
1140	SDL_SRCALPHA    => 0x00010000, # set_video_mode()
1141	SDL_PREALLOC    => 0x01000000, # set_video_mode()
1142
1143	SDL_YV12_OVERLAY => 0x32315659, # Planar mode: Y + V + U  (3 planes)
1144	SDL_IYUV_OVERLAY => 0x56555949, # Planar mode: Y + U + V  (3 planes)
1145	SDL_YUY2_OVERLAY => 0x32595559, # Packed mode: Y0+U0+Y1+V0 (1 plane)
1146	SDL_UYVY_OVERLAY => 0x59565955, # Packed mode: U0+Y0+V0+Y1 (1 plane)
1147	SDL_YVYU_OVERLAY => 0x55595659, # Packed mode: Y0+V0+Y1+U0 (1 plane)
1148
1149	SDL_LOGPAL  => 0x01,            # for set_palette()
1150	SDL_PHYSPAL => 0x02,            # for set_palette()
1151
1152	SDL_GRAB_QUERY      => -1,      # SDL_GrabMode
1153	SDL_GRAB_OFF        => 0,       # SDL_GrabMode
1154	SDL_GRAB_ON         => 1,       # SDL_GrabMode
1155	SDL_GRAB_FULLSCREEN => 2,       # SDL_GrabMode, used internally
1156}; # SDL::Video/...
1157
1158use constant {
1159	SDL_GL_RED_SIZE           => 0,
1160	SDL_GL_GREEN_SIZE         => 1,
1161	SDL_GL_BLUE_SIZE          => 2,
1162	SDL_GL_ALPHA_SIZE         => 3,
1163	SDL_GL_BUFFER_SIZE        => 4,
1164	SDL_GL_DOUBLEBUFFER       => 5,
1165	SDL_GL_DEPTH_SIZE         => 6,
1166	SDL_GL_STENCIL_SIZE       => 7,
1167	SDL_GL_ACCUM_RED_SIZE     => 8,
1168	SDL_GL_ACCUM_GREEN_SIZE   => 9,
1169	SDL_GL_ACCUM_BLUE_SIZE    => 10,
1170	SDL_GL_ACCUM_ALPHA_SIZE   => 11,
1171	SDL_GL_STEREO             => 12,
1172	SDL_GL_MULTISAMPLEBUFFERS => 13,
1173	SDL_GL_MULTISAMPLESAMPLES => 14,
1174	SDL_GL_ACCELERATED_VISUAL => 15,
1175	SDL_GL_SWAP_CONTROL       => 16,
1176}; # SDL::Video/gl
1177
11781;
1179
1180__END__
1181
1182our @EXPORT=qw(
1183	SMPEG_ERROR
1184	SMPEG_PLAYING
1185	SMPEG_STOPPED
1186	SDL_SVG_FLAG_DIRECT
1187	SDL_SVG_FLAG_COMPOSITE
1188	SDL_SAMPLEFLAG_NONE
1189	SDL_SAMPLEFLAG_CANSEEK
1190	SDL_SAMPLEFLAG_EOF
1191	SDL_SAMPLEFLAG_ERROR
1192	SDL_SAMPLEFLAG_EAGAIN
1193);
1194
1195use constant {
1196	SDL_HAS_64BIT_TYPE                                  => 1,
1197	SDL_AUDIO_DRIVER_DISK                               => 1,
1198	SDL_AUDIO_DRIVER_DUMMY                              => 1,
1199	SDL_AUDIO_DRIVER_DSOUND                             => 1,
1200	SDL_AUDIO_DRIVER_WAVEOUT                            => 1,
1201	SDL_CDROM_WIN32                                     => 1,
1202	SDL_JOYSTICK_WINMM                                  => 1,
1203	SDL_LOADSO_WIN32                                    => 1,
1204	SDL_THREAD_WIN32                                    => 1,
1205	SDL_TIMER_WIN32                                     => 1,
1206	SDL_VIDEO_DRIVER_DDRAW                              => 1,
1207	SDL_VIDEO_DRIVER_DUMMY                              => 1,
1208	SDL_VIDEO_DRIVER_WINDIB                             => 1,
1209	SDL_VIDEO_OPENGL                                    => 1,
1210	SDL_VIDEO_OPENGL_WGL                                => 1,
1211	SDL_VIDEO_DISABLE_SCREENSAVER                       => 1,
1212	SDL_ASSEMBLY_ROUTINES                               => 1,
1213	SDL_HERMES_BLITTERS                                 => 1,
1214	SDL_LIL_ENDIAN                                      => 1234,
1215	SDL_BIG_ENDIAN                                      => 4321,
1216};
1217
1218use constant {
1219	FPS_UPPER_LIMIT                                     => 200,
1220	FPS_LOWER_LIMIT                                     => 1,
1221	FPS_DEFAULT                                         => 30,
1222	SDL_ALL_HOTKEYS                                     => 0xFFFFFFFF,
1223	SDL_DEFAULT_REPEAT_DELAY                            => 500,
1224	SDL_DEFAULT_REPEAT_INTERVAL                         => 30,
1225};
1226
1227use constant {
1228	SDL_MUTEX_TIMEDOUT                                  => 1,
1229	NeedFunctionPrototypes                              => 1,
1230	SDLNET_MAX_UDPCHANNELS                              => 32,
1231	SDLNET_MAX_UDPADDRESSES                             => 4,
1232	WIN32_LEAN_AND_MEAN                                 => 1,
1233	GL_GLEXT_VERSION                                    => 29,
1234	GL_UNSIGNED_BYTE_3_3_2                              => 0x8032,
1235	GL_UNSIGNED_SHORT_4_4_4_4                           => 0x8033,
1236	GL_UNSIGNED_SHORT_5_5_5_1                           => 0x8034,
1237	GL_UNSIGNED_INT_8_8_8_8                             => 0x8035,
1238	GL_UNSIGNED_INT_10_10_10_2                          => 0x8036,
1239	GL_RESCALE_NORMAL                                   => 0x803A,
1240	GL_TEXTURE_BINDING_3D                               => 0x806A,
1241	GL_PACK_SKIP_IMAGES                                 => 0x806B,
1242	GL_PACK_IMAGE_HEIGHT                                => 0x806C,
1243	GL_UNPACK_SKIP_IMAGES                               => 0x806D,
1244	GL_UNPACK_IMAGE_HEIGHT                              => 0x806E,
1245	GL_TEXTURE_3D                                       => 0x806F,
1246	GL_PROXY_TEXTURE_3D                                 => 0x8070,
1247	GL_TEXTURE_DEPTH                                    => 0x8071,
1248	GL_TEXTURE_WRAP_R                                   => 0x8072,
1249	GL_MAX_3D_TEXTURE_SIZE                              => 0x8073,
1250	GL_UNSIGNED_BYTE_2_3_3_REV                          => 0x8362,
1251	GL_UNSIGNED_SHORT_5_6_5                             => 0x8363,
1252	GL_UNSIGNED_SHORT_5_6_5_REV                         => 0x8364,
1253	GL_UNSIGNED_SHORT_4_4_4_4_REV                       => 0x8365,
1254	GL_UNSIGNED_SHORT_1_5_5_5_REV                       => 0x8366,
1255	GL_UNSIGNED_INT_8_8_8_8_REV                         => 0x8367,
1256	GL_UNSIGNED_INT_2_10_10_10_REV                      => 0x8368,
1257	GL_BGR                                              => 0x80E0,
1258	GL_BGRA                                             => 0x80E1,
1259	GL_MAX_ELEMENTS_VERTICES                            => 0x80E8,
1260	GL_MAX_ELEMENTS_INDICES                             => 0x80E9,
1261	GL_CLAMP_TO_EDGE                                    => 0x812F,
1262	GL_TEXTURE_MIN_LOD                                  => 0x813A,
1263	GL_TEXTURE_MAX_LOD                                  => 0x813B,
1264	GL_TEXTURE_BASE_LEVEL                               => 0x813C,
1265	GL_TEXTURE_MAX_LEVEL                                => 0x813D,
1266	GL_LIGHT_MODEL_COLOR_CONTROL                        => 0x81F8,
1267	GL_SINGLE_COLOR                                     => 0x81F9,
1268	GL_SEPARATE_SPECULAR_COLOR                          => 0x81FA,
1269	GL_SMOOTH_POINT_SIZE_RANGE                          => 0x0B12,
1270	GL_SMOOTH_POINT_SIZE_GRANULARITY                    => 0x0B13,
1271	GL_SMOOTH_LINE_WIDTH_RANGE                          => 0x0B22,
1272	GL_SMOOTH_LINE_WIDTH_GRANULARITY                    => 0x0B23,
1273	GL_ALIASED_POINT_SIZE_RANGE                         => 0x846D,
1274	GL_ALIASED_LINE_WIDTH_RANGE                         => 0x846E,
1275	GL_CONSTANT_COLOR                                   => 0x8001,
1276	GL_ONE_MINUS_CONSTANT_COLOR                         => 0x8002,
1277	GL_CONSTANT_ALPHA                                   => 0x8003,
1278	GL_ONE_MINUS_CONSTANT_ALPHA                         => 0x8004,
1279	GL_BLEND_COLOR                                      => 0x8005,
1280	GL_FUNC_ADD                                         => 0x8006,
1281	GL_MIN                                              => 0x8007,
1282	GL_MAX                                              => 0x8008,
1283	GL_BLEND_EQUATION                                   => 0x8009,
1284	GL_FUNC_SUBTRACT                                    => 0x800A,
1285	GL_FUNC_REVERSE_SUBTRACT                            => 0x800B,
1286	GL_CONVOLUTION_1D                                   => 0x8010,
1287	GL_CONVOLUTION_2D                                   => 0x8011,
1288	GL_SEPARABLE_2D                                     => 0x8012,
1289	GL_CONVOLUTION_BORDER_MODE                          => 0x8013,
1290	GL_CONVOLUTION_FILTER_SCALE                         => 0x8014,
1291	GL_CONVOLUTION_FILTER_BIAS                          => 0x8015,
1292	GL_REDUCE                                           => 0x8016,
1293	GL_CONVOLUTION_FORMAT                               => 0x8017,
1294	GL_CONVOLUTION_WIDTH                                => 0x8018,
1295	GL_CONVOLUTION_HEIGHT                               => 0x8019,
1296	GL_MAX_CONVOLUTION_WIDTH                            => 0x801A,
1297	GL_MAX_CONVOLUTION_HEIGHT                           => 0x801B,
1298	GL_POST_CONVOLUTION_RED_SCALE                       => 0x801C,
1299	GL_POST_CONVOLUTION_GREEN_SCALE                     => 0x801D,
1300	GL_POST_CONVOLUTION_BLUE_SCALE                      => 0x801E,
1301	GL_POST_CONVOLUTION_ALPHA_SCALE                     => 0x801F,
1302	GL_POST_CONVOLUTION_RED_BIAS                        => 0x8020,
1303	GL_POST_CONVOLUTION_GREEN_BIAS                      => 0x8021,
1304	GL_POST_CONVOLUTION_BLUE_BIAS                       => 0x8022,
1305	GL_POST_CONVOLUTION_ALPHA_BIAS                      => 0x8023,
1306	GL_HISTOGRAM                                        => 0x8024,
1307	GL_PROXY_HISTOGRAM                                  => 0x8025,
1308	GL_HISTOGRAM_WIDTH                                  => 0x8026,
1309	GL_HISTOGRAM_FORMAT                                 => 0x8027,
1310	GL_HISTOGRAM_RED_SIZE                               => 0x8028,
1311	GL_HISTOGRAM_GREEN_SIZE                             => 0x8029,
1312	GL_HISTOGRAM_BLUE_SIZE                              => 0x802A,
1313	GL_HISTOGRAM_ALPHA_SIZE                             => 0x802B,
1314	GL_HISTOGRAM_LUMINANCE_SIZE                         => 0x802C,
1315	GL_HISTOGRAM_SINK                                   => 0x802D,
1316	GL_MINMAX                                           => 0x802E,
1317	GL_MINMAX_FORMAT                                    => 0x802F,
1318	GL_MINMAX_SINK                                      => 0x8030,
1319	GL_TABLE_TOO_LARGE                                  => 0x8031,
1320	GL_COLOR_MATRIX                                     => 0x80B1,
1321	GL_COLOR_MATRIX_STACK_DEPTH                         => 0x80B2,
1322	GL_MAX_COLOR_MATRIX_STACK_DEPTH                     => 0x80B3,
1323	GL_POST_COLOR_MATRIX_RED_SCALE                      => 0x80B4,
1324	GL_POST_COLOR_MATRIX_GREEN_SCALE                    => 0x80B5,
1325	GL_POST_COLOR_MATRIX_BLUE_SCALE                     => 0x80B6,
1326	GL_POST_COLOR_MATRIX_ALPHA_SCALE                    => 0x80B7,
1327	GL_POST_COLOR_MATRIX_RED_BIAS                       => 0x80B8,
1328	GL_POST_COLOR_MATRIX_GREEN_BIAS                     => 0x80B9,
1329	GL_POST_COLOR_MATRIX_BLUE_BIAS                      => 0x80BA,
1330	GL_POST_COLOR_MATRIX_ALPHA_BIAS                     => 0x80BB,
1331	GL_COLOR_TABLE                                      => 0x80D0,
1332	GL_POST_CONVOLUTION_COLOR_TABLE                     => 0x80D1,
1333	GL_POST_COLOR_MATRIX_COLOR_TABLE                    => 0x80D2,
1334	GL_PROXY_COLOR_TABLE                                => 0x80D3,
1335	GL_PROXY_POST_CONVOLUTION_COLOR_TABLE               => 0x80D4,
1336	GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE              => 0x80D5,
1337	GL_COLOR_TABLE_SCALE                                => 0x80D6,
1338	GL_COLOR_TABLE_BIAS                                 => 0x80D7,
1339	GL_COLOR_TABLE_FORMAT                               => 0x80D8,
1340	GL_COLOR_TABLE_WIDTH                                => 0x80D9,
1341	GL_COLOR_TABLE_RED_SIZE                             => 0x80DA,
1342	GL_COLOR_TABLE_GREEN_SIZE                           => 0x80DB,
1343	GL_COLOR_TABLE_BLUE_SIZE                            => 0x80DC,
1344	GL_COLOR_TABLE_ALPHA_SIZE                           => 0x80DD,
1345	GL_COLOR_TABLE_LUMINANCE_SIZE                       => 0x80DE,
1346	GL_COLOR_TABLE_INTENSITY_SIZE                       => 0x80DF,
1347	GL_CONSTANT_BORDER                                  => 0x8151,
1348	GL_REPLICATE_BORDER                                 => 0x8153,
1349	GL_CONVOLUTION_BORDER_COLOR                         => 0x8154,
1350	GL_TEXTURE0                                         => 0x84C0,
1351	GL_TEXTURE1                                         => 0x84C1,
1352	GL_TEXTURE2                                         => 0x84C2,
1353	GL_TEXTURE3                                         => 0x84C3,
1354	GL_TEXTURE4                                         => 0x84C4,
1355	GL_TEXTURE5                                         => 0x84C5,
1356	GL_TEXTURE6                                         => 0x84C6,
1357	GL_TEXTURE7                                         => 0x84C7,
1358	GL_TEXTURE8                                         => 0x84C8,
1359	GL_TEXTURE9                                         => 0x84C9,
1360	GL_TEXTURE10                                        => 0x84CA,
1361	GL_TEXTURE11                                        => 0x84CB,
1362	GL_TEXTURE12                                        => 0x84CC,
1363	GL_TEXTURE13                                        => 0x84CD,
1364	GL_TEXTURE14                                        => 0x84CE,
1365	GL_TEXTURE15                                        => 0x84CF,
1366	GL_TEXTURE16                                        => 0x84D0,
1367	GL_TEXTURE17                                        => 0x84D1,
1368	GL_TEXTURE18                                        => 0x84D2,
1369	GL_TEXTURE19                                        => 0x84D3,
1370	GL_TEXTURE20                                        => 0x84D4,
1371	GL_TEXTURE21                                        => 0x84D5,
1372	GL_TEXTURE22                                        => 0x84D6,
1373	GL_TEXTURE23                                        => 0x84D7,
1374	GL_TEXTURE24                                        => 0x84D8,
1375	GL_TEXTURE25                                        => 0x84D9,
1376	GL_TEXTURE26                                        => 0x84DA,
1377	GL_TEXTURE27                                        => 0x84DB,
1378	GL_TEXTURE28                                        => 0x84DC,
1379	GL_TEXTURE29                                        => 0x84DD,
1380	GL_TEXTURE30                                        => 0x84DE,
1381	GL_TEXTURE31                                        => 0x84DF,
1382	GL_ACTIVE_TEXTURE                                   => 0x84E0,
1383	GL_CLIENT_ACTIVE_TEXTURE                            => 0x84E1,
1384	GL_MAX_TEXTURE_UNITS                                => 0x84E2,
1385	GL_TRANSPOSE_MODELVIEW_MATRIX                       => 0x84E3,
1386	GL_TRANSPOSE_PROJECTION_MATRIX                      => 0x84E4,
1387	GL_TRANSPOSE_TEXTURE_MATRIX                         => 0x84E5,
1388	GL_TRANSPOSE_COLOR_MATRIX                           => 0x84E6,
1389	GL_MULTISAMPLE                                      => 0x809D,
1390	GL_SAMPLE_ALPHA_TO_COVERAGE                         => 0x809E,
1391	GL_SAMPLE_ALPHA_TO_ONE                              => 0x809F,
1392	GL_SAMPLE_COVERAGE                                  => 0x80A0,
1393	GL_SAMPLE_BUFFERS                                   => 0x80A8,
1394	GL_SAMPLES                                          => 0x80A9,
1395	GL_SAMPLE_COVERAGE_VALUE                            => 0x80AA,
1396	GL_SAMPLE_COVERAGE_INVERT                           => 0x80AB,
1397	GL_MULTISAMPLE_BIT                                  => 0x20000000,
1398	GL_NORMAL_MAP                                       => 0x8511,
1399	GL_REFLECTION_MAP                                   => 0x8512,
1400	GL_TEXTURE_CUBE_MAP                                 => 0x8513,
1401	GL_TEXTURE_BINDING_CUBE_MAP                         => 0x8514,
1402	GL_TEXTURE_CUBE_MAP_POSITIVE_X                      => 0x8515,
1403	GL_TEXTURE_CUBE_MAP_NEGATIVE_X                      => 0x8516,
1404	GL_TEXTURE_CUBE_MAP_POSITIVE_Y                      => 0x8517,
1405	GL_TEXTURE_CUBE_MAP_NEGATIVE_Y                      => 0x8518,
1406	GL_TEXTURE_CUBE_MAP_POSITIVE_Z                      => 0x8519,
1407	GL_TEXTURE_CUBE_MAP_NEGATIVE_Z                      => 0x851A,
1408	GL_PROXY_TEXTURE_CUBE_MAP                           => 0x851B,
1409	GL_MAX_CUBE_MAP_TEXTURE_SIZE                        => 0x851C,
1410	GL_COMPRESSED_ALPHA                                 => 0x84E9,
1411	GL_COMPRESSED_LUMINANCE                             => 0x84EA,
1412	GL_COMPRESSED_LUMINANCE_ALPHA                       => 0x84EB,
1413	GL_COMPRESSED_INTENSITY                             => 0x84EC,
1414	GL_COMPRESSED_RGB                                   => 0x84ED,
1415	GL_COMPRESSED_RGBA                                  => 0x84EE,
1416	GL_TEXTURE_COMPRESSION_HINT                         => 0x84EF,
1417	GL_TEXTURE_COMPRESSED_IMAGE_SIZE                    => 0x86A0,
1418	GL_TEXTURE_COMPRESSED                               => 0x86A1,
1419	GL_NUM_COMPRESSED_TEXTURE_FORMATS                   => 0x86A2,
1420	GL_COMPRESSED_TEXTURE_FORMATS                       => 0x86A3,
1421	GL_CLAMP_TO_BORDER                                  => 0x812D,
1422	GL_COMBINE                                          => 0x8570,
1423	GL_COMBINE_RGB                                      => 0x8571,
1424	GL_COMBINE_ALPHA                                    => 0x8572,
1425	GL_SOURCE0_RGB                                      => 0x8580,
1426	GL_SOURCE1_RGB                                      => 0x8581,
1427	GL_SOURCE2_RGB                                      => 0x8582,
1428	GL_SOURCE0_ALPHA                                    => 0x8588,
1429	GL_SOURCE1_ALPHA                                    => 0x8589,
1430	GL_SOURCE2_ALPHA                                    => 0x858A,
1431	GL_OPERAND0_RGB                                     => 0x8590,
1432	GL_OPERAND1_RGB                                     => 0x8591,
1433	GL_OPERAND2_RGB                                     => 0x8592,
1434	GL_OPERAND0_ALPHA                                   => 0x8598,
1435	GL_OPERAND1_ALPHA                                   => 0x8599,
1436	GL_OPERAND2_ALPHA                                   => 0x859A,
1437	GL_RGB_SCALE                                        => 0x8573,
1438	GL_ADD_SIGNED                                       => 0x8574,
1439	GL_INTERPOLATE                                      => 0x8575,
1440	GL_SUBTRACT                                         => 0x84E7,
1441	GL_CONSTANT                                         => 0x8576,
1442	GL_PRIMARY_COLOR                                    => 0x8577,
1443	GL_PREVIOUS                                         => 0x8578,
1444	GL_DOT3_RGB                                         => 0x86AE,
1445	GL_DOT3_RGBA                                        => 0x86AF,
1446	GL_BLEND_DST_RGB                                    => 0x80C8,
1447	GL_BLEND_SRC_RGB                                    => 0x80C9,
1448	GL_BLEND_DST_ALPHA                                  => 0x80CA,
1449	GL_BLEND_SRC_ALPHA                                  => 0x80CB,
1450	GL_POINT_SIZE_MIN                                   => 0x8126,
1451	GL_POINT_SIZE_MAX                                   => 0x8127,
1452	GL_POINT_FADE_THRESHOLD_SIZE                        => 0x8128,
1453	GL_POINT_DISTANCE_ATTENUATION                       => 0x8129,
1454	GL_GENERATE_MIPMAP                                  => 0x8191,
1455	GL_GENERATE_MIPMAP_HINT                             => 0x8192,
1456	GL_DEPTH_COMPONENT16                                => 0x81A5,
1457	GL_DEPTH_COMPONENT24                                => 0x81A6,
1458	GL_DEPTH_COMPONENT32                                => 0x81A7,
1459	GL_MIRRORED_REPEAT                                  => 0x8370,
1460	GL_FOG_COORDINATE_SOURCE                            => 0x8450,
1461	GL_FOG_COORDINATE                                   => 0x8451,
1462	GL_FRAGMENT_DEPTH                                   => 0x8452,
1463	GL_CURRENT_FOG_COORDINATE                           => 0x8453,
1464	GL_FOG_COORDINATE_ARRAY_TYPE                        => 0x8454,
1465	GL_FOG_COORDINATE_ARRAY_STRIDE                      => 0x8455,
1466	GL_FOG_COORDINATE_ARRAY_POINTER                     => 0x8456,
1467	GL_FOG_COORDINATE_ARRAY                             => 0x8457,
1468	GL_COLOR_SUM                                        => 0x8458,
1469	GL_CURRENT_SECONDARY_COLOR                          => 0x8459,
1470	GL_SECONDARY_COLOR_ARRAY_SIZE                       => 0x845A,
1471	GL_SECONDARY_COLOR_ARRAY_TYPE                       => 0x845B,
1472	GL_SECONDARY_COLOR_ARRAY_STRIDE                     => 0x845C,
1473	GL_SECONDARY_COLOR_ARRAY_POINTER                    => 0x845D,
1474	GL_SECONDARY_COLOR_ARRAY                            => 0x845E,
1475	GL_MAX_TEXTURE_LOD_BIAS                             => 0x84FD,
1476	GL_TEXTURE_FILTER_CONTROL                           => 0x8500,
1477	GL_TEXTURE_LOD_BIAS                                 => 0x8501,
1478	GL_INCR_WRAP                                        => 0x8507,
1479	GL_DECR_WRAP                                        => 0x8508,
1480	GL_TEXTURE_DEPTH_SIZE                               => 0x884A,
1481	GL_DEPTH_TEXTURE_MODE                               => 0x884B,
1482	GL_TEXTURE_COMPARE_MODE                             => 0x884C,
1483	GL_TEXTURE_COMPARE_FUNC                             => 0x884D,
1484	GL_COMPARE_R_TO_TEXTURE                             => 0x884E,
1485	GL_BUFFER_SIZE                                      => 0x8764,
1486	GL_BUFFER_USAGE                                     => 0x8765,
1487	GL_QUERY_COUNTER_BITS                               => 0x8864,
1488	GL_CURRENT_QUERY                                    => 0x8865,
1489	GL_QUERY_RESULT                                     => 0x8866,
1490	GL_QUERY_RESULT_AVAILABLE                           => 0x8867,
1491	GL_ARRAY_BUFFER                                     => 0x8892,
1492	GL_ELEMENT_ARRAY_BUFFER                             => 0x8893,
1493	GL_ARRAY_BUFFER_BINDING                             => 0x8894,
1494	GL_ELEMENT_ARRAY_BUFFER_BINDING                     => 0x8895,
1495	GL_VERTEX_ARRAY_BUFFER_BINDING                      => 0x8896,
1496	GL_NORMAL_ARRAY_BUFFER_BINDING                      => 0x8897,
1497	GL_COLOR_ARRAY_BUFFER_BINDING                       => 0x8898,
1498	GL_INDEX_ARRAY_BUFFER_BINDING                       => 0x8899,
1499	GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING               => 0x889A,
1500	GL_EDGE_FLAG_ARRAY_BUFFER_BINDING                   => 0x889B,
1501	GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING             => 0x889C,
1502	GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING              => 0x889D,
1503	GL_WEIGHT_ARRAY_BUFFER_BINDING                      => 0x889E,
1504	GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING               => 0x889F,
1505	GL_READ_ONLY                                        => 0x88B8,
1506	GL_WRITE_ONLY                                       => 0x88B9,
1507	GL_READ_WRITE                                       => 0x88BA,
1508	GL_BUFFER_ACCESS                                    => 0x88BB,
1509	GL_BUFFER_MAPPED                                    => 0x88BC,
1510	GL_BUFFER_MAP_POINTER                               => 0x88BD,
1511	GL_STREAM_DRAW                                      => 0x88E0,
1512	GL_STREAM_READ                                      => 0x88E1,
1513	GL_STREAM_COPY                                      => 0x88E2,
1514	GL_STATIC_DRAW                                      => 0x88E4,
1515	GL_STATIC_READ                                      => 0x88E5,
1516	GL_STATIC_COPY                                      => 0x88E6,
1517	GL_DYNAMIC_DRAW                                     => 0x88E8,
1518	GL_DYNAMIC_READ                                     => 0x88E9,
1519	GL_DYNAMIC_COPY                                     => 0x88EA,
1520	GL_SAMPLES_PASSED                                   => 0x8914,
1521	GL_FOG_COORD_SRC                                    => 0x8450,
1522	GL_FOG_COORD                                        => 0x8451,
1523	GL_CURRENT_FOG_COORD                                => 0x8453,
1524	GL_FOG_COORD_ARRAY_TYPE                             => 0x8454,
1525	GL_FOG_COORD_ARRAY_STRIDE                           => 0x8455,
1526	GL_FOG_COORD_ARRAY_POINTER                          => 0x8456,
1527	GL_FOG_COORD_ARRAY                                  => 0x8457,
1528	GL_FOG_COORD_ARRAY_BUFFER_BINDING                   => 0x889D,
1529	GL_SRC0_RGB                                         => 0x8580,
1530	GL_SRC1_RGB                                         => 0x8581,
1531	GL_SRC2_RGB                                         => 0x8582,
1532	GL_SRC0_ALPHA                                       => 0x8588,
1533	GL_SRC1_ALPHA                                       => 0x8589,
1534	GL_SRC2_ALPHA                                       => 0x858A,
1535	GL_BLEND_EQUATION_RGB                               => 0x8009,
1536	GL_VERTEX_ATTRIB_ARRAY_ENABLED                      => 0x8622,
1537	GL_VERTEX_ATTRIB_ARRAY_SIZE                         => 0x8623,
1538	GL_VERTEX_ATTRIB_ARRAY_STRIDE                       => 0x8624,
1539	GL_VERTEX_ATTRIB_ARRAY_TYPE                         => 0x8625,
1540	GL_CURRENT_VERTEX_ATTRIB                            => 0x8626,
1541	GL_VERTEX_PROGRAM_POINT_SIZE                        => 0x8642,
1542	GL_VERTEX_PROGRAM_TWO_SIDE                          => 0x8643,
1543	GL_VERTEX_ATTRIB_ARRAY_POINTER                      => 0x8645,
1544	GL_STENCIL_BACK_FUNC                                => 0x8800,
1545	GL_STENCIL_BACK_FAIL                                => 0x8801,
1546	GL_STENCIL_BACK_PASS_DEPTH_FAIL                     => 0x8802,
1547	GL_STENCIL_BACK_PASS_DEPTH_PASS                     => 0x8803,
1548	GL_MAX_DRAW_BUFFERS                                 => 0x8824,
1549	GL_DRAW_BUFFER0                                     => 0x8825,
1550	GL_DRAW_BUFFER1                                     => 0x8826,
1551	GL_DRAW_BUFFER2                                     => 0x8827,
1552	GL_DRAW_BUFFER3                                     => 0x8828,
1553	GL_DRAW_BUFFER4                                     => 0x8829,
1554	GL_DRAW_BUFFER5                                     => 0x882A,
1555	GL_DRAW_BUFFER6                                     => 0x882B,
1556	GL_DRAW_BUFFER7                                     => 0x882C,
1557	GL_DRAW_BUFFER8                                     => 0x882D,
1558	GL_DRAW_BUFFER9                                     => 0x882E,
1559	GL_DRAW_BUFFER10                                    => 0x882F,
1560	GL_DRAW_BUFFER11                                    => 0x8830,
1561	GL_DRAW_BUFFER12                                    => 0x8831,
1562	GL_DRAW_BUFFER13                                    => 0x8832,
1563	GL_DRAW_BUFFER14                                    => 0x8833,
1564	GL_DRAW_BUFFER15                                    => 0x8834,
1565	GL_BLEND_EQUATION_ALPHA                             => 0x883D,
1566	GL_POINT_SPRITE                                     => 0x8861,
1567	GL_COORD_REPLACE                                    => 0x8862,
1568	GL_MAX_VERTEX_ATTRIBS                               => 0x8869,
1569	GL_VERTEX_ATTRIB_ARRAY_NORMALIZED                   => 0x886A,
1570	GL_MAX_TEXTURE_COORDS                               => 0x8871,
1571	GL_MAX_TEXTURE_IMAGE_UNITS                          => 0x8872,
1572	GL_FRAGMENT_SHADER                                  => 0x8B30,
1573	GL_VERTEX_SHADER                                    => 0x8B31,
1574	GL_MAX_FRAGMENT_UNIFORM_COMPONENTS                  => 0x8B49,
1575	GL_MAX_VERTEX_UNIFORM_COMPONENTS                    => 0x8B4A,
1576	GL_MAX_VARYING_FLOATS                               => 0x8B4B,
1577	GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS                   => 0x8B4C,
1578	GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS                 => 0x8B4D,
1579	GL_SHADER_TYPE                                      => 0x8B4F,
1580	GL_FLOAT_VEC2                                       => 0x8B50,
1581	GL_FLOAT_VEC3                                       => 0x8B51,
1582	GL_FLOAT_VEC4                                       => 0x8B52,
1583	GL_INT_VEC2                                         => 0x8B53,
1584	GL_INT_VEC3                                         => 0x8B54,
1585	GL_INT_VEC4                                         => 0x8B55,
1586	GL_BOOL                                             => 0x8B56,
1587	GL_BOOL_VEC2                                        => 0x8B57,
1588	GL_BOOL_VEC3                                        => 0x8B58,
1589	GL_BOOL_VEC4                   …

Large files files are truncated, but you can click here to view the full file