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

Function SDL_GetRenderDrawColor

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

Source from the content-addressed store, hash-verified

2208}
2209
2210int
2211SDL_GetRenderDrawColor(SDL_Renderer * renderer,
2212 Uint8 * r, Uint8 * g, Uint8 * b, Uint8 * a)
2213{
2214 CHECK_RENDERER_MAGIC(renderer, -1);
2215
2216 if (r) {
2217 *r = renderer->r;
2218 }
2219 if (g) {
2220 *g = renderer->g;
2221 }
2222 if (b) {
2223 *b = renderer->b;
2224 }
2225 if (a) {
2226 *a = renderer->a;
2227 }
2228 return 0;
2229}
2230
2231int
2232SDL_SetRenderDrawBlendMode(SDL_Renderer * renderer, SDL_BlendMode blendMode)

Callers 2

_hasDrawColorFunction · 0.85
SDLTest_DrawCharacterFunction · 0.85

Calls

no outgoing calls

Tested by 2

_hasDrawColorFunction · 0.68
SDLTest_DrawCharacterFunction · 0.68