lib/sdl: add access to texture pixels and alpha mask