Re: SDL 2.541_02 Released

2012-06-10 Thread Tobias Leich
Ya, it should. So in the test it can read the file as an SDL::RWOps-object, but SDL::Mixer::Music::load_MUS_RW can't handle it. A few lines later SDL::Mixer::Music::load_MUS($ogg_test_file) failes too. I'll check my VMs this evening, maybe I can reproduce that thing. Am 11.06.2012 01:08, schrieb

Re: SDL 2.541_02 Released

2012-06-10 Thread Jeffrey Palmer
This problems still occurs occasionally with Alien-SDL 1.434 http://www.cpantesters.org/cpan/report/04921c82-b30c-11e1-9066-3d54fb7543f5 I created an issue about this a while ago: https://github.com/PerlGameDev/SDL/issues/233 The build option include ogg, but those same tests fail. Should tho

Re: Transparency?

2012-06-10 Thread Tobias Leich
These draw_something methods out of the SDLx packages just use blit at the end anyway. A tip: dont care about speed right now, just try to get things working. Optimize at the end. Cheers Am 10.06.2012 18:42, schrieb Alex: > Hi! > > When do we use blit and when do we use draw_something? Is blit f

Re: SDL 2.541_02 Released

2012-06-10 Thread Tobias Leich
Ya, would be sweet to make another dev release, requiring a newer Alien::SDL. Check t/mixer.t for audio support, its basically just that you try to init OGG, and skip if it fails. Am 10.06.2012 18:03, schrieb Jeffrey Palmer: > So are we ready to bump our Alien::SDL prereq (at least in the dev > r

AW: Transparency?

2012-06-10 Thread Alex
Hi! When do we use blit and when do we use draw_something? Is blit faster / better? Best regards, Alex -Ursprüngliche Nachricht- Von: Tobias Leich [mailto:em...@froggs.de] Gesendet: Sonntag, 10. Juni 2012 10:47 An: Jack Maney; sdl-devel@perl.org Betreff: AW: Transparency? Hi, you have

Re: SDL 2.541_02 Released

2012-06-10 Thread Jeffrey Palmer
So are we ready to bump our Alien::SDL prereq (at least in the dev release)? Also, I'm assuming we should skip these tests if libogg support isn't available. What's the proper way to detect audio format support? Jeff On Sat, Jun 9, 2012 at 9:51 PM, Tobias Leich wrote: > Hi, the tester is stil

Re: Movement Stuck With Options of Up and Left...

2012-06-10 Thread Jeffrey Palmer
Hi Jack, The problem is that an SDL::Rect stores it's x and y coordinates as integers. When you subtract a small value from the coordinate the new coordinate is truncated, which is why you are able to move in negative directions. When you add a small value the same thing happens, but the truncat

Movement Stuck With Options of Up and Left...

2012-06-10 Thread Jack Maney
Everyone, First of all, thanks to Tobias Leech for so quickly answering my previous question on alpha values. Now, I'm trying to understand movement. I managed to hack together a simple, choppy, "movement by teleportation" app in which one can use ASDW to move a rectangle around in the screen

AW: Transparency?

2012-06-10 Thread Tobias Leich
Hi, you have to know that draw_rect works differently for your app surface and regular surfaces. If you draw to your app, the pixels just get the value of the color. But if you do this to a regular surface, and blit that to your app surface, the pixels will be blendet... So create a new surface,

Transparency?

2012-06-10 Thread Jack Maney
Hello, I'm not so terribly new to Perl but very new to SDL. I was fiddling with the following "Hello, World!"-ish code in the SDL manual: use strict; use warnings; use SDL; use SDLx::App; my $app = SDLx::App->new( width=> 800, height => 600 ); $app->draw_rect([ $app->width / 4, $app->height