diff options
author | Stijn Buys <ingar@osirion.org> | 2010-10-04 13:44:57 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-10-04 13:44:57 +0000 |
commit | 7a75ef50dcf1955739969b47ff88c6fce9c3843a (patch) | |
tree | ae5db0e3315abc8c9066deb3b1e79f5ae48c8775 /src/render/gl.cc | |
parent | 75906b43ecb9a04fdab365bd8b1a00fbdbc66918 (diff) |
modelview widget rotation manipulation
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(); |