MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / SDL_RenderCopyEx

Function SDL_RenderCopyEx

deps/SDL2/src/render/SDL_render.c:3003–3028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3001}
3002
3003int
3004SDL_RenderCopyEx(SDL_Renderer * renderer, SDL_Texture * texture,
3005 const SDL_Rect * srcrect, const SDL_Rect * dstrect,
3006 const double angle, const SDL_Point *center, const SDL_RendererFlip flip)
3007{
3008 SDL_FRect dstfrect;
3009 SDL_FRect *pdstfrect = NULL;
3010 SDL_FPoint fcenter;
3011 SDL_FPoint *pfcenter = NULL;
3012
3013 if (dstrect) {
3014 dstfrect.x = (float) dstrect->x;
3015 dstfrect.y = (float) dstrect->y;
3016 dstfrect.w = (float) dstrect->w;
3017 dstfrect.h = (float) dstrect->h;
3018 pdstfrect = &dstfrect;
3019 }
3020
3021 if (center) {
3022 fcenter.x = (float) center->x;
3023 fcenter.y = (float) center->y;
3024 pfcenter = &fcenter;
3025 }
3026
3027 return SDL_RenderCopyExF(renderer, texture, srcrect, pdstfrect, angle, pfcenter, flip);
3028}
3029
3030int
3031SDL_RenderCopyExF(SDL_Renderer * renderer, SDL_Texture * texture,

Callers 3

DrawFunction · 0.85
loopFunction · 0.85
WatchJoystickFunction · 0.85

Calls 1

SDL_RenderCopyExFFunction · 0.85

Tested by 3

DrawFunction · 0.68
loopFunction · 0.68
WatchJoystickFunction · 0.68