MiniEngine/include/SDLWrapper/Point.h

17 lines
263 B
C++
Raw Normal View History

#pragma once
#include "include.h"
2017-06-18 20:37:45 +08:00
#include "Rect.h"
2018-03-04 15:10:49 +08:00
namespace MiniEngine {
class Point
{
public:
int x, y;
Point(int X, int Y);
Point();
SDL_Point toSDLPoint() const;
bool inRect(const Rect& rect) const;
};
2018-03-04 15:10:49 +08:00
} /// End of namespace MiniEngine