Beispiel #1
0
CAMLprim value
caml_sfFloatRect_contains(value rect, value x, value y)
{
    sfFloatRect _rect;
    SfFloatRect_val(&_rect, rect);
    return Val_bool(
        sfFloatRect_contains(&_rect, Double_val(x), Double_val(y)));
}
Beispiel #2
0
char sfSprite_contains(sfSprite* sprite, sfVector2f point)
{
	sfFloatRect rect = sfSprite_getGlobalBounds(sprite);
	return sfFloatRect_contains(&rect, point.x, point.y);
}
Beispiel #3
0
char sfText_contains(sfText* text, sfVector2f point)
{
	sfFloatRect rect = sfText_getGlobalBounds(text);
	return sfFloatRect_contains(&rect, point.x, point.y);
}