Beispiel #1
0
/// private メソッド
///---------------------------------------------------------------------------

        /// 初期化
        private bool init()
        {
            graphicsDevice.Init();

            /// インプット系クラス初期化
            inputTouch = new InputTouch();
            inputGPad  = new InputGamePad();
            inputTouch.Init(0, 2, graphicsDevice.DisplayWidth, graphicsDevice.DisplayHeight);
            inputGPad.Init(0);

            stopwatch.Start();
            prevFpsTime = 0;

            return(DoInit());
        }
Beispiel #2
0
        /// 破棄
        private void term()
        {
            DoTerm();

            /// インプット系クラス破棄
            inputTouch.Term();
            inputGPad.Term();

            inputGPad  = null;
            inputTouch = null;

            stopwatch.Stop();

            graphicsDevice.Term();
            graphicsDevice = null;
        }
Beispiel #3
0
        /// 破棄
        private void term()
        {
            DoTerm();

            /// インプット系クラス破棄
            inputTouch.Term();
            inputGPad.Term();

            inputGPad	= null;
            inputTouch	= null;

            stopwatch.Stop();

            graphicsDevice.Term();
            graphicsDevice = null;
        }
Beispiel #4
0
        /// private メソッド
        ///---------------------------------------------------------------------------
        /// 初期化
        private bool init()
        {
            graphicsDevice.Init();

            /// インプット系クラス初期化
            inputTouch		= new InputTouch();
            inputGPad		= new InputGamePad();
            inputTouch.Init( 0, 2, graphicsDevice.DisplayWidth, graphicsDevice.DisplayHeight );
            inputGPad.Init( 0 );

            stopwatch.Start();
            prevFpsTime     = 0;

            return DoInit();
        }