implemented unionall and unionall_ip
[sdlgit/SDL_perl.git] / lib / SDL / Constants.pm
1 #!/usr/bin/env perl
2 #
3 # Constants.pm
4 #
5 # Copyright (C) 2005 David J. Goehrig <dgoehrig@cpan.org>
6 #
7 # ------------------------------------------------------------------------------
8 #
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.
13
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.
18
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
22 #
23 # ------------------------------------------------------------------------------
24 #
25 # Please feel free to send questions, suggestions or improvements to:
26 #
27 #       David J. Goehrig
28 #       dgoehrig@cpan.org
29 #
30
31 package SDL::Constants;
32
33 @EXPORT=qw(
34         AUDIO_S16
35         AUDIO_S16MSB
36         AUDIO_S8
37         AUDIO_U16
38         AUDIO_U16MSB
39         AUDIO_U8
40         CD_ERROR
41         CD_PAUSED
42         CD_PLAYING
43         CD_STOPPED
44         CD_TRAYEMPTY
45         INADDR_ANY
46         INADDR_NONE
47         KMOD_ALT
48         KMOD_CAPS
49         KMOD_CTRL
50         KMOD_LALT
51         KMOD_LCTRL
52         KMOD_LSHIFT
53         KMOD_NONE
54         KMOD_NUM
55         KMOD_RALT
56         KMOD_RCTRL
57         KMOD_RSHIFT
58         KMOD_SHIFT
59         MIX_DEFAULT_CHANNELS
60         MIX_DEFAULT_FORMAT
61         MIX_DEFAULT_FREQUENCY
62         MIX_FADING_IN
63         MIX_FADING_OUT
64         MIX_MAX_VOLUME
65         MIX_NO_FADING
66         SDLK_0
67         SDLK_1
68         SDLK_2
69         SDLK_3
70         SDLK_4
71         SDLK_5
72         SDLK_6
73         SDLK_7
74         SDLK_8
75         SDLK_9
76         SDLK_AMPERSAND
77         SDLK_ASTERISK
78         SDLK_AT
79         SDLK_BACKQUOTE
80         SDLK_BACKSLASH
81         SDLK_BACKSPACE
82         SDLK_BREAK
83         SDLK_CAPSLOCK
84         SDLK_CARET
85         SDLK_CLEAR
86         SDLK_COLON
87         SDLK_COMMA
88         SDLK_DELETE
89         SDLK_DOLLAR
90         SDLK_DOWN
91         SDLK_END
92         SDLK_EQUALS
93         SDLK_ESCAPE
94         SDLK_EURO
95         SDLK_EXCLAIM
96         SDLK_F1
97         SDLK_F10
98         SDLK_F11
99         SDLK_F12
100         SDLK_F13
101         SDLK_F14
102         SDLK_F15
103         SDLK_F2
104         SDLK_F3
105         SDLK_F4
106         SDLK_F5
107         SDLK_F6
108         SDLK_F7
109         SDLK_F8
110         SDLK_F9
111         SDLK_GREATER
112         SDLK_HASH
113         SDLK_HELP
114         SDLK_HOME
115         SDLK_INSERT
116         SDLK_KP0
117         SDLK_KP1
118         SDLK_KP2
119         SDLK_KP3
120         SDLK_KP4
121         SDLK_KP5
122         SDLK_KP6
123         SDLK_KP7
124         SDLK_KP8
125         SDLK_KP9
126         SDLK_KP_DIVIDE
127         SDLK_KP_ENTER
128         SDLK_KP_EQUALS
129         SDLK_KP_MINUS
130         SDLK_KP_MULTIPLY
131         SDLK_KP_PERIOD
132         SDLK_KP_PLUS
133         SDLK_LALT
134         SDLK_LCTRL
135         SDLK_LEFT
136         SDLK_LEFTBRACKET
137         SDLK_LEFTPAREN
138         SDLK_LESS
139         SDLK_LMETA
140         SDLK_LSHIFT
141         SDLK_LSUPER
142         SDLK_MENU
143         SDLK_MINUS
144         SDLK_MODE
145         SDLK_NUMLOCK
146         SDLK_PAGEDOWN
147         SDLK_PAGEUP
148         SDLK_PAUSE
149         SDLK_PERIOD
150         SDLK_PLUS
151         SDLK_POWER
152         SDLK_PRINT
153         SDLK_QUESTION
154         SDLK_QUOTE
155         SDLK_QUOTEDBL
156         SDLK_RALT
157         SDLK_RCTRL
158         SDLK_RETURN
159         SDLK_RIGHT
160         SDLK_RIGHTBRACKET
161         SDLK_RIGHTPAREN
162         SDLK_RMETA
163         SDLK_RSHIFT
164         SDLK_RSUPER
165         SDLK_SCROLLOCK
166         SDLK_SEMICOLON
167         SDLK_SLASH
168         SDLK_SPACE
169         SDLK_SYSREQ
170         SDLK_TAB
171         SDLK_UNDERSCORE
172         SDLK_UP
173         SDLK_a
174         SDLK_b
175         SDLK_c
176         SDLK_d
177         SDLK_e
178         SDLK_f
179         SDLK_g
180         SDLK_h
181         SDLK_i
182         SDLK_j
183         SDLK_k
184         SDLK_l
185         SDLK_m
186         SDLK_n
187         SDLK_o
188         SDLK_p
189         SDLK_q
190         SDLK_r
191         SDLK_s
192         SDLK_t
193         SDLK_u
194         SDLK_v
195         SDLK_w
196         SDLK_x
197         SDLK_y
198         SDLK_z
199         SDL_ACTIVEEVENT
200         SDL_ANYFORMAT
201         SDL_APPACTIVE
202         SDL_APPINPUTFOCUS
203         SDL_APPMOUSEFOCUS
204         SDL_ASYNCBLIT
205         SDL_AUDIO_PAUSED
206         SDL_AUDIO_PLAYING
207         SDL_AUDIO_STOPPED
208         SDL_BUTTON_LEFT
209         SDL_BUTTON_MIDDLE
210         SDL_BUTTON_RIGHT
211         SDL_BUTTON_WHEELUP
212         SDL_BUTTON_WHEELDOWN
213         SDL_DOUBLEBUF
214         SDL_ENABLE
215         SDL_FULLSCREEN
216         SDL_GL_ACCUM_ALPHA_SIZE
217         SDL_GL_ACCUM_BLUE_SIZE
218         SDL_GL_ACCUM_GREEN_SIZE
219         SDL_GL_ACCUM_RED_SIZE
220         SDL_GL_ALPHA_SIZE
221         SDL_GL_BLUE_SIZE
222         SDL_GL_BUFFER_SIZE
223         SDL_GL_DEPTH_SIZE
224         SDL_GL_DOUBLEBUFFER
225         SDL_GL_GREEN_SIZE
226         SDL_GL_RED_SIZE
227         SDL_GL_STENCIL_SIZE
228         SDL_GRAB_OFF
229         SDL_GRAB_ON
230         SDL_GRAB_QUERY
231         SDL_HAT_CENTERED
232         SDL_HAT_DOWN
233         SDL_HAT_LEFT
234         SDL_HAT_LEFTDOWN
235         SDL_HAT_LEFTUP
236         SDL_HAT_RIGHT
237         SDL_HAT_RIGHTDOWN
238         SDL_HAT_RIGHTUP
239         SDL_HAT_UP
240         SDL_HWACCEL
241         SDL_HWPALETTE
242         SDL_HWSURFACE
243         SDL_IGNORE
244         SDL_INIT_AUDIO
245         SDL_INIT_CDROM
246         SDL_INIT_EVERYTHING
247         SDL_INIT_JOYSTICK
248         SDL_INIT_NOPARACHUTE
249         SDL_INIT_TIMER
250         SDL_INIT_VIDEO
251         SDL_IYUV_OVERLAY
252         SDL_JOYAXISMOTION
253         SDL_JOYBALLMOTION
254         SDL_JOYBUTTONDOWN
255         SDL_JOYBUTTONUP
256         SDL_JOYHATMOTION
257         SDL_KEYDOWN
258         SDL_KEYUP
259         SDL_MIX_MAXVOLUME
260         SDL_MOUSEBUTTONDOWN
261         SDL_MOUSEBUTTONUP
262         SDL_MOUSEMOTION
263         SDL_OPENGL
264         SDL_OPENGLBLIT
265         SDL_PREALLOC
266         SDL_PRESSED
267         SDL_QUERY
268         SDL_QUIT
269         SDL_RELEASED
270         SDL_RESIZABLE
271         SDL_RLEACCEL
272         SDL_RLEACCELOK
273         SDL_SRCALPHA
274         SDL_SRCCOLORKEY
275         SDL_SWSURFACE
276         SDL_SYSWMEVENT
277         SDL_UYVY_OVERLAY
278         SDL_VIDEOEXPOSE
279         SDL_VIDEORESIZE
280         SDL_YUY2_OVERLAY
281         SDL_YV12_OVERLAY
282         SDL_YVYU_OVERLAY
283         SMPEG_ERROR
284         SMPEG_PLAYING
285         SMPEG_STOPPED
286         TEXT_BLENDED
287         TEXT_SHADED
288         TEXT_SOLID
289         TTF_STYLE_BOLD
290         TTF_STYLE_ITALIC
291         TTF_STYLE_NORMAL
292         TTF_STYLE_UNDERLINE
293         UNICODE_BLENDED
294         UNICODE_SHADED
295         UNICODE_SOLID
296         UTF8_BLENDED
297         UTF8_SHADED
298         UTF8_SOLID
299         SDL_SVG_FLAG_DIRECT
300         SDL_SVG_FLAG_COMPOSITE
301         SDL_SAMPLEFLAG_NONE
302         SDL_SAMPLEFLAG_CANSEEK
303         SDL_SAMPLEFLAG_EOF
304         SDL_SAMPLEFLAG_ERROR
305         SDL_SAMPLEFLAG_EAGAIN
306 );
307
308 @ISA = qw(Exporter);
309
310 sub AUDIO_S16 {32784}
311 sub AUDIO_S16MSB {36880}
312 sub AUDIO_S8 {32776}
313 sub AUDIO_U16 {16}
314 sub AUDIO_U16MSB {4112}
315 sub AUDIO_U8 {8}
316 sub CD_ERROR {-1}
317 sub CD_PAUSED {3}
318 sub CD_PLAYING {2}
319 sub CD_STOPPED {1}
320 sub CD_TRAYEMPTY {0}
321 sub INADDR_ANY {0}
322 sub INADDR_NONE {-1}
323 sub KMOD_ALT {768}
324 sub KMOD_CAPS {8192}
325 sub KMOD_CTRL {192}
326 sub KMOD_LALT {256}
327 sub KMOD_LCTRL {64}
328 sub KMOD_LSHIFT {1}
329 sub KMOD_NONE {0}
330 sub KMOD_NUM {4096}
331 sub KMOD_RALT {512}
332 sub KMOD_RCTRL {128}
333 sub KMOD_RSHIFT {2}
334 sub KMOD_SHIFT {3}
335 sub MIX_DEFAULT_CHANNELS {2}
336 sub MIX_DEFAULT_FORMAT {32784}
337 sub MIX_DEFAULT_FREQUENCY {22050}
338 sub MIX_FADING_IN {2}
339 sub MIX_FADING_OUT {1}
340 sub MIX_MAX_VOLUME {128}
341 sub MIX_NO_FADING {0}
342 sub SDLK_0 {48}
343 sub SDLK_1 {49}
344 sub SDLK_2 {50}
345 sub SDLK_3 {51}
346 sub SDLK_4 {52}
347 sub SDLK_5 {53}
348 sub SDLK_6 {54}
349 sub SDLK_7 {55}
350 sub SDLK_8 {56}
351 sub SDLK_9 {57}
352 sub SDLK_AMPERSAND {38}
353 sub SDLK_ASTERISK {42}
354 sub SDLK_AT {64}
355 sub SDLK_BACKQUOTE {96}
356 sub SDLK_BACKSLASH {92}
357 sub SDLK_BACKSPACE {8}
358 sub SDLK_BREAK {318}
359 sub SDLK_CAPSLOCK {301}
360 sub SDLK_CARET {94}
361 sub SDLK_CLEAR {12}
362 sub SDLK_COLON {58}
363 sub SDLK_COMMA {44}
364 sub SDLK_DELETE {127}
365 sub SDLK_DOLLAR {36}
366 sub SDLK_DOWN {274}
367 sub SDLK_END {279}
368 sub SDLK_EQUALS {61}
369 sub SDLK_ESCAPE {27}
370 sub SDLK_EURO {321}
371 sub SDLK_EXCLAIM {33}
372 sub SDLK_F1 {282}
373 sub SDLK_F10 {291}
374 sub SDLK_F11 {292}
375 sub SDLK_F12 {293}
376 sub SDLK_F13 {294}
377 sub SDLK_F14 {295}
378 sub SDLK_F15 {296}
379 sub SDLK_F2 {283}
380 sub SDLK_F3 {284}
381 sub SDLK_F4 {285}
382 sub SDLK_F5 {286}
383 sub SDLK_F6 {287}
384 sub SDLK_F7 {288}
385 sub SDLK_F8 {289}
386 sub SDLK_F9 {290}
387 sub SDLK_GREATER {62}
388 sub SDLK_HASH {35}
389 sub SDLK_HELP {315}
390 sub SDLK_HOME {278}
391 sub SDLK_INSERT {277}
392 sub SDLK_KP0 {256}
393 sub SDLK_KP1 {257}
394 sub SDLK_KP2 {258}
395 sub SDLK_KP3 {259}
396 sub SDLK_KP4 {260}
397 sub SDLK_KP5 {261}
398 sub SDLK_KP6 {262}
399 sub SDLK_KP7 {263}
400 sub SDLK_KP8 {264}
401 sub SDLK_KP9 {265}
402 sub SDLK_KP_DIVIDE {267}
403 sub SDLK_KP_ENTER {271}
404 sub SDLK_KP_EQUALS {272}
405 sub SDLK_KP_MINUS {269}
406 sub SDLK_KP_MULTIPLY {268}
407 sub SDLK_KP_PERIOD {266}
408 sub SDLK_KP_PLUS {270}
409 sub SDLK_LALT {308}
410 sub SDLK_LCTRL {306}
411 sub SDLK_LEFT {276}
412 sub SDLK_LEFTBRACKET {91}
413 sub SDLK_LEFTPAREN {40}
414 sub SDLK_LESS {60}
415 sub SDLK_LMETA {310}
416 sub SDLK_LSHIFT {304}
417 sub SDLK_LSUPER {311}
418 sub SDLK_MENU {319}
419 sub SDLK_MINUS {45}
420 sub SDLK_MODE {313}
421 sub SDLK_NUMLOCK {300}
422 sub SDLK_PAGEDOWN {281}
423 sub SDLK_PAGEUP {280}
424 sub SDLK_PAUSE {19}
425 sub SDLK_PERIOD {46}
426 sub SDLK_PLUS {43}
427 sub SDLK_POWER {320}
428 sub SDLK_PRINT {316}
429 sub SDLK_QUESTION {63}
430 sub SDLK_QUOTE {39}
431 sub SDLK_QUOTEDBL {34}
432 sub SDLK_RALT {307}
433 sub SDLK_RCTRL {305}
434 sub SDLK_RETURN {13}
435 sub SDLK_RIGHT {275}
436 sub SDLK_RIGHTBRACKET {93}
437 sub SDLK_RIGHTPAREN {41}
438 sub SDLK_RMETA {309}
439 sub SDLK_RSHIFT {303}
440 sub SDLK_RSUPER {312}
441 sub SDLK_SCROLLOCK {302}
442 sub SDLK_SEMICOLON {59}
443 sub SDLK_SLASH {47}
444 sub SDLK_SPACE {32}
445 sub SDLK_SYSREQ {317}
446 sub SDLK_TAB {9}
447 sub SDLK_UNDERSCORE {95}
448 sub SDLK_UP {273}
449 sub SDLK_a {97}
450 sub SDLK_b {98}
451 sub SDLK_c {99}
452 sub SDLK_d {100}
453 sub SDLK_e {101}
454 sub SDLK_f {102}
455 sub SDLK_g {103}
456 sub SDLK_h {104}
457 sub SDLK_i {105}
458 sub SDLK_j {106}
459 sub SDLK_k {107}
460 sub SDLK_l {108}
461 sub SDLK_m {109}
462 sub SDLK_n {110}
463 sub SDLK_o {111}
464 sub SDLK_p {112}
465 sub SDLK_q {113}
466 sub SDLK_r {114}
467 sub SDLK_s {115}
468 sub SDLK_t {116}
469 sub SDLK_u {117}
470 sub SDLK_v {118}
471 sub SDLK_w {119}
472 sub SDLK_x {120}
473 sub SDLK_y {121}
474 sub SDLK_z {122}
475 sub SDL_ACTIVEEVENT {1}
476 sub SDL_ANYFORMAT {268435456}
477 sub SDL_APPACTIVE {4}
478 sub SDL_APPINPUTFOCUS {2}
479 sub SDL_APPMOUSEFOCUS {1}
480 sub SDL_ASYNCBLIT {4}
481 sub SDL_AUDIO_PAUSED {2}
482 sub SDL_AUDIO_PLAYING {1}
483 sub SDL_AUDIO_STOPPED {0}
484 sub SDL_BUTTON_LEFT {1}
485 sub SDL_BUTTON_MIDDLE {2}
486 sub SDL_BUTTON_RIGHT {4}
487 sub SDL_BUTTON_WHEELUP {8}
488 sub SDL_BUTTON_WHEELDOWN {16}
489 sub SDL_DOUBLEBUF {1073741824}
490 sub SDL_ENABLE {1}
491 sub SDL_FULLSCREEN {-2147483648}
492 sub SDL_GL_ACCUM_ALPHA_SIZE {11}
493 sub SDL_GL_ACCUM_BLUE_SIZE {10}
494 sub SDL_GL_ACCUM_GREEN_SIZE {9}
495 sub SDL_GL_ACCUM_RED_SIZE {8}
496 sub SDL_GL_ALPHA_SIZE {3}
497 sub SDL_GL_BLUE_SIZE {2}
498 sub SDL_GL_BUFFER_SIZE {4}
499 sub SDL_GL_DEPTH_SIZE {6}
500 sub SDL_GL_DOUBLEBUFFER {5}
501 sub SDL_GL_GREEN_SIZE {1}
502 sub SDL_GL_RED_SIZE {0}
503 sub SDL_GL_STENCIL_SIZE {7}
504 sub SDL_GRAB_OFF {0}
505 sub SDL_GRAB_ON {1}
506 sub SDL_GRAB_QUERY {-1}
507 sub SDL_HAT_CENTERED {0}
508 sub SDL_HAT_DOWN {4}
509 sub SDL_HAT_LEFT {8}
510 sub SDL_HAT_LEFTDOWN {12}
511 sub SDL_HAT_LEFTUP {9}
512 sub SDL_HAT_RIGHT {2}
513 sub SDL_HAT_RIGHTDOWN {6}
514 sub SDL_HAT_RIGHTUP {3}
515 sub SDL_HAT_UP {1}
516 sub SDL_HWACCEL {256}
517 sub SDL_HWPALETTE {536870912}
518 sub SDL_HWSURFACE {1}
519 sub SDL_IGNORE {0}
520 sub SDL_INIT_AUDIO {16}
521 sub SDL_INIT_CDROM {256}
522 sub SDL_INIT_EVERYTHING {65535}
523 sub SDL_INIT_JOYSTICK {512}
524 sub SDL_INIT_NOPARACHUTE {1048576}
525 sub SDL_INIT_TIMER {1}
526 sub SDL_INIT_VIDEO {32}
527 sub SDL_IYUV_OVERLAY {1448433993}
528 sub SDL_JOYAXISMOTION {7}
529 sub SDL_JOYBALLMOTION {8}
530 sub SDL_JOYBUTTONDOWN {10}
531 sub SDL_JOYBUTTONUP {11}
532 sub SDL_JOYHATMOTION {9}
533 sub SDL_KEYDOWN {2}
534 sub SDL_KEYUP {3}
535 sub SDL_MIX_MAXVOLUME {128}
536 sub SDL_MOUSEBUTTONDOWN {5}
537 sub SDL_MOUSEBUTTONUP {6}
538 sub SDL_MOUSEMOTION {4}
539 sub SDL_OPENGL {2}
540 sub SDL_OPENGLBLIT {10}
541 sub SDL_PREALLOC {16777216}
542 sub SDL_PRESSED {1}
543 sub SDL_QUERY {-1}
544 sub SDL_QUIT {12}
545 sub SDL_RELEASED {0}
546 sub SDL_RESIZABLE {16}
547 sub SDL_RLEACCEL {16384}
548 sub SDL_RLEACCELOK {8192}
549 sub SDL_SRCALPHA {65536}
550 sub SDL_SRCCOLORKEY {4096}
551 sub SDL_SWSURFACE {0}
552 sub SDL_SYSWMEVENT {13}
553 sub SDL_UYVY_OVERLAY {1498831189}
554 sub SDL_VIDEOEXPOSE {17}
555 sub SDL_VIDEORESIZE {16}
556 sub SDL_YUY2_OVERLAY {844715353}
557 sub SDL_YV12_OVERLAY {842094169}
558 sub SDL_YVYU_OVERLAY {1431918169}
559 sub SMPEG_ERROR {-1}
560 sub SMPEG_PLAYING {1}
561 sub SMPEG_STOPPED {0}
562 sub TEXT_BLENDED {4}
563 sub TEXT_SHADED {2}
564 sub TEXT_SOLID {1}
565 sub TTF_STYLE_BOLD {1}
566 sub TTF_STYLE_ITALIC {2}
567 sub TTF_STYLE_NORMAL {0}
568 sub TTF_STYLE_UNDERLINE {4}
569 sub UNICODE_BLENDED {256}
570 sub UNICODE_SHADED {128}
571 sub UNICODE_SOLID {64}
572 sub UTF8_BLENDED {32}
573 sub UTF8_SHADED {16}
574 sub UTF8_SOLID {8}
575 sub SDL_SVG_FLAG_DIRECT {0}
576 sub SDL_SVG_FLAG_COMPOSITE {1}
577 sub SDL_SAMPLEFLAG_NONE {0}
578 sub SDL_SAMPLEFLAG_CANSEEK {1}
579 sub SDL_SAMPLEFLAG_EOF {1<<29}
580 sub SDL_SAMPLEFLAG_ERROR {1<<30}
581 sub SDL_SAMPLEFLAG_EAGAIN {1<<31}
582
583 1;