SDL_SoftStretch函数

来源:互联网 发布:剪辑音乐软件 编辑:程序博客网 时间:2024/06/06 15:42

SDL_SoftStretch函数

已经被函数SDL_BlitScaled()替换。缓冲区进行缩放之后拷贝到目标表面。

extern DECLSPEC int SDLCALL SDL_SoftStretch(SDL_Surface *src, SDL_Rect *srcrect,
                                    SDL_Surface *dst, SDL_Rect *dstrect);


例子:

//// Draw the backup buffer to the screen//dstrect.x = 0;dstrect.y = screenRealY;dstrect.w = gpScreenReal->w;dstrect.h = screenRealHeight;SDL_SoftStretch(gpScreenBak, NULL, gpScreenReal, &dstrect);SDL_UpdateRect(gpScreenReal, 0, 0, gpScreenReal->w, gpScreenReal->h);

老蔡学堂

0 0