Пример #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();
 }
Пример #2
0
 /// <summary>
 /// 获得当前帧鼠标的逻辑位置
 /// </summary>
 static public Vector2 GetCurMousePosInLogic ( RenderEngine engine )
 {
     return engine.CoordinMgr.LogicPos( ConvertHelper.PointToVector2( CurMousePos ) );
 }