removed SDL_Rect and SDL_Point

This commit is contained in:
BADIM-PC\Vadim
2018-02-01 19:34:42 +03:00
parent b18b8b0b51
commit a525df2eba
17 changed files with 272 additions and 254 deletions

View File

@@ -122,16 +122,26 @@ typedef enum
TIC_SURF_MODE,
} EditorMode;
typedef struct
{
s32 x, y;
} tic_point;
typedef struct
{
s32 x, y, w, h;
} tic_rect;
// SDL_Event* pollEvent();
void setCursor(SDL_SystemCursor id);
s32 getMouseX();
s32 getMouseY();
bool checkMousePos(const SDL_Rect* rect);
bool checkMouseClick(const SDL_Rect* rect, s32 button);
bool checkMouseDown(const SDL_Rect* rect, s32 button);
bool checkMousePos(const tic_rect* rect);
bool checkMouseClick(const tic_rect* rect, s32 button);
bool checkMouseDown(const tic_rect* rect, s32 button);
bool getGesturePos(SDL_Point* pos);
bool getGesturePos(tic_point* pos);
// const u8* getKeyboard();