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