Perl 6 - the future is here, just unevenly distributed

IRC log for #sdl, 2013-11-01

| Channels | #sdl index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:47 scanlonman joined #sdl
02:53 mtj FROGGS, thanks for the above info :) ^^
03:14 mtj aaah, its COLORKEY stuff, that i need to set for my $surface...
03:14 mtj $set_color_key = SDL::Video::set_color_key( $surface, $flag, $key );
03:16 mtj i've had images with transparant/alpha pixels working correctly, when blitting them
03:17 mtj ...but this situation is a 1st for me :)
04:11 mtj .
04:11 mtj hmm, how to get an SDL::Surface object from an SDLx::Surface object?
04:12 mtj the doco says this should work…
04:12 mtj my $surf_matrix = SDLx::Surface->new( surface => $display);
04:12 mtj my $orig_surface = $surf_matrix->surface();
04:13 mtj yet, $orig_surface seems to be an  SDLx::Surface object?
04:13 mtj ...not a SDL::Surface object as expected?
04:15 mtj "If a SDL::Surface is passed it is attached to the matrix. Returns the SDL::Surface that is currently attached to this SDLx::Surface"
04:16 mtj …seems to be returning an  SDLx::Surface - not  SDL::Surface?  O_o
07:47 FROGGS mtj: you can always check it's ref
07:47 FROGGS but the same trick for SDLx:App should work, since it is an SDLx::Surface
07:48 FROGGS try $sdlx_surface->{surface}
09:30 mtj weird, $surf = $app->surface() seems to return a sdlx_app object - not a surface, as expected
09:31 mtj $surf =  $app->{surface} gives an error …   Not a HASH reference at ./foo.pl line 199.
09:39 mtj hrmm, ok, i'll just get an $app_surf, the other way...
09:39 mtj $app_surf =  SDL::Video::get_video_surface();
09:42 FROGGS hmmm
09:43 FROGGS http://sdl.perl.org/SDLx-Surface.html#surface
09:43 FROGGS than that is a bug
09:44 FROGGS hmpf, https://github.com/PerlGameDev/SDL/blob/master/lib/SDLx/Surface.pm#L147
09:45 FROGGS but as far as I know you can always pass an SDLx::Surface to something that expects an SDL::Surface, since it inherits from it
09:52 mtj ah, good spotting :)
09:53 mtj ...yeah, i've read that , but i am a little bit cautious about doing it
09:59 mtj i suspect that some of the strange blitting bugs i have, are caused by me accidentally confusing SDLx and SDL surfaces objects
10:01 mtj thanks again FROGGS
11:51 awwaiid joined #sdl
14:38 kaare joined #sdl
17:32 dod joined #sdl

| Channels | #sdl index | Today | | Search | Google Search | Plain-Text | summary