Page 1 of 1
What does this code mean?
Posted: Tue Apr 27, 2010 7:45 am
by Randi
SDL_FillRect(buffer, &buffer->clip_rect, 0x666666);
I think it means make a rectagle (the size of the buffer, the positon of the buffer, the color); am I close?
Re: What does this code mean?
Posted: Tue Apr 27, 2010 8:00 am
by lotios611
You should really learn to use google. So far, almost everything that you've asked about would be easily answerable using google. To answer your question, it fills in an SDL_Rect with the color that you tell it to. The first argument tells it where to fill in the rectangle. The second argument tells it how big of a rectangle to fill in. The third argument specifies the color to fill the rectangle with. In this case, it is filling the whole buffer with a grayish color.
Re: What does this code mean?
Posted: Tue Apr 27, 2010 8:44 am
by avansc
Re: What does this code mean?
Posted: Tue Apr 27, 2010 8:45 am
by LeonBlade
Oh god... PLEASE don't post if you're just going to ask a simple question like this.
Learn to use Google, it is your best friend.