20 lines
384 B
C
20 lines
384 B
C
#include "check.h"
|
|
|
|
int checkBox(int x, int y, int t_x, int t_y, int t_w, int t_h) {
|
|
if (x >= t_x && x <= t_x+t_w) {
|
|
if (y >= t_y && y <= t_y+t_h) {
|
|
return 1;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
int checkBoxf(float x, float y, float t_x, float t_y, float t_w, float t_h) {
|
|
if (x >= t_x && x <= t_x+t_w) {
|
|
if (y >= t_y && y <= t_y+t_h) {
|
|
return 1;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|