#include <rectangle.h>
Inherits Object.
Public Member Functions | |
Rectangle (int x, int y, int w, int h, int r, int g, int b) | |
void | Render (SDL_Surface *screen) |
~Rectangle () | |
Private Attributes | |
SDL_Color | m_col |
Rectangle::Rectangle | ( | int | x, | |
int | y, | |||
int | w, | |||
int | h, | |||
int | r, | |||
int | g, | |||
int | b | |||
) |
Rectangle::~Rectangle | ( | ) | [inline] |
void Rectangle::Render | ( | SDL_Surface * | screen | ) | [virtual] |
renders the image to the specified screen
screen | the screen to which the object is drawn |
Reimplemented from Object.
SDL_Color Rectangle::m_col [private] |