4 works on most frameworks, but some have AA disabled, use 0 to keep all frameworks in sync
View code on GitHub Namespace: DeltaEngine.CoreAssembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
public int AntiAliasingSamples { get; set; }
public int AntiAliasingSamples { get; set; }
Public Property AntiAliasingSamples As Integer
Get
Set
Public Property AntiAliasingSamples As Integer
Get
Set
public:
property int AntiAliasingSamples {
int get ();
void set (int value);
}
public:
property int AntiAliasingSamples {
int get ();
void set (int value);
}
member AntiAliasingSamples : int with get, set
member AntiAliasingSamples : int with get, set
Property Value
Type:
Int32Tests:
DeltaEngine.Tests.Core.SettingsTests1 unit tests call DeltaEngine.Core.Settings.AntiAliasingSamples
[Test]
public void CheckDefaultSettings()
{
Settings settings = Settings.Current;
settings.LoadDefaultSettings();
Assert.AreEqual(Settings.DefaultResolution, settings.Resolution);
Assert.AreEqual(false, settings.StartInFullscreen);
Assert.AreEqual(1.0f, settings.SoundVolume);
Assert.AreEqual(0.75f, settings.MusicVolume);
Assert.AreEqual(24, settings.DepthBufferBits);
Assert.AreEqual(32, settings.ColorBufferBits);
Assert.AreEqual(0, settings.AntiAliasingSamples);
Assert.AreEqual(0, settings.LimitFramerate);
Assert.AreEqual(false, settings.UseVSync);
Assert.AreEqual(20, settings.UpdatesPerSecond);
Assert.AreEqual(20, settings.RapidUpdatesPerSecond);
}
[Test]
public void CheckDefaultSettings()
{
Settings settings = Settings.Current;
settings.LoadDefaultSettings();
Assert.AreEqual(Settings.DefaultResolution, settings.Resolution);
Assert.AreEqual(false, settings.StartInFullscreen);
Assert.AreEqual(1.0f, settings.SoundVolume);
Assert.AreEqual(0.75f, settings.MusicVolume);
Assert.AreEqual(24, settings.DepthBufferBits);
Assert.AreEqual(32, settings.ColorBufferBits);
Assert.AreEqual(0, settings.AntiAliasingSamples);
Assert.AreEqual(0, settings.LimitFramerate);
Assert.AreEqual(false, settings.UseVSync);
Assert.AreEqual(20, settings.UpdatesPerSecond);
Assert.AreEqual(20, settings.RapidUpdatesPerSecond);
}