Permalink
Browse files

Fix and update documentation

  • Loading branch information...
Dgame committed Apr 30, 2015
1 parent f9db3d8 commit 9a3651f57d35112b92e38efd60af207f0a603e75
Showing with 6 additions and 6 deletions.
  1. +3 −3 source/Dgame/Window/Window.d
  2. +3 −3 source/Dgame/docs/Texture.html
@@ -695,6 +695,9 @@ public:
package(Dgame):
@nogc
void draw(Geometry geo, const Texture* texture, const Vertex[] vertices) const nothrow {
if (vertices.length == 0)
return;
if (texture) {
glEnable(GL_TEXTURE_2D);
texture.bind();
@@ -714,9 +717,6 @@ package(Dgame):
@nogc
void draw(Geometry geo, ref const Matrix4 mat, const Texture* texture, const Vertex[] vertices) const nothrow {
if (vertices.length == 0)
return;
glPushMatrix();
scope(exit) glPopMatrix();
@@ -132,9 +132,9 @@ <h1>Dgame.Graphic.Texture</h1>
<dd>Returns <b>true</b>, if this Texture is currently activated.<br><br>
</dd>
<dt><big><a name="Texture.setSmooth"></a>pure nothrow @nogc void <u>setSmooth</u>(bool <i>enable</i>);
<dt><big><a name="Texture.setSmooth"></a>nothrow @nogc void <u>setSmooth</u>(bool <i>smooth</i>);
</big></dt>
<dd>Set smooth filter for the (next) load.<br><br>
<dd>Set <i>smooth</i> filter.<br><br>
</dd>
<dt><big><a name="Texture.isSmooth"></a>const pure nothrow @nogc bool <u>isSmooth</u>();
@@ -144,7 +144,7 @@ <h1>Dgame.Graphic.Texture</h1>
</dd>
<dt><big><a name="Texture.setRepeat"></a>nothrow @nogc void <u>setRepeat</u>(bool <i>repeat</i>);
</big></dt>
<dd>Set repeating for the (next) load.<br><br>
<dd>Set repeating.<br><br>
</dd>
<dt><big><a name="Texture.isRepeated"></a>const pure nothrow @nogc bool <u>isRepeated</u>();

0 comments on commit 9a3651f

Please sign in to comment.