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

Function QueueCmdFillRects

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

Source from the content-addressed store, hash-verified

480}
481
482static int
483QueueCmdFillRects(SDL_Renderer *renderer, const SDL_FRect * rects, const int count)
484{
485 SDL_RenderCommand *cmd = PrepQueueCmdDrawSolid(renderer, SDL_RENDERCMD_FILL_RECTS);
486 int retval = -1;
487 if (cmd != NULL) {
488 retval = renderer->QueueFillRects(renderer, cmd, rects, count);
489 if (retval < 0) {
490 cmd->command = SDL_RENDERCMD_NO_OP;
491 }
492 }
493 return retval;
494}
495
496static SDL_RenderCommand *
497PrepQueueCmdDrawTexture(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_RenderCommandType cmdtype)

Callers 6

RenderDrawLinesWithRectsFunction · 0.85
SDL_RenderFillRectsFunction · 0.85
SDL_RenderFillRectsFFunction · 0.85

Calls 1

PrepQueueCmdDrawSolidFunction · 0.85

Tested by

no test coverage detected