diff options
Diffstat (limited to 'src/Texture.cpp')
-rw-r--r-- | src/Texture.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Texture.cpp b/src/Texture.cpp index 93a3792..0d67701 100644 --- a/src/Texture.cpp +++ b/src/Texture.cpp @@ -35,6 +35,15 @@ Texturec::Texturec(uint amt, ...){ va_end(fNames); } +void Texturec::bind(int bn){ + texState = bn; + glBindTexture(GL_TEXTURE_2D, image[texState]); +} + void Texturec::bindNext(){ - //glBindTexture(GL_TEXTURE_2D); + bind(++texState); +} + +void Texturec::bindPrev(){ + bind(--texState); }
\ No newline at end of file |