Help for this page

Select Code to Download


  1. or download this
    my @data;
    my $tile = SDL_CreateTexture($render, %PIXELFORMAT<ARGB8888>, TARGET, 
    +320, 200);
    
  2. or download this
    my SDL_Rect $src .= new: x => 0, y => 0, w => 320, h => 200;
    SDL_RenderCopy($render, $tile, $src, SDL_Rect); ### blits the data arr
    +ay of, in this case 32 bit wide pixels (ARGB8888)