SDL::Deprecated - Log of Deprecated items per release
Core
SDLx::App had a full rewrite and SDLx::Controller was updated.
Shortcut aliases in the constructor have been changed and removed. The main ones people use are still there like w, h and d. These lesser used ones no longer work: t, it, i, s, ab, db, bs, st, asyncblit.
w
h
d
t
it
i
s
ab
db
bs
st
asyncblit
warp was renamed to warp_cursor, but this method wasn't documented before anyway.
warp
warp_cursor
All OpenGL parameters for the constructor now have a gl_ prefix. These were never documented, so they're not listed here.
gl_
The OpenGL method attribute is now called gl_attribute.
attribute
gl_attribute
delay has been removed and replaced with SDLx::Controller's sleep. ticks has been deprecated, but left in for backcompat.
delay
sleep
ticks
The eoq parameter and method have been removed. The exit on quit (stop on quit) action is now enabled by default. The stop_handler parameter and method are now used to change and disable the quit action of the app.
eoq
stop_handler
max_t will now slow the application down if it runs at less than 10 FPS, by default.
max_t
Major changes to SDLx::Controller.
SDLx::Controller
quit is now stop. Event handlers no longer end run on returning false. Call stop explicitly instead.
quit
stop
run
The first argument to move handlers is the step portion instead of dt. The second argument to move handlers, the t value, is now the third argument.
dt
min_t will limit apps to a framerate of 60 by default.
min_t
SDLx::App::loop() is deprecated.
SDLx::App::loop()
Now depends on SDLx::Surface. To get the SDL::Surface, use -surface() >. Alternatively SDLx::Surface::display().
-
get_display is now called SDLx::Surface::display.
get_display
Has drastically changed, and is still volatile.
SDL::App has migrated to SDLx::App namespace. The reason for this is because it is an extension and not a 1:1 XS/Constant Module to the c library.
SDL::Game::Rect has migrated to SDLx::Rect namespace. Same reasoning as above.
See "AUTHORS" in SDL.
To install SDL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SDL
CPAN shell
perl -MCPAN -e shell install SDL
For more information on module installation, please visit the detailed CPAN module installation guide.