Muskovitz has asked for the wisdom of the Perl Monks concerning the following question:
& the code:SDL_gfx_primitives support has not been compiled at /usr/local/lib/per +l/5.14.2/SDLx/Surface.pm line 245. SDLx::Surface::draw_line(SDLx::App=SCALAR(0x8d455f8), ARRAY(0x8d45 +60c), ARRAY(0x8d45698), ARRAY(0x8d45710)) called at Documents/dev.pl +line 9
But when i try to run this on windows it worked.#!/usr/bin/perl use strict; use warnings; use SDL; use SDLx::App; my $app=SDLx::App->new(width=>400,height=>400); $app->draw_line([200, 20],[20,200],[255, 255, 0, 255]); $app->update; sleep(5);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't draw in PERL SDL
by Corion (Patriarch) on Sep 15, 2015 at 11:12 UTC | |
by Muskovitz (Scribe) on Sep 15, 2015 at 11:24 UTC | |
by Anonymous Monk on Sep 15, 2015 at 23:24 UTC |