You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
357 B
27 lines
357 B
16 years ago
|
#ifndef __RECT_H
|
||
|
#define __RECT_H
|
||
16 years ago
|
|
||
|
#include <SDL.h>
|
||
|
|
||
16 years ago
|
namespace segl {
|
||
|
|
||
|
class Rect {
|
||
16 years ago
|
public:
|
||
|
float x, y;
|
||
|
float w, h;
|
||
|
|
||
16 years ago
|
Rect();
|
||
|
Rect(float, float, float, float);
|
||
|
Rect(const SDL_Rect&);
|
||
16 years ago
|
|
||
|
void set(float, float, float, float);
|
||
|
void setPoint(float, float);
|
||
|
void setDim(float, float);
|
||
|
SDL_Rect getSDLRect();
|
||
|
|
||
|
};
|
||
|
|
||
16 years ago
|
} // namespace segl
|
||
|
|
||
16 years ago
|
#endif
|