Help for this page

Select Code to Download


  1. or download this
    use SDL2::Raw;
    
    my $tile = SDL_CreateTexture($renderer, RGBA8888,
                            STREAMING, 320, 200);
    
  2. or download this
    my $data = 0; ### pixelbuffer is empty
    
    ...
    
    SDL_UpdateTexture($tile, NULL, $data, 320*32); ### update 32 bits of 3
    +20 pixels
    }