Commit | Line | Data |
bfd90409 |
1 | #!/usr/bin/env perl |
2 | # |
3 | # SDL.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; |
32 | |
33 | use strict; |
084b921f |
34 | use warnings; |
35 | use Carp; |
36 | |
bfd90409 |
37 | use vars qw($VERSION @ISA @EXPORT @EXPORT_OK); |
38 | |
39 | require Exporter; |
40 | require DynaLoader; |
41 | |
42 | use SDL_perl; |
43 | use SDL::Constants; |
44 | |
45 | BEGIN { |
46 | @ISA = qw(Exporter DynaLoader); |
47 | @EXPORT = qw( in verify &NULL ); |
48 | }; |
49 | |
659a4733 |
50 | # Give our caller SDL::Constant's stuff as well as ours. |
51 | sub import { |
52 | my $self = shift; |
53 | |
54 | $self->export_to_level(1, @_); |
55 | SDL::Constants->export_to_level(1); |
56 | } |
bfd90409 |
57 | |
7fd8a600 |
58 | $VERSION = '2.2.1'; |
bfd90409 |
59 | |
60 | print "$VERSION" if (defined($ARGV[0]) && ($ARGV[0] eq '--SDLperl')); |
61 | |
62 | $SDL::DEBUG=1; |
63 | |
64 | sub NULL { |
65 | return 0; |
66 | } |
67 | |
68 | sub in { |
69 | my ($k,@t) = @_; |
1cf7cae7 |
70 | return 0 unless defined $k; |
03aadbe5 |
71 | my $r = ($k ~~ @t); |
72 | return 0 if $r eq ''; |
73 | return $r; |
74 | |
bfd90409 |
75 | } |
76 | |
77 | sub verify (\%@) { |
78 | my ($options,@valid_options) = @_; |
79 | for (keys %$options) { |
084b921f |
80 | croak "Invalid option $_\n" unless in ($_, @valid_options); |
bfd90409 |
81 | } |
82 | } |
83 | |
84 | |
85 | 1; |
86 | __END__ |
87 | |
88 | =head1 NAME |
89 | |
90 | SDL_perl - Simple DirectMedia Layer for Perl |
91 | |
92 | =head1 SYNOPSIS |
93 | |
94 | use SDL; |
95 | |
96 | =head1 DESCRIPTION |
97 | |
98 | SDL_perl is a package of perl modules that provides both functional and object orient |
99 | interfaces to the Simple DirectMedia Layer for Perl 5. This package does take some |
100 | liberties with the SDL API, and attempts to adhere to the spirit of both the SDL |
101 | and Perl. This document describes the low-level functional SDL_perl API. For the |
102 | object oriented programming interface please see the documentation provided on a |
103 | per class basis. |
104 | |
105 | =head2 Init(flags) |
106 | |
107 | As with the C language API, SDL_perl initializes the SDL environment through |
108 | the C<SDL::Init> subroutine. This routine takes a mode flag constructed through |
109 | the bitwise OR product of the following functions: |
110 | |
111 | =over 4 |
112 | =item * |
113 | INIT_AUDIO() |
114 | |
115 | =item * |
116 | INIT_VIDEO() |
117 | |
118 | =item * |
119 | INIT_CDROM() |
120 | |
121 | =item * |
122 | INIT_EVERYTHING() |
123 | |
124 | =item * |
125 | INIT_NOPARACHUTE() |
126 | |
127 | =item * |
128 | INIT_JOYSTICK() |
129 | |
130 | =item * |
131 | INIT_TIMER() |
132 | |
133 | =back |
134 | |
135 | C<SDL::Init> returns 0 on success, or -1 on error. |
136 | |
137 | =head2 GetError() |
138 | |
139 | The last error message set by the SDL library can be retrieved using the subroutine |
140 | C<SDL::GetError>, which returns a scalar containing the text of the message if any. |
141 | |
142 | =head2 Delay(ms) |
143 | |
144 | This subroutine allows an application to delay further operations for atleast a |
145 | number of milliseconds provided as the argument. The actual delay may be longer |
146 | than the specified depending on the underlying OS. |
147 | |
148 | =head2 GetTicks() |
149 | |
150 | An application may retrieve the number of milliseconds expired since the initilization |
151 | of the application through this subroutine. This value resets rougly ever 49 days. |
152 | |
153 | =head2 AddTimer(interval,callback,param) |
154 | |
155 | C<AddTimer> will register a SDL_NewTimerCallback function to be executed after |
156 | C<interval> milliseconds, with parameter C<param>. SDL_NewTimerCallback objects |
157 | can be constructed with the C<NewTimer> subroutine. C<SDL::PerlTimerCallback> |
158 | will return a valid callback for executing a perl subroutine or closure. |
159 | This subroutine returns a SDL_TimerID for the newly registered callback, or NULL |
160 | on error. |
161 | |
162 | =head2 NewTimer(interval,subroutine) |
163 | |
164 | The C<NewTimer> takes an interval in milliseconds and a reference to a subroutine |
165 | to call at that interval. The subroutine will be invoked in a void context |
166 | and accepts no parameters. The callback used is that returned by C<SDL::PerlTimerCallback>. |
167 | C<NewTimer> returns the SDL_TimerID for the new timer or NULL on error. |
168 | |
169 | =head2 RemoveTimer(id) |
170 | |
171 | This subroutine taks a SDL_TimerID and removes it from the list of active callbacks. |
172 | RemoveTimer returns false on failure. |
173 | |
174 | =head2 SetTimer |
175 | |
176 | This subroutine is depreciated, please use C<NewTimer> or C<AddTimer> instead. |
177 | |
178 | =head2 CDNumDrives() |
179 | |
180 | C<SDL::CDNumDrives> returns the number of available CD-ROM drives in the system. |
181 | |
182 | =head2 CDName(drive) |
183 | |
184 | The subroutine C<SDL::CDName> returns the system specific human readable device name |
185 | for the given CD-ROM drive. |
186 | |
187 | =head2 CDOpen(drive) |
188 | |
189 | This subroutine opens a CD-ROM drive for access, returning NULL if the drive is busy |
190 | or otherwise unavailable. On success this subroutine returns a handle to the CD-ROM |
191 | drive. |
192 | |
193 | =head2 CDTrackListing(cd) |
194 | |
195 | C<SDL::CDTrackListing> returns a human readable description of a CD-ROM. For each |
196 | track one line will be produced with the following format: |
197 | |
198 | Track index: %d, id %d, %2d.%2d |
199 | |
200 | This is provided to ease the creation of human readable descriptions and debugging. |
201 | |
202 | =head2 CDTrackId(track) |
203 | |
204 | C<CDTrackId> returns the id field of the given SDL_CDtrack structure. |
205 | |
206 | =head2 CDTrackType(track) |
207 | |
208 | C<CDTrackType> returns the type field of the given SDL_CDtrack structure. |
209 | |
210 | =head2 CDTrackLength(track) |
211 | |
212 | C<CDTrackLength> returns the length field of the given SDL_CDtrack structure. |
213 | |
214 | =head2 CDTrackOffset(track) |
215 | |
216 | C<CDTrackOffset> returns the offset field of the given SDL_CDtrack structure. |
217 | |
218 | =head2 CDStatus(cd) |
219 | |
220 | The function C<CDStatus> returns the current status of the given SDL_CDrom. |
221 | C<CDStatus>'s return values are: |
222 | |
223 | =over 4 |
224 | |
225 | =item * |
226 | CD_TRAYEMPTY |
227 | |
228 | =item * |
229 | CD_PLAYING |
230 | |
231 | =item * |
232 | CD_STOPPED |
233 | |
234 | =item * |
235 | CD_PAUSED |
236 | |
237 | =item * |
238 | CD_ERROR |
239 | |
240 | =back |
241 | |
242 | =head2 CDPlayTracks(cd,track,tracks,frame,frames) |
243 | |
244 | To start playing from an arbitrary portion of a CD, one can provide |
245 | C<SDL::CDPlayTracks> with a CD, a starting track, the number of tracks, |
246 | a starting frame, and the number of frames to be played. |
247 | |
248 | =head2 CDPlay(cd,track,length) |
249 | |
250 | C<SDL::CDPlay> plays the next C<length> tracks starting from C<track> |
251 | |
252 | =head2 CDPause(cd) |
253 | |
254 | This function will pause CD playback until resume is called. |
255 | |
256 | =head2 CDResume(cd) |
257 | |
258 | This function will resume CD playback if paused. |
259 | |
260 | =head2 CDStop(cd) |
261 | |
262 | C<SDL::CDStop> will stop CD playback if playing. |
263 | |
264 | =head2 CDEject(cd) |
265 | |
266 | This function will eject the CD |
267 | |
268 | =head2 CDClose(cd) |
269 | |
270 | This function will release an opened CD. |
271 | |
272 | =head2 CDNumTracks |
273 | |
274 | =head2 CDCurTrack |
275 | |
276 | =head2 CDCurFrame |
277 | |
278 | =head2 CDTrack |
279 | |
280 | =head2 PumpEvents |
281 | |
282 | =head2 NewEvent |
283 | |
284 | =head2 FreeEvent |
285 | |
286 | =head2 PollEvent |
287 | |
288 | =head2 WaitEvent |
289 | |
290 | =head2 EventState |
291 | |
292 | =head2 IGNORE |
293 | |
294 | =head2 ENABLE |
295 | |
296 | =head2 QUERY |
297 | |
298 | =head2 ACTIVEEVENT |
299 | |
300 | =head2 KEYDOWN |
301 | |
302 | =head2 KEYUP |
303 | |
304 | =head2 MOUSEMOTION |
305 | |
306 | =head2 MOUSEBUTTONDOWN |
307 | |
308 | =head2 MOUSEBUTTONUP |
309 | |
310 | =head2 QUIT |
311 | |
312 | =head2 SYSWMEVENT |
313 | |
314 | =head2 EventType |
315 | |
316 | =head2 ActiveEventGain |
317 | |
318 | =head2 ActiveEventState |
319 | |
320 | =head2 APPMOUSEFOCUS |
321 | |
322 | =head2 APPINPUTFOCUS |
323 | |
324 | =head2 APPACTIVE |
325 | |
326 | =head2 KeyEventState |
327 | |
328 | =head2 SDLK_BACKSPACE |
329 | |
330 | =head2 SDLK_TAB |
331 | |
332 | =head2 SDLK_CLEAR |
333 | |
334 | =head2 SDLK_RETURN |
335 | |
336 | =head2 SDLK_PAUSE |
337 | |
338 | =head2 SDLK_ESCAPE |
339 | |
340 | =head2 SDLK_SPACE |
341 | |
342 | =head2 SDLK_EXCLAIM |
343 | |
344 | =head2 SDLK_QUOTEDBL |
345 | |
346 | =head2 SDLK_HASH |
347 | |
348 | =head2 SDLK_DOLLAR |
349 | |
350 | =head2 SDLK_AMPERSAND |
351 | |
352 | =head2 SDLK_QUOTE |
353 | |
354 | =head2 SDLK_LEFTPAREN |
355 | |
356 | =head2 SDLK_RIGHTPAREN |
357 | |
358 | =head2 SDLK_ASTERISK |
359 | |
360 | =head2 SDLK_PLUS |
361 | |
362 | =head2 SDLK_COMMA |
363 | |
364 | =head2 SDLK_MINUS |
365 | |
366 | =head2 SDLK_PERIOD |
367 | |
368 | =head2 SDLK_SLASH |
369 | |
370 | =head2 SDLK_0 |
371 | |
372 | =head2 SDLK_1 |
373 | |
374 | =head2 SDLK_2 |
375 | |
376 | =head2 SDLK_3 |
377 | |
378 | =head2 SDLK_4 |
379 | |
380 | =head2 SDLK_5 |
381 | |
382 | =head2 SDLK_6 |
383 | |
384 | =head2 SDLK_7 |
385 | |
386 | =head2 SDLK_8 |
387 | |
388 | =head2 SDLK_9 |
389 | |
390 | =head2 SDLK_COLON |
391 | |
392 | =head2 SDLK_SEMICOLON |
393 | |
394 | =head2 SDLK_LESS |
395 | |
396 | =head2 SDLK_EQUALS |
397 | |
398 | =head2 SDLK_GREATER |
399 | |
400 | =head2 SDLK_QUESTION |
401 | |
402 | =head2 SDLK_AT |
403 | |
404 | =head2 SDLK_LEFTBRACKET |
405 | |
406 | =head2 SDLK_BACKSLASH |
407 | |
408 | =head2 SDLK_RIGHTBRACKET |
409 | |
410 | =head2 SDLK_CARET |
411 | |
412 | =head2 SDLK_UNDERSCORE |
413 | |
414 | =head2 SDLK_BACKQUOTE |
415 | |
416 | =head2 SDLK_a |
417 | |
418 | =head2 SDLK_b |
419 | |
420 | =head2 SDLK_c |
421 | |
422 | =head2 SDLK_d |
423 | |
424 | =head2 SDLK_e |
425 | |
426 | =head2 SDLK_f |
427 | |
428 | =head2 SDLK_g |
429 | |
430 | =head2 SDLK_h |
431 | |
432 | =head2 SDLK_i |
433 | |
434 | =head2 SDLK_j |
435 | |
436 | =head2 SDLK_k |
437 | |
438 | =head2 SDLK_l |
439 | |
440 | =head2 SDLK_m |
441 | |
442 | =head2 SDLK_n |
443 | |
444 | =head2 SDLK_o |
445 | |
446 | =head2 SDLK_p |
447 | |
448 | =head2 SDLK_q |
449 | |
450 | =head2 SDLK_r |
451 | |
452 | =head2 SDLK_s |
453 | |
454 | =head2 SDLK_t |
455 | |
456 | =head2 SDLK_u |
457 | |
458 | =head2 SDLK_v |
459 | |
460 | =head2 SDLK_w |
461 | |
462 | =head2 SDLK_x |
463 | |
464 | =head2 SDLK_y |
465 | |
466 | =head2 SDLK_z |
467 | |
468 | =head2 SDLK_DELETE |
469 | |
470 | =head2 SDLK_KP0 |
471 | |
472 | =head2 SDLK_KP1 |
473 | |
474 | =head2 SDLK_KP2 |
475 | |
476 | =head2 SDLK_KP3 |
477 | |
478 | =head2 SDLK_KP4 |
479 | |
480 | =head2 SDLK_KP5 |
481 | |
482 | =head2 SDLK_KP6 |
483 | |
484 | =head2 SDLK_KP7 |
485 | |
486 | =head2 SDLK_KP8 |
487 | |
488 | =head2 SDLK_KP9 |
489 | |
490 | =head2 SDLK_KP_PERIOD |
491 | |
492 | =head2 SDLK_KP_DIVIDE |
493 | |
494 | =head2 SDLK_KP_MULTIPLY |
495 | |
496 | =head2 SDLK_KP_MINUS |
497 | |
498 | =head2 SDLK_KP_PLUS |
499 | |
500 | =head2 SDLK_KP_ENTER |
501 | |
502 | =head2 SDLK_KP_EQUALS |
503 | |
504 | =head2 SDLK_UP |
505 | |
506 | =head2 SDLK_DOWN |
507 | |
508 | =head2 SDLK_RIGHT |
509 | |
510 | =head2 SDLK_LEFT |
511 | |
512 | =head2 SDLK_INSERT |
513 | |
514 | =head2 SDLK_HOME |
515 | |
516 | =head2 SDLK_END |
517 | |
518 | =head2 SDLK_PAGEUP |
519 | |
520 | =head2 SDLK_PAGEDOWN |
521 | |
522 | =head2 SDLK_F1 |
523 | |
524 | =head2 SDLK_F2 |
525 | |
526 | =head2 SDLK_F3 |
527 | |
528 | =head2 SDLK_F4 |
529 | |
530 | =head2 SDLK_F5 |
531 | |
532 | =head2 SDLK_F6 |
533 | |
534 | =head2 SDLK_F7 |
535 | |
536 | =head2 SDLK_F8 |
537 | |
538 | =head2 SDLK_F9 |
539 | |
540 | =head2 SDLK_F10 |
541 | |
542 | =head2 SDLK_F11 |
543 | |
544 | =head2 SDLK_F12 |
545 | |
546 | =head2 SDLK_F13 |
547 | |
548 | =head2 SDLK_F14 |
549 | |
550 | =head2 SDLK_F15 |
551 | |
552 | =head2 SDLK_NUMLOCK |
553 | |
554 | =head2 SDLK_CAPSLOCK |
555 | |
556 | =head2 SDLK_SCROLLOCK |
557 | |
558 | =head2 SDLK_RSHIFT |
559 | |
560 | =head2 SDLK_LSHIFT |
561 | |
562 | =head2 SDLK_RCTRL |
563 | |
564 | =head2 SDLK_LCTRL |
565 | |
566 | =head2 SDLK_RALT |
567 | |
568 | =head2 SDLK_LALT |
569 | |
570 | =head2 SDLK_RMETA |
571 | |
572 | =head2 SDLK_LMETA |
573 | |
574 | =head2 SDLK_LSUPER |
575 | |
576 | =head2 SDLK_RSUPER |
577 | |
578 | =head2 SDLK_MODE |
579 | |
580 | =head2 SDLK_HELP |
581 | |
582 | =head2 SDLK_PRINT |
583 | |
584 | =head2 SDLK_SYSREQ |
585 | |
586 | =head2 SDLK_BREAK |
587 | |
588 | =head2 SDLK_MENU |
589 | |
590 | =head2 SDLK_POWER |
591 | |
592 | =head2 SDLK_EURO |
593 | |
594 | =head2 KMOD_NONE |
595 | |
596 | =head2 KMOD_NUM |
597 | |
598 | =head2 KMOD_CAPS |
599 | |
600 | =head2 KMOD_LCTRL |
601 | |
602 | =head2 KMOD_RCTRL |
603 | |
604 | =head2 KMOD_RSHIFT |
605 | |
606 | =head2 KMOD_LSHIFT |
607 | |
608 | =head2 KMOD_RALT |
609 | |
610 | =head2 KMOD_LALT |
611 | |
612 | =head2 KMOD_CTRL |
613 | |
614 | =head2 KMOD_SHIFT |
615 | |
616 | =head2 KMOD_ALT |
617 | |
618 | =head2 KeyEventSym |
619 | |
620 | =head2 KeyEventMod |
621 | |
622 | =head2 KeyEventUnicode |
623 | |
624 | =head2 KeyEventScanCode |
625 | |
626 | =head2 MouseMotionState |
627 | |
628 | =head2 MouseMotionX |
629 | |
630 | =head2 MouseMotionY |
631 | |
632 | =head2 MouseMotionXrel |
633 | |
634 | =head2 MouseMotionYrel |
635 | |
636 | =head2 MouseButtonState |
637 | |
638 | =head2 MouseButton |
639 | |
640 | =head2 MouseButtonX |
641 | |
642 | =head2 MouseButtonY |
643 | |
644 | =head2 SysWMEventMsg |
645 | |
646 | =head2 EnableUnicode |
647 | |
648 | =head2 EnableKeyRepeat |
649 | |
650 | =head2 GetKeyName |
651 | |
652 | =head2 PRESSED |
653 | |
654 | =head2 RELEASED |
655 | |
656 | =head2 CreateRGBSurface |
657 | |
658 | =head2 CreateRGBSurfaceFrom |
659 | |
660 | =head2 IMG_Load |
661 | |
662 | =head2 FreeSurface |
663 | |
664 | =head2 SurfacePalette |
665 | |
666 | =head2 SurfaceBitsPerPixel |
667 | |
668 | =head2 SurfaceBytesPerPixel |
669 | |
670 | =head2 SurfaceRshift |
671 | |
672 | =head2 SurfaceGshift |
673 | |
674 | =head2 SurfaceBshift |
675 | |
676 | =head2 SurfaceAshift |
677 | |
678 | =head2 SurfaceRmask |
679 | |
680 | =head2 SurfaceGmask |
681 | |
682 | =head2 SurfaceBmask |
683 | |
684 | =head2 SurfaceAmask |
685 | |
686 | =head2 SurfaceColorKey |
687 | |
688 | =head2 SurfaceAlpha |
689 | |
690 | =head2 SurfaceW |
691 | |
692 | =head2 SurfaceH |
693 | |
694 | =head2 SurfacePitch |
695 | |
696 | =head2 SurfacePixels |
697 | |
698 | =head2 SurfacePixel |
699 | |
700 | =head2 MUSTLOCK |
701 | |
702 | =head2 SurfaceLock |
703 | |
704 | =head2 SurfaceUnlock |
705 | |
706 | =head2 GetVideoSurface |
707 | |
708 | =head2 VideoInfo |
709 | |
710 | =head2 NewRect |
711 | |
712 | =head2 FreeRect |
713 | |
714 | =head2 RectX |
715 | |
716 | =head2 RectY |
717 | |
718 | =head2 RectW |
719 | |
720 | =head2 RectH |
721 | |
722 | =head2 NewColor |
723 | |
724 | =head2 ColorR |
725 | |
726 | =head2 ColorG |
727 | |
728 | =head2 CologB |
729 | |
730 | =head2 FreeColor |
731 | |
732 | =head2 NewPalette |
733 | |
734 | =head2 PaletteNColors |
735 | |
736 | =head2 PaletteColors |
737 | |
738 | =head2 SWSURFACE |
739 | |
740 | =head2 HWSURFACE |
741 | |
742 | =head2 ANYFORMAT |
743 | |
744 | =head2 HWPALETTE |
745 | |
746 | =head2 DOUBLEBUF |
747 | |
748 | =head2 FULLSCREEN |
749 | |
750 | =head2 ASYNCBLIT |
751 | |
752 | =head2 OPENGL |
753 | |
754 | =head2 HWACCEL |
755 | |
756 | =head2 VideoModeOK |
757 | |
758 | =head2 SetVideoMode |
759 | |
760 | =head2 UpdateRects |
761 | |
762 | =head2 Flip |
763 | |
764 | =head2 SetColors |
765 | |
766 | =head2 MapRGB (surface,r,g,b) |
767 | |
768 | C<SDL::MapRGB> translates the composite red (r), green (g), blue (b) |
769 | colors according to the given surface to a interger color value. This |
770 | integer can be used in functions like C<SDL::FillRect>, and is not |
771 | the same as the format independent Color object returned by C<SDL::NewColor>. |
772 | |
773 | =head2 MapRGBA (surface,r,g,b,a) |
774 | |
775 | C<SDL::MapRGBA> works as C<SDL::MapRGB> but takes an additional alpha (a) |
776 | component for semi-transperant colors. |
777 | |
778 | =head2 GetRGB |
779 | |
780 | =head2 GetRGBA |
781 | |
782 | =head2 SaveBMP |
783 | |
784 | =head2 SetColorKey |
785 | |
786 | =head2 SRCCOLORKEY |
787 | |
788 | =head2 RLEACCEL |
789 | |
790 | =head2 SRCALPHA |
791 | |
792 | =head2 SetAlpha |
793 | |
794 | =head2 DisplayFormat |
795 | |
796 | =head2 BlitSurface |
797 | |
798 | =head2 FillRect(surface,rect,color) |
799 | |
800 | C<SDL::FillRect> draws a solid rectangle of color on the given surface. |
801 | If the rectangle is NULL, the entire surface will be painted. |
802 | |
803 | =head2 WMSetCaption |
804 | |
805 | =head2 WMGetCaption |
806 | |
807 | =head2 WMSetIcon |
808 | |
809 | =head2 WarpMouse |
810 | |
811 | =head2 NewCursor |
812 | |
813 | =head2 FreeCursor |
814 | |
815 | =head2 SetCursor |
816 | |
817 | =head2 GetCursor |
818 | |
819 | =head2 ShowCursor |
820 | |
821 | =head2 NewAudioSpec |
822 | |
823 | =head2 FreeAudioSpec |
824 | |
825 | =head2 AUDIO_U8 |
826 | |
827 | =head2 AUDIO_S8 |
828 | |
829 | =head2 AUDIO_U16 |
830 | |
831 | =head2 AUDIO_S16 |
832 | |
833 | =head2 AUDIO_U16MSB |
834 | |
835 | =head2 AUDIO_S16MSB |
836 | |
837 | =head2 NewAudioCVT |
838 | |
839 | =head2 FreeAudioCVT |
840 | |
841 | =head2 ConvertAudioData |
842 | |
843 | =head2 OpenAudio |
844 | |
845 | =head2 PauseAudio |
846 | |
847 | =head2 UnlockAudio |
848 | |
849 | =head2 CloseAudio |
850 | |
851 | =head2 FreeWAV |
852 | |
853 | =head2 LoadWAV |
854 | |
855 | =head2 MixAudio |
856 | |
857 | =head2 MIX_MAX_VOLUME |
858 | |
859 | =head2 MIX_DEFAULT_FREQUENCY |
860 | |
861 | =head2 MIX_DEFAULT_FORMAT |
862 | |
863 | =head2 MIX_DEFAULT_CHANNELS |
864 | |
865 | =head2 MIX_NO_FADING |
866 | |
867 | =head2 MIX_FADING_OUT |
868 | |
869 | =head2 MIX_FADING_IN |
870 | |
871 | =head2 MixOpenAudio |
872 | |
873 | =head2 MixAllocateChannels |
874 | |
875 | =head2 MixQuerySpec |
876 | |
877 | =head2 MixLoadWAV |
878 | |
879 | =head2 MixLoadMusic |
880 | |
881 | =head2 MixQuickLoadWAV |
882 | |
883 | =head2 MixFreeChunk |
884 | |
885 | =head2 MixFreeMusic |
886 | |
887 | =head2 MixSetPostMixCallback |
888 | |
889 | =head2 MixSetMusicHook |
890 | |
891 | =head2 MixSetMusicFinishedHook |
892 | |
893 | =head2 MixGetMusicHookData |
894 | |
895 | =head2 MixReverseChannels |
896 | |
897 | =head2 MixGroupChannel |
898 | |
899 | =head2 MixGroupChannels |
900 | |
901 | =head2 MixGroupAvailable |
902 | |
903 | =head2 MixGroupCount |
904 | |
905 | =head2 MixGroupOldest |
906 | |
907 | =head2 MixGroupNewer |
908 | |
909 | =head2 MixPlayChannel |
910 | |
911 | =head2 MixPlayChannelTimed |
912 | |
913 | =head2 MixPlayMusic |
914 | |
915 | =head2 MixFadeInChannel |
916 | |
917 | =head2 MixFadeInChannelTimed |
918 | |
919 | =head2 MixFadeInMusic |
920 | |
921 | =head2 MixVolume |
922 | |
923 | =head2 MixVolumeChunk |
924 | |
925 | =head2 MixVolumeMusic |
926 | |
927 | =head2 MixHaltChannel |
928 | |
929 | =head2 MixHaltGroup |
930 | |
931 | =head2 MixHaltMusic |
932 | |
933 | =head2 MixExpireChannel |
934 | |
935 | =head2 MixFadeOutChannel |
936 | |
937 | =head2 MixFadeOutGroup |
938 | |
939 | =head2 MixFadeOutMusic |
940 | |
941 | =head2 MixFadingMusic |
942 | |
943 | =head2 MixFadingChannel |
944 | |
945 | =head2 MixPause |
946 | |
947 | =head2 MixResume |
948 | |
949 | =head2 MixPaused |
950 | |
951 | =head2 MixPauseMusic |
952 | |
953 | =head2 MixResumeMusic |
954 | |
955 | =head2 MixRewindMusic |
956 | |
957 | =head2 MixPausedMusic |
958 | |
959 | =head2 MixPlaying |
960 | |
961 | =head2 MixPlayingMusic |
962 | |
963 | =head2 MixCloseAudio |
964 | |
965 | =head2 NewFont |
966 | |
967 | =head2 UseFont |
968 | |
969 | =head2 PutString |
970 | |
971 | =head2 TextWidth |
972 | |
973 | =head2 GL_RED_SIZE |
974 | |
975 | =head2 GL_GREEN_SIZE |
976 | |
977 | =head2 GL_BLUE_SIZE |
978 | |
979 | =head2 GL_ALPHA_SIZE |
980 | |
981 | =head2 GL_ACCUM_RED_SIZE |
982 | |
983 | =head2 GL_ACCUM_GREEN_SIZE |
984 | |
985 | =head2 GL_ACCUM_BLUE_SIZE |
986 | |
987 | =head2 GL_ACCUM_ALPHA_SIZE |
988 | |
989 | =head2 GL_BUFFER_SIZE |
990 | |
991 | =head2 GL_DEPTH_SIZE |
992 | |
993 | =head2 GL_STENCIL_SIZE |
994 | |
995 | =head2 GL_DOUBLEBUFFER |
996 | |
997 | =head2 GL_SetAttribute |
998 | |
999 | =head2 GL_GetAttribute |
1000 | |
1001 | =head2 GL_SwapBuffers |
1002 | |
1003 | =head2 BigEndian |
1004 | |
1005 | =head2 NumJoysticks |
1006 | |
1007 | =head2 JoystickName |
1008 | |
1009 | =head2 JoystickOpen |
1010 | |
1011 | =head2 JoystickOpened |
1012 | |
1013 | =head2 JoystickIndex |
1014 | |
1015 | =head2 JoystickNumAxes |
1016 | |
1017 | =head2 JoystickNumBalls |
1018 | |
1019 | =head2 JoystickNumHats |
1020 | |
1021 | =head2 JoystickNumButtons |
1022 | |
1023 | =head2 JoystickUpdate |
1024 | |
1025 | =head2 JoystickGetAxis |
1026 | |
1027 | =head2 JoystickGetHat |
1028 | |
1029 | =head2 JoystickGetButton |
1030 | |
1031 | =head2 JoystickGetBall |
1032 | |
1033 | =head2 JoystickClose |
1034 | |
1035 | =head1 AUTHOR |
1036 | |
1037 | David J. Goehrig |
1038 | |
1039 | =head1 CONTRIBUTORS |
1040 | |
1041 | David J. Goehrig, Wayne Keenan, Guillaume Cottenceau |
1042 | |
1043 | =head1 SEE ALSO |
1044 | |
1045 | perl(1) SDL::App(3) SDL::Surface(3) SDL::Event(3) SDL::Rect(3) |
1046 | SDL::Palette(3) SDL::Mixer(3) SDL::Cdrom(3) |
1047 | |
1048 | =cut |
1049 | |