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? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -