aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/Drawable.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-09-08 18:42:22 +0800
committerchai <chaifix@163.com>2018-09-08 18:42:22 +0800
commit8f23f81908e70db749cbbe7e32e862a911c8753d (patch)
treebe19f2748b95cf73064a3e27ce92d3ae9d00c1d1 /src/libjin/Graphics/Drawable.cpp
parenta9f350d1e136ad20e366625fc1f509d045e8cc47 (diff)
*update
Diffstat (limited to 'src/libjin/Graphics/Drawable.cpp')
-rw-r--r--src/libjin/Graphics/Drawable.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libjin/Graphics/Drawable.cpp b/src/libjin/Graphics/Drawable.cpp
index acdb6e1..dc1c8dd 100644
--- a/src/libjin/Graphics/Drawable.cpp
+++ b/src/libjin/Graphics/Drawable.cpp
@@ -30,7 +30,7 @@ namespace graphics
void Drawable::draw(int x, int y, float sx, float sy, float r)
{
- // Must set textCoord and vertCoord before renderring
+ /* Must set textCoord and vertCoord before renderring */
if (! textCoord||! vertCoord) return;
static jin::math::Matrix t;
@@ -38,7 +38,7 @@ namespace graphics
glBindTexture(GL_TEXTURE_2D, texture);
- // push modle matrix
+ /* push modle matrix */
glPushMatrix();
glMultMatrixf((const GLfloat*)t.getElements());
@@ -50,14 +50,14 @@ namespace graphics
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
glDisableClientState(GL_VERTEX_ARRAY);
- // pop the model matrix
+ /* pop the model matrix */
glPopMatrix();
- // bind texture to default screen
+ /* bind texture to default screen */
glBindTexture(GL_TEXTURE_2D, 0);
}
} // render
} // jin
-#endif // LIBJIN_MODULES_RENDER
+#endif // LIBJIN_MODULES_RENDER \ No newline at end of file