X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FTexture.cc;h=dc9407afc9da1af082ed577da1ab99a6b27bc1e6;hp=128d54f3d7c8750b2087859a22b81aa6c5f18dc6;hb=72d4af22710317acffab861421c4364b1780b6fe;hpb=493ddb59a8620b49dfa0ff62ce93395ebfd02e86 diff --git a/src/Moof/Texture.cc b/src/Moof/Texture.cc index 128d54f..dc9407a 100644 --- a/src/Moof/Texture.cc +++ b/src/Moof/Texture.cc @@ -414,6 +414,13 @@ GLuint Texture::getObject() const } +void Texture::resetBind() +{ + glBindTexture(GL_TEXTURE_2D, 0); + TextureImpl::globalObject_ = 0; +} + + unsigned Texture::getWidth() const { // pass through @@ -454,7 +461,7 @@ void Texture::setWrapT(GLuint wrap) std::string Texture::getPathToResource(const std::string& name) { - // TODO named resources must be png for now + // TODO named texture resources must be png for now return Resource::getPathToResource("textures/" + name + ".png"); }