Porting focus based features and fix rendering
This commit is contained in:
@@ -181,3 +181,8 @@ float SafeDivide(float a, float b) {
|
||||
}
|
||||
return a / b;
|
||||
}
|
||||
|
||||
bool CheckCollisionPointRec(Vec2 point, Rect2 rec) {
|
||||
bool result = (point.x >= rec.min.x) && (point.x < rec.max.x) && (point.y >= rec.min.y) && (point.y < rec.max.y);
|
||||
return result;
|
||||
}
|
||||
@@ -141,3 +141,8 @@ Int SafeDivide(Int a, Int b) {
|
||||
}
|
||||
return a / b;
|
||||
}
|
||||
|
||||
bool CheckCollisionPointRec(Vec2I point, Rect2I rec) {
|
||||
bool result = (point.x >= rec.min.x) && (point.x < rec.max.x) && (point.y >= rec.min.y) && (point.y < rec.max.y);
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user