public hitImageAlpha ( |
||
rect | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
x | int | |
y | int | |
return | bool |
public bool hitImageAlpha(Rectangle rect, Texture2D texture, int x, int y)
{
return hitImageAlpha(0,0, texture, texture.Width * (x - rect.X) / rect.Width, texture.Height * (y - rect.Y) / rect.Height);
}
Button::hitImageAlpha ( float tx, float ty, Microsoft.Xna.Framework.Graphics.Texture2D texture, int x, int y ) : bool |