Ejemplo n.º 1
0
 protected override void Initialize()
 {
     content = new ContentManager( Services );
     renderEngine = new RenderEngine( Device, content, "Content\\EngineContent" );
     effectMgr = new EffectsMgr();
     RandomHelper.GenerateNewRandomGenerator();
     Log.Initialize();
     base.Initialize();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 获得当前帧鼠标的逻辑位置
 /// </summary>
 static public Vector2 GetCurMousePosInLogic ( RenderEngine engine )
 {
     return engine.CoordinMgr.LogicPos( ConvertHelper.PointToVector2( CurMousePos ) );
 }