2008-08-10 17:14:54 +02:00
|
|
|
#ifndef __RECT_H
|
|
|
|
#define __RECT_H
|
2008-02-09 13:43:23 +01:00
|
|
|
|
|
|
|
#include <SDL.h>
|
|
|
|
|
2008-08-10 17:14:54 +02:00
|
|
|
namespace segl {
|
|
|
|
|
|
|
|
class Rect {
|
2008-02-09 13:43:23 +01:00
|
|
|
public:
|
|
|
|
float x, y;
|
|
|
|
float w, h;
|
|
|
|
|
2008-08-10 17:14:54 +02:00
|
|
|
Rect();
|
|
|
|
Rect(float, float, float, float);
|
|
|
|
Rect(const SDL_Rect&);
|
2008-02-09 13:43:23 +01:00
|
|
|
|
|
|
|
void set(float, float, float, float);
|
|
|
|
void setPoint(float, float);
|
|
|
|
void setDim(float, float);
|
|
|
|
SDL_Rect getSDLRect();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2008-08-10 17:14:54 +02:00
|
|
|
} // namespace segl
|
|
|
|
|
2008-02-09 13:43:23 +01:00
|
|
|
#endif
|