// =========================================================== // 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); } }