Can cairo use SDL_Texture as a render target?
问题 Rendering to an SDL_Surface is possible with Cairo, but my application uses SDL_Renderer and SDL_Texture to take advantage of 2D accelerated rendering. I am currently creating an SDL_Surface and copying it to a texture with SDL_CreateTextureFromSurface(), but this process is cumbersome and possibly slow (although it's not a bottleneck.) Is there a direct way to draw to a SDL_Texture? 回答1: I've figured it out. Streaming SDL_Textures can expose the raw pixels in the ARGB8888 format, which is a