5 # Copyright (C) 2005 David J. Goehrig <dgoehrig@cpan.org>
7 # ------------------------------------------------------------------------------
9 # This library is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU Lesser General Public
11 # License as published by the Free Software Foundation; either
12 # version 2.1 of the License, or (at your option) any later version.
14 # This library is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # Lesser General Public License for more details.
19 # You should have received a copy of the GNU Lesser General Public
20 # License along with this library; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 # ------------------------------------------------------------------------------
25 # Please feel free to send questions, suggestions or improvements to:
31 package SDL::Constants;
219 SDL_GL_ACCUM_ALPHA_SIZE
220 SDL_GL_ACCUM_BLUE_SIZE
221 SDL_GL_ACCUM_GREEN_SIZE
222 SDL_GL_ACCUM_RED_SIZE
303 SDL_SVG_FLAG_COMPOSITE
305 SDL_SAMPLEFLAG_CANSEEK
308 SDL_SAMPLEFLAG_EAGAIN
313 AUDIO_S16MSB => 36880,
316 AUDIO_U16MSB => 4112,
341 MIX_DEFAULT_CHANNELS => 2,
342 MIX_DEFAULT_FORMAT => 32784,
343 MIX_DEFAULT_FREQUENCY => 22050,
346 MIX_MAX_VOLUME => 128,
359 SDLK_AMPERSAND => 38,
362 SDLK_BACKQUOTE => 96,
363 SDLK_BACKSLASH => 92,
366 SDLK_CAPSLOCK => 301,
409 SDLK_KP_DIVIDE => 267,
410 SDLK_KP_ENTER => 271,
411 SDLK_KP_EQUALS => 272,
412 SDLK_KP_MINUS => 269,
413 SDLK_KP_MULTIPLY => 268,
414 SDLK_KP_PERIOD => 266,
419 SDLK_LEFTBRACKET => 91,
420 SDLK_LEFTPAREN => 40,
429 SDLK_PAGEDOWN => 281,
443 SDLK_RIGHTBRACKET => 93,
444 SDLK_RIGHTPAREN => 41,
448 SDLK_SCROLLOCK => 302,
449 SDLK_SEMICOLON => 59,
454 SDLK_UNDERSCORE => 95,
483 SDL_ACTIVEEVENT => 1,
484 SDL_ANYFORMAT => 268435456,
486 SDL_APPINPUTFOCUS => 2,
487 SDL_APPMOUSEFOCUS => 1,
490 SDL_AUDIO_PAUSED => 2,
491 SDL_AUDIO_PLAYING => 1,
492 SDL_AUDIO_STOPPED => 0,
494 SDL_BUTTON_LEFT => 1,
495 SDL_BUTTON_MIDDLE => 2,
496 SDL_BUTTON_RIGHT => 4,
497 SDL_BUTTON_WHEELUP => 8,
498 SDL_BUTTON_WHEELDOWN => 16,
500 SDL_DOUBLEBUF => 1073741824,
502 SDL_FULLSCREEN => -2147483648,
504 SDL_GL_ACCUM_ALPHA_SIZE => 11,
505 SDL_GL_ACCUM_BLUE_SIZE => 10,
506 SDL_GL_ACCUM_GREEN_SIZE => 9,
507 SDL_GL_ACCUM_RED_SIZE => 8,
508 SDL_GL_ALPHA_SIZE => 3,
509 SDL_GL_BLUE_SIZE => 2,
510 SDL_GL_BUFFER_SIZE => 4,
511 SDL_GL_DEPTH_SIZE => 6,
512 SDL_GL_DOUBLEBUFFER => 5,
513 SDL_GL_GREEN_SIZE => 1,
514 SDL_GL_RED_SIZE => 0,
515 SDL_GL_STENCIL_SIZE => 7,
519 SDL_GRAB_QUERY => -1,
521 SDL_HAT_CENTERED => 0,
524 SDL_HAT_LEFTDOWN => 12,
527 SDL_HAT_RIGHTDOWN => 6,
528 SDL_HAT_RIGHTUP => 3,
532 SDL_HWPALETTE => 536870912,
537 SDL_INIT_AUDIO => 16,
538 SDL_INIT_CDROM => 256,
539 SDL_INIT_EVERYTHING => 65535,
540 SDL_INIT_JOYSTICK => 512,
541 SDL_INIT_NOPARACHUTE => 1048576,
543 SDL_INIT_VIDEO => 32,
545 SDL_IYUV_OVERLAY => 1448433993,
547 SDL_JOYAXISMOTION => 7,
548 SDL_JOYBALLMOTION => 8,
549 SDL_JOYBUTTONDOWN => 10,
550 SDL_JOYBUTTONUP => 11,
551 SDL_JOYHATMOTION => 9,
556 SDL_MIX_MAXVOLUME => 128,
558 SDL_MOUSEBUTTONDOWN => 5,
559 SDL_MOUSEBUTTONUP => 6,
560 SDL_MOUSEMOTION => 4,
563 SDL_OPENGLBLIT => 10,
565 SDL_PREALLOC => 16777216,
571 SDL_RLEACCEL => 16384,
572 SDL_RLEACCELOK => 8192,
573 SDL_SRCALPHA => 65536,
574 SDL_SRCCOLORKEY => 4096,
576 SDL_SYSWMEVENT => 13,
577 SDL_UYVY_OVERLAY => 1498831189,
578 SDL_VIDEOEXPOSE => 17,
579 SDL_VIDEORESIZE => 16,
580 SDL_YUY2_OVERLAY => 844715353,
581 SDL_YV12_OVERLAY => 842094169,
582 SDL_YVYU_OVERLAY => 1431918169,
593 TTF_STYLE_ITALIC => 2,
594 TTF_STYLE_NORMAL => 0,
595 TTF_STYLE_UNDERLINE => 4,
597 UNICODE_BLENDED => 256,
598 UNICODE_SHADED => 128,
605 SDL_SVG_FLAG_DIRECT => 0,
606 SDL_SVG_FLAG_COMPOSITE => 1,
608 SDL_SAMPLEFLAG_NONE => 0,
609 SDL_SAMPLEFLAG_CANSEEK => 1,
610 SDL_SAMPLEFLAG_EOF => 1<<29,
611 SDL_SAMPLEFLAG_ERROR => 1<<30,
612 SDL_SAMPLEFLAG_EAGAIN => 1<<31,