public void GameResized() { PPXDepthEngine.InitScreenTargets(); var newSize = PPXDepthEngine.GetWidthHeight(); State._2D.GenBuffers(newSize.X, newSize.Y); State.SetDimensions(newSize.ToVector2()); Blueprint?.Damage.Add(new BlueprintDamage(BlueprintDamageType.ZOOM)); }
public void GameResized() { PPXDepthEngine.InitScreenTargets(); var newSize = PPXDepthEngine.GetWidthHeight(); var ssaa = new Point(newSize.X / PPXDepthEngine.SSAA, newSize.Y / PPXDepthEngine.SSAA); State._2D.GenBuffers(ssaa.X, ssaa.Y); State.SetDimensions(ssaa.ToVector2()); Blueprint?.Changes?.SetFlag(BlueprintGlobalChanges.ZOOM); }