MiniEngine/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"
2017-07-31 00:18:10 +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;
};
2017-07-31 00:18:10 +08:00
} /// End of namespace MiniEngine