메소드 | 설명 | |
---|---|---|
Button ( Microsoft.Xna.Framework.Content.ContentManager content, string buttonName, Vector2 buttonPosition ) : System | ||
Draw ( |
||
Update ( |
||
hitImage ( float tx, float ty, Microsoft.Xna.Framework.Graphics.Texture2D texture, int x, int y ) : bool | ||
hitImageAlpha ( |
||
hitImageAlpha ( float tx, float ty, Microsoft.Xna.Framework.Graphics.Texture2D texture, int x, int y ) : bool |
메소드 | 설명 | |
---|---|---|
LoadContent ( ) : void |
public Button ( Microsoft.Xna.Framework.Content.ContentManager content, string buttonName, Vector2 buttonPosition ) : System | ||
content | Microsoft.Xna.Framework.Content.ContentManager | |
buttonName | string | |
buttonPosition | Vector2 | |
리턴 | System |
public Draw ( |
||
gameTime | ||
spriteBatch | ||
리턴 | void |
public Update ( |
||
gameTime | ||
mx | int | |
my | int | |
mpressed | bool | |
prev_mpressed | bool | |
리턴 | bool |
public hitImage ( float tx, float ty, Microsoft.Xna.Framework.Graphics.Texture2D texture, int x, int y ) : bool | ||
tx | float | |
ty | float | |
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
x | int | |
y | int | |
리턴 | bool |
public hitImageAlpha ( |
||
rect | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
x | int | |
y | int | |
리턴 | bool |
public hitImageAlpha ( float tx, float ty, Microsoft.Xna.Framework.Graphics.Texture2D texture, int x, int y ) : bool | ||
tx | float | |
ty | float | |
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
x | int | |
y | int | |
리턴 | bool |