摘要:
远程图片数据申请: XNA: protected override void LoadContent(){spriteBatch = new SpriteBatch(GraphicsDevice);WebClient webClient = new WebClient();webClient.OpenReadCompleted += OnWebClientOpenReadCompleted;we... 阅读全文
随笔档案-2011年4月26日
WP7备注(7)(TouchLocation接触点与Gesture手势)(Silverlight)(大部分不同网站复制)
2011-04-26 16:26 by 血糯米Otomii, 540 阅读, 收藏,
摘要:
触摸帧事件(底层): Touch.FrameReported += OnTouchFrameReported; void OnTouchFrameReported(object sender, TouchFrameEventArgs args){} TouchFrameEventArgs: 触摸帧事件具有一个TouchFrameEventArgs对象 此对象拥有3个方法 1.TouchPoint ... 阅读全文
WP7备注(6)(TouchLocation接触点与Gesture手势)(XNA)
2011-04-26 15:16 by 血糯米Otomii, 424 阅读, 收藏,
摘要:
获取屏幕多点触摸的所有Touch: TouchCollection touchLocations = TouchPanel.GetState();foreach (TouchLocation touchLocation in touchLocations){if (touchLocation.State == TouchLocationState.Pressed){}if (touchLocati... 阅读全文
WP7备注(5)(在Update中取消Draw事件)
2011-04-26 13:27 by 血糯米Otomii, 200 阅读, 收藏,
摘要:
SuppressDraw: 在Update函数中调用SuppressDraw()可以取消这次Update后应该执行的Draw函数 阅读全文
WP7备注(4)(页面LayOut)
2011-04-26 13:11 by 血糯米Otomii, 213 阅读, 收藏,
摘要:
Orientations: SupportedOrientations支持的手机朝向,Orientation当前朝向 手机朝向控制拥有Portrait(正直),Landscape(平放),PortraitOrLandscape(正直or平放)三种 XNA的设置方法: graphics.SupportedOrientations = DisplayOrientation.Portrait | Dis... 阅读全文
WP7备注(3)(GamePad)
2011-04-26 11:37 by 血糯米Otomii, 210 阅读, 收藏,
摘要:
public class InputState { public const int MaxInputs = 4; public readonly GamePadState[] CurrentGamePadStates; public readonly GamePadState[] LastGamePadStates; public InputState() { CurrentGamePadSta... 阅读全文
WP7备注(2)(XNA基本元素)
2011-04-26 11:17 by 血糯米Otomii, 247 阅读, 收藏,
摘要:
GraphicsDeviceManager : 以XNA为基础的游戏程序必须在初始化的时候声明GraphicsDeviceManager的对象,并设定游戏界面的高度与宽度: GraphicsDeviceManager graphics; graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferHeight = ... 阅读全文
Silverlight 4常用StringFormat格式总结(转)
2011-04-26 10:29 by 血糯米Otomii, 510 阅读, 收藏,
摘要:
转自:http://silverlightchina.net/html/tips/2011/0424/7149.html 作者:Jv9 实例代码: <Grid x:Name="LayoutRoot"><ScrollViewer x:Name="PageScrollViewer" Style="{StaticResource PageScrollViewerStyle}"><StackPanel... 阅读全文
WP7备注(1)(XNA SpriteFont加载XML格式)
2011-04-26 10:08 by 血糯米Otomii, 274 阅读, 收藏,
摘要:
<?xml version="1.0" encoding="utf-8"?><XnaContent xmlns:Graphics="Microsoft.Xna.Framework.Content.Pipeline.Graphics"> <Asset Type="Graphics:FontDescription"> <FontName>Segoe UI Mono</FontName> <Size>1... 阅读全文
浙公网安备 33010602011771号