c++ - Fill_Rect in SDL -


i got question sdl_fillrect.

normally function work that: sdl_fillrect(screen, &screen->clip_rect, color);

my question is, instead of passing single color, can fill rect multiple color contain different red, blue, , green channel of pixel?

how go determining color pattern? think closest gonna sdl_blitsurface. pattern surface , blit onto surface.

http://www.libsdl.org/docs/html/sdlblitsurface.html


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

java - How to create Table using Apache PDFBox -

mpi - Why is MPI_Bsend not returning error even when the buffer is insufficient to accommodate all the messages -