add Renderer::read_pixels, Texture::lock, Texture::unlock.