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

Function QueueCmdCopyEx

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

Source from the content-addressed store, hash-verified

530}
531
532static int
533QueueCmdCopyEx(SDL_Renderer *renderer, SDL_Texture * texture,
534 const SDL_Rect * srcquad, const SDL_FRect * dstrect,
535 const double angle, const SDL_FPoint *center, const SDL_RendererFlip flip)
536{
537 SDL_RenderCommand *cmd = PrepQueueCmdDrawTexture(renderer, texture, SDL_RENDERCMD_COPY_EX);
538 int retval = -1;
539 SDL_assert(renderer->QueueCopyEx != NULL); /* should have caught at higher level. */
540 if (cmd != NULL) {
541 retval = renderer->QueueCopyEx(renderer, cmd, texture, srcquad, dstrect, angle, center, flip);
542 if (retval < 0) {
543 cmd->command = SDL_RENDERCMD_NO_OP;
544 }
545 }
546 return retval;
547}
548
549
550static int UpdateLogicalSize(SDL_Renderer *renderer);

Callers 1

SDL_RenderCopyExFFunction · 0.85

Calls 1

PrepQueueCmdDrawTextureFunction · 0.85

Tested by

no test coverage detected