コード例 #1
0
ファイル: Scene.cs プロジェクト: slagusev/AndEngine.net
        // ===========================================================
        // Methods for/from SuperClass/Interfaces
        // ===========================================================

        protected override void OnManagedDraw(/* final */ GL10 pGL, /* final */ Camera pCamera)
        {
            /* final */
            Scene childScene = this.mChildScene;

            if (childScene == null || !this.mChildSceneModalDraw)
            {
                if (this.mBackgroundEnabled)
                {
                    pCamera.OnApplyPositionIndependentMatrix(pGL);
                    GLHelper.SetModelViewIdentityMatrix(pGL);

                    this.mBackground.OnDraw(pGL, pCamera);
                }

                pCamera.OnApplyMatrix(pGL);
                GLHelper.SetModelViewIdentityMatrix(pGL);

                this.DrawLayers(pGL, pCamera);
            }
            if (childScene != null)
            {
                childScene.OnDraw(pGL, pCamera);
            }
        }