MiniEngine/SDLWrapper/Point.h

15 lines
250 B
C++
Raw Normal View History

#pragma once
#include "include.h"
2017-06-18 20:37:45 +08:00
#include "Rect.h"
#include "begin_code.h"
class Point
{
public:
int x, y;
Point(int X, int Y);
Point();
SDL_Point toSDLPoint() const;
bool inRect(const Rect& rect) const;
};
#include "end_code.h"