Introducing SDL Perl
Douglas E. Miles
Phoenix.pm
What is SDL?
- http://www.libsdl.org/
- Simple DirectMedia Layer
- Provides access to 2D/3D Graphics, audio, keyboard, mouse, and joystick
- Cross platform
- Bindings to many programming languages
[any material that should appear in print but not on the slide]
What is Perl?
-
Pathologically Eclectic Rubbish Lister
[any material that should appear in print but not on the slide]
What is SDL Perl?
[any material that should appear in print but not on the slide]
Installing SDL Perl
- Alien::SDL
- Several install options
- Use already installed SDL libraries
- Build all from source
- Build certain libraries from source
[any material that should appear in print but not on the slide]
Surfaces
- Everything is drawn on a surface (SDL::Surface)
- Even the screen is a surface
-
Coordinates
[any material that should appear in print but not on the slide]
Examples
[any material that should appear in print but not on the slide]
Animation
- CPU time per loop iteration problem
- Turbo button
- Multi-tasking OSes with variable load
- Fixed FPS
- Doesn't work for computers that are too slow
- Wastes cycles idling
- Utilizing physics
- Animation
[any material that should appear in print but not on the slide]