protected override bool IsCulled(/* final */ Camera pCamera) { /* final */ float x = this.mX; /* final */ float y = this.mY; return(x > pCamera.GetMaxX() || y > pCamera.GetMaxY() || x + this.GetWidth() < pCamera.GetMinX() || y + this.GetHeight() < pCamera.GetMinY()); }
protected void Init(Camera pCamera, TextureRegion pTextureRegion, float pDuration, float pScaleFrom, float pScaleTo) { Sprite loadingScreenSprite = new Sprite(pCamera.GetMinX(), pCamera.GetMinY(), pCamera.GetWidth(), pCamera.GetHeight(), pTextureRegion); if (pScaleFrom != 1 || pScaleTo != 1) { loadingScreenSprite.SetScale(pScaleFrom); loadingScreenSprite.AddShapeModifier(new ScaleModifier(pDuration, pScaleFrom, pScaleTo, IEaseFunction.DEFAULT)); } this.GetTopLayer().AddEntity(loadingScreenSprite); }
protected override bool IsCulled(/* final */ Camera pCamera) { /* final */ float x = this.mX; /* final */ float y = this.mY; return x > pCamera.GetMaxX() || y > pCamera.GetMaxY() || x + this.GetWidth() < pCamera.GetMinX() || y + this.GetHeight() < pCamera.GetMinY(); }