1
在我的代码中,我想将多个SDL_Texture
或数组连接(或合并)为一个SDL_Texture
,其中包含各自放在另一个下的图像。如何在SDL2中连接多个纹理?
它可能看起来就像这样
SDL_Texture* t1 = SDL_CreateTextureFromSurface(my_renderer, someSurface);
SDL_Texture* t2 = SDL_CreateTextureFromSurface(my_renderer, someOtherSurface);
//Some SDL code manipulations to make one SDL_Texture wich contains t1 and t2
有什么建议?
C或C++?不能兼得。 –