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?
What does this code mean?
Moderator: Coders of Rage
- lotios611
- Chaos Rift Regular
- Posts: 160
- Joined: Sun Jun 14, 2009 12:05 pm
- Current Project: Game engine for the PC, PSP, and maybe more.
- Favorite Gaming Platforms: Gameboy Micro
- Programming Language of Choice: C++
Re: What does this code mean?
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.
"Why geeks like computers: unzip, strip, touch, finger, grep, mount, fsck, more, yes, fsck, fsck, fsck, umount, sleep." - Unknown
Re: What does this code mean?
http://en.wikipedia.org/wiki/RTFM
the function you asked about.
http://www.libsdl.org/cgi/docwiki.cgi/SDL_FillRect
downloadable documentation.
http://www.libsdl.org/archives/sdldoc-html.zip
the function you asked about.
http://www.libsdl.org/cgi/docwiki.cgi/SDL_FillRect
downloadable documentation.
http://www.libsdl.org/archives/sdldoc-html.zip
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
Dad, "Yea well I have a fan belt in street fighting"
- LeonBlade
- Chaos Rift Demigod
- Posts: 1314
- Joined: Thu Jan 22, 2009 12:22 am
- Current Project: Trying to make my first engine in C++ using OGL
- Favorite Gaming Platforms: PS3
- Programming Language of Choice: C++
- Location: Blossvale, NY
Re: What does this code mean?
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.
Learn to use Google, it is your best friend.
There's no place like ~/