假设我有一个SDL_Surface,它只是一个图像。如果我想让SDL_Surface拥有该映像的三个副本,一个在另一个的下面,该怎么办?我想出了这个函数,但它没有显示任何内容:{ int desiredHeight->Gmask, img->format->Bmask,img->format->Amask);
SDL_Rect<
我的SDL程序有问题。我的目标是让一个点沿着一条线移动。我把所有的坐标都保存在一个数据文件里。所以我只是想从文件中读取它们,并将点显示在正确的位置。点类(名为linefollower)如下所示。void apply_surface( int x, int y, SDL_Surface * source, SDL_Surface* destination)//Temporary rectangleto hold the offsets
SDL_Rect offse