diff options
Diffstat (limited to 'src/render/gl.cc')
-rw-r--r-- | src/render/gl.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/render/gl.cc b/src/render/gl.cc index d21065e..f97468f 100644 --- a/src/render/gl.cc +++ b/src/render/gl.cc @@ -159,6 +159,16 @@ void normal(const float x, const float y, const float z) glNormal3f(x, y, z); } +void texcoord(const float x, const float y) +{ + glTexCoord2f(x, y); +} + +void texcoord(const math::Vector2f& vector) +{ + glTexCoord2fv(vector.ptr()); +} + void push() { glPushMatrix(); |