Merged garu's changes: new Game::Rect, TTFont docs, and tests for
[sdlgit/SDL_perl.git] / lib / SDL / Constants.pm
CommitLineData
bfd90409 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
31package 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
659a4733 308@ISA = qw(Exporter);
bfd90409 309
310sub AUDIO_S16 {32784}
311sub AUDIO_S16MSB {36880}
312sub AUDIO_S8 {32776}
313sub AUDIO_U16 {16}
314sub AUDIO_U16MSB {4112}
315sub AUDIO_U8 {8}
316sub CD_ERROR {-1}
317sub CD_PAUSED {3}
318sub CD_PLAYING {2}
319sub CD_STOPPED {1}
320sub CD_TRAYEMPTY {0}
321sub INADDR_ANY {0}
322sub INADDR_NONE {-1}
323sub KMOD_ALT {768}
324sub KMOD_CAPS {8192}
325sub KMOD_CTRL {192}
326sub KMOD_LALT {256}
327sub KMOD_LCTRL {64}
328sub KMOD_LSHIFT {1}
329sub KMOD_NONE {0}
330sub KMOD_NUM {4096}
331sub KMOD_RALT {512}
332sub KMOD_RCTRL {128}
333sub KMOD_RSHIFT {2}
334sub KMOD_SHIFT {3}
335sub MIX_DEFAULT_CHANNELS {2}
336sub MIX_DEFAULT_FORMAT {32784}
337sub MIX_DEFAULT_FREQUENCY {22050}
338sub MIX_FADING_IN {2}
339sub MIX_FADING_OUT {1}
340sub MIX_MAX_VOLUME {128}
341sub MIX_NO_FADING {0}
342sub SDLK_0 {48}
343sub SDLK_1 {49}
344sub SDLK_2 {50}
345sub SDLK_3 {51}
346sub SDLK_4 {52}
347sub SDLK_5 {53}
348sub SDLK_6 {54}
349sub SDLK_7 {55}
350sub SDLK_8 {56}
351sub SDLK_9 {57}
352sub SDLK_AMPERSAND {38}
353sub SDLK_ASTERISK {42}
354sub SDLK_AT {64}
355sub SDLK_BACKQUOTE {96}
356sub SDLK_BACKSLASH {92}
357sub SDLK_BACKSPACE {8}
358sub SDLK_BREAK {318}
359sub SDLK_CAPSLOCK {301}
360sub SDLK_CARET {94}
361sub SDLK_CLEAR {12}
362sub SDLK_COLON {58}
363sub SDLK_COMMA {44}
364sub SDLK_DELETE {127}
365sub SDLK_DOLLAR {36}
366sub SDLK_DOWN {274}
367sub SDLK_END {279}
368sub SDLK_EQUALS {61}
369sub SDLK_ESCAPE {27}
370sub SDLK_EURO {321}
371sub SDLK_EXCLAIM {33}
372sub SDLK_F1 {282}
373sub SDLK_F10 {291}
374sub SDLK_F11 {292}
375sub SDLK_F12 {293}
376sub SDLK_F13 {294}
377sub SDLK_F14 {295}
378sub SDLK_F15 {296}
379sub SDLK_F2 {283}
380sub SDLK_F3 {284}
381sub SDLK_F4 {285}
382sub SDLK_F5 {286}
383sub SDLK_F6 {287}
384sub SDLK_F7 {288}
385sub SDLK_F8 {289}
386sub SDLK_F9 {290}
387sub SDLK_GREATER {62}
388sub SDLK_HASH {35}
389sub SDLK_HELP {315}
390sub SDLK_HOME {278}
391sub SDLK_INSERT {277}
392sub SDLK_KP0 {256}
393sub SDLK_KP1 {257}
394sub SDLK_KP2 {258}
395sub SDLK_KP3 {259}
396sub SDLK_KP4 {260}
397sub SDLK_KP5 {261}
398sub SDLK_KP6 {262}
399sub SDLK_KP7 {263}
400sub SDLK_KP8 {264}
401sub SDLK_KP9 {265}
402sub SDLK_KP_DIVIDE {267}
403sub SDLK_KP_ENTER {271}
404sub SDLK_KP_EQUALS {272}
405sub SDLK_KP_MINUS {269}
406sub SDLK_KP_MULTIPLY {268}
407sub SDLK_KP_PERIOD {266}
408sub SDLK_KP_PLUS {270}
409sub SDLK_LALT {308}
410sub SDLK_LCTRL {306}
411sub SDLK_LEFT {276}
412sub SDLK_LEFTBRACKET {91}
413sub SDLK_LEFTPAREN {40}
414sub SDLK_LESS {60}
415sub SDLK_LMETA {310}
416sub SDLK_LSHIFT {304}
417sub SDLK_LSUPER {311}
418sub SDLK_MENU {319}
419sub SDLK_MINUS {45}
420sub SDLK_MODE {313}
421sub SDLK_NUMLOCK {300}
422sub SDLK_PAGEDOWN {281}
423sub SDLK_PAGEUP {280}
424sub SDLK_PAUSE {19}
425sub SDLK_PERIOD {46}
426sub SDLK_PLUS {43}
427sub SDLK_POWER {320}
428sub SDLK_PRINT {316}
429sub SDLK_QUESTION {63}
430sub SDLK_QUOTE {39}
431sub SDLK_QUOTEDBL {34}
432sub SDLK_RALT {307}
433sub SDLK_RCTRL {305}
434sub SDLK_RETURN {13}
435sub SDLK_RIGHT {275}
436sub SDLK_RIGHTBRACKET {93}
437sub SDLK_RIGHTPAREN {41}
438sub SDLK_RMETA {309}
439sub SDLK_RSHIFT {303}
440sub SDLK_RSUPER {312}
441sub SDLK_SCROLLOCK {302}
442sub SDLK_SEMICOLON {59}
443sub SDLK_SLASH {47}
444sub SDLK_SPACE {32}
445sub SDLK_SYSREQ {317}
446sub SDLK_TAB {9}
447sub SDLK_UNDERSCORE {95}
448sub SDLK_UP {273}
449sub SDLK_a {97}
450sub SDLK_b {98}
451sub SDLK_c {99}
452sub SDLK_d {100}
453sub SDLK_e {101}
454sub SDLK_f {102}
455sub SDLK_g {103}
456sub SDLK_h {104}
457sub SDLK_i {105}
458sub SDLK_j {106}
459sub SDLK_k {107}
460sub SDLK_l {108}
461sub SDLK_m {109}
462sub SDLK_n {110}
463sub SDLK_o {111}
464sub SDLK_p {112}
465sub SDLK_q {113}
466sub SDLK_r {114}
467sub SDLK_s {115}
468sub SDLK_t {116}
469sub SDLK_u {117}
470sub SDLK_v {118}
471sub SDLK_w {119}
472sub SDLK_x {120}
473sub SDLK_y {121}
474sub SDLK_z {122}
475sub SDL_ACTIVEEVENT {1}
476sub SDL_ANYFORMAT {268435456}
477sub SDL_APPACTIVE {4}
478sub SDL_APPINPUTFOCUS {2}
479sub SDL_APPMOUSEFOCUS {1}
480sub SDL_ASYNCBLIT {4}
481sub SDL_AUDIO_PAUSED {2}
482sub SDL_AUDIO_PLAYING {1}
483sub SDL_AUDIO_STOPPED {0}
484sub SDL_BUTTON_LEFT {1}
485sub SDL_BUTTON_MIDDLE {2}
486sub SDL_BUTTON_RIGHT {4}
487sub SDL_BUTTON_WHEELUP {8}
488sub SDL_BUTTON_WHEELDOWN {16}
489sub SDL_DOUBLEBUF {1073741824}
490sub SDL_ENABLE {1}
491sub SDL_FULLSCREEN {-2147483648}
492sub SDL_GL_ACCUM_ALPHA_SIZE {11}
493sub SDL_GL_ACCUM_BLUE_SIZE {10}
494sub SDL_GL_ACCUM_GREEN_SIZE {9}
495sub SDL_GL_ACCUM_RED_SIZE {8}
496sub SDL_GL_ALPHA_SIZE {3}
497sub SDL_GL_BLUE_SIZE {2}
498sub SDL_GL_BUFFER_SIZE {4}
499sub SDL_GL_DEPTH_SIZE {6}
500sub SDL_GL_DOUBLEBUFFER {5}
501sub SDL_GL_GREEN_SIZE {1}
502sub SDL_GL_RED_SIZE {0}
503sub SDL_GL_STENCIL_SIZE {7}
504sub SDL_GRAB_OFF {0}
505sub SDL_GRAB_ON {1}
506sub SDL_GRAB_QUERY {-1}
507sub SDL_HAT_CENTERED {0}
508sub SDL_HAT_DOWN {4}
509sub SDL_HAT_LEFT {8}
510sub SDL_HAT_LEFTDOWN {12}
511sub SDL_HAT_LEFTUP {9}
512sub SDL_HAT_RIGHT {2}
513sub SDL_HAT_RIGHTDOWN {6}
514sub SDL_HAT_RIGHTUP {3}
515sub SDL_HAT_UP {1}
516sub SDL_HWACCEL {256}
517sub SDL_HWPALETTE {536870912}
518sub SDL_HWSURFACE {1}
519sub SDL_IGNORE {0}
520sub SDL_INIT_AUDIO {16}
521sub SDL_INIT_CDROM {256}
522sub SDL_INIT_EVERYTHING {65535}
523sub SDL_INIT_JOYSTICK {512}
524sub SDL_INIT_NOPARACHUTE {1048576}
525sub SDL_INIT_TIMER {1}
526sub SDL_INIT_VIDEO {32}
527sub SDL_IYUV_OVERLAY {1448433993}
528sub SDL_JOYAXISMOTION {7}
529sub SDL_JOYBALLMOTION {8}
530sub SDL_JOYBUTTONDOWN {10}
531sub SDL_JOYBUTTONUP {11}
532sub SDL_JOYHATMOTION {9}
533sub SDL_KEYDOWN {2}
534sub SDL_KEYUP {3}
535sub SDL_MIX_MAXVOLUME {128}
536sub SDL_MOUSEBUTTONDOWN {5}
537sub SDL_MOUSEBUTTONUP {6}
538sub SDL_MOUSEMOTION {4}
539sub SDL_OPENGL {2}
540sub SDL_OPENGLBLIT {10}
541sub SDL_PREALLOC {16777216}
542sub SDL_PRESSED {1}
543sub SDL_QUERY {-1}
544sub SDL_QUIT {12}
545sub SDL_RELEASED {0}
546sub SDL_RESIZABLE {16}
547sub SDL_RLEACCEL {16384}
548sub SDL_RLEACCELOK {8192}
549sub SDL_SRCALPHA {65536}
550sub SDL_SRCCOLORKEY {4096}
551sub SDL_SWSURFACE {0}
552sub SDL_SYSWMEVENT {13}
553sub SDL_UYVY_OVERLAY {1498831189}
554sub SDL_VIDEOEXPOSE {17}
555sub SDL_VIDEORESIZE {16}
556sub SDL_YUY2_OVERLAY {844715353}
557sub SDL_YV12_OVERLAY {842094169}
558sub SDL_YVYU_OVERLAY {1431918169}
559sub SMPEG_ERROR {-1}
560sub SMPEG_PLAYING {1}
561sub SMPEG_STOPPED {0}
562sub TEXT_BLENDED {4}
563sub TEXT_SHADED {2}
564sub TEXT_SOLID {1}
565sub TTF_STYLE_BOLD {1}
566sub TTF_STYLE_ITALIC {2}
567sub TTF_STYLE_NORMAL {0}
568sub TTF_STYLE_UNDERLINE {4}
569sub UNICODE_BLENDED {256}
570sub UNICODE_SHADED {128}
571sub UNICODE_SOLID {64}
572sub UTF8_BLENDED {32}
573sub UTF8_SHADED {16}
574sub UTF8_SOLID {8}
575sub SDL_SVG_FLAG_DIRECT {0}
576sub SDL_SVG_FLAG_COMPOSITE {1}
577sub SDL_SAMPLEFLAG_NONE {0}
578sub SDL_SAMPLEFLAG_CANSEEK {1}
579sub SDL_SAMPLEFLAG_EOF {1<<29}
580sub SDL_SAMPLEFLAG_ERROR {1<<30}
581sub SDL_SAMPLEFLAG_EAGAIN {1<<31}
582
5831;