Permalink
Browse files

Update GLContextSettings: AntiAlias is now an enum

  • Loading branch information...
Dgame committed Jun 4, 2015
1 parent ac846f0 commit 23d8480dbed098a5eb40f577d0b0f08a33208f84
Showing with 15 additions and 12 deletions.
  1. +11 −5 source/Dgame/Window/GLContextSettings.d
  2. +4 −7 source/Dgame/docs/GLContextSettings.html
@@ -37,15 +37,21 @@ struct GLContextSettings {
GL45 = 45, ///
}
enum AntiAlias : ubyte {
None = 0,
X2 = 2,
X4 = 4,
X8 = 8,
X16 = 16
}
/**
* Anti aliasing level. 0 means deactivated.
* Anti aliasing level. Default is AntiAlias.None
*
* Note: A too high value may crash your application at the beginning
* because your driver does not support it.
*
* Typical values are 2, 4 or 8
*/
ubyte antiAlias = 0;
AntiAlias antiAlias = AntiAlias.None;
/**
* The OpenGL Version. Default is the highest supported version.
*/
@@ -59,7 +65,7 @@ struct GLContextSettings {
* CTor
*/
@nogc
this(ubyte antiAlias, Version vers = Version.GLXX, Profile profile = Profile.Compatibility) pure nothrow {
this(AntiAlias antiAlias, Version vers = Version.GLXX, Profile profile = Profile.Compatibility) pure nothrow {
this.antiAlias = antiAlias;
this.vers = vers;
this.profile = profile;
@@ -82,16 +82,13 @@ <h1>Dgame.Window.GLContextSettings</h1>
</dd>
</dl>
</dd>
<dt><big><a name="GLContextSettings.antiAlias"></a>ubyte <u>antiAlias</u>;
<dt><big><a name="GLContextSettings.antiAlias"></a>AntiAlias <u>antiAlias</u>;
</big></dt>
<dd>Anti aliasing level. 0 means deactivated.
<dd>Anti aliasing level. Default is AntiAlias.None
<br><br>
<b>Note:</b><br>
A too high value may crash your application at the beginning
because your driver does not support it.
<br><br>
Typical values are 2, 4 or 8<br><br>
because your driver does not support it.<br><br>
</dd>
<dt><big><a name="GLContextSettings.vers"></a>Version <u>vers</u>;
@@ -104,7 +101,7 @@ <h1>Dgame.Window.GLContextSettings</h1>
<dd>The OpenGL Context <u>profile</u>. Default is Profile.Compatibility<br><br>
</dd>
<dt><big><a name="GLContextSettings.this"></a>pure nothrow @nogc this(ubyte <i>antiAlias</i>, Version <i>vers</i> = Version.GLXX, Profile <i>profile</i> = Profile.Compatibility);
<dt><big><a name="GLContextSettings.this"></a>pure nothrow @nogc this(AntiAlias <i>antiAlias</i>, Version <i>vers</i> = Version.GLXX, Profile <i>profile</i> = Profile.Compatibility);
</big></dt>
<dd>CTor<br><br>

0 comments on commit 23d8480

Please sign in to comment.