** Pastebin PRO Accounts Spring Special ** Get 40% discount for a limited time only! Click Here to check it out ;-)Want more features on Pastebin? Sign Up, it's FREE!


By: a guest on Mar 12th, 2013  |  syntax: None  |  size: 0.15 KB  |  views: 37  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. void objects::drawRect(SDL_Surface *screen, SDL_Rect* object, int r, int g, int b)
  2. {
  3.     SDL_FillRect(screen,&object, SDL_MapRGB(screen->format,r,g,b));
  4. }
clone this paste RAW Paste Data