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

Function QueueCmdCopy

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

Source from the content-addressed store, hash-verified

516}
517
518static int
519QueueCmdCopy(SDL_Renderer *renderer, SDL_Texture * texture, const SDL_Rect * srcrect, const SDL_FRect * dstrect)
520{
521 SDL_RenderCommand *cmd = PrepQueueCmdDrawTexture(renderer, texture, SDL_RENDERCMD_COPY);
522 int retval = -1;
523 if (cmd != NULL) {
524 retval = renderer->QueueCopy(renderer, cmd, texture, srcrect, dstrect);
525 if (retval < 0) {
526 cmd->command = SDL_RENDERCMD_NO_OP;
527 }
528 }
529 return retval;
530}
531
532static int
533QueueCmdCopyEx(SDL_Renderer *renderer, SDL_Texture * texture,

Callers 1

SDL_RenderCopyFFunction · 0.85

Calls 1

PrepQueueCmdDrawTextureFunction · 0.85

Tested by

no test coverage detected