|
Size: 621
Comment:
|
Size: 734
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 17: | Line 17: |
| You can add your code example here | SDL_RendererFlip flip = SDL_FLIP_HORIZONTAL | SDL_FLIP_VERTICAL; SDL_RenderCopyEx(renderer, texture, &srcrect, &dstrect, &angle, ¢er, flip); |
SDL_RendererFlip
An enumeration of flags that can be used in the flip parameter for SDL_RenderCopyEx.
Values
SDL_FLIP_NONE |
do not flip |
SDL_FLIP_HORIZONTAL |
flip horizontally |
SDL_FLIP_VERTICAL |
flip vertically |
Code Examples
SDL_RendererFlip flip = SDL_FLIP_HORIZONTAL | SDL_FLIP_VERTICAL;
SDL_RenderCopyEx(renderer, texture, &srcrect, &dstrect, &angle, ¢er, flip);
Remarks
If you want to do a diagonal flip (both horizontal and vertical), use bitwise or ('|' operator).
