aboutsummaryrefslogtreecommitdiffstats
path: root/src/Texture.cpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2015-10-23 08:44:55 -0400
committerdrumsetmonkey <abelleisle@roadrunner.com>2015-10-23 08:44:55 -0400
commit0b5a24d5c3ea48c748cfa28ae258cd65187f9bf1 (patch)
tree5258af77ab83aac298229253fb011f1858962118 /src/Texture.cpp
parent19ba40a368b06c38365fe861b6de9403044096a7 (diff)
Worked on the new texture library
Diffstat (limited to 'src/Texture.cpp')
-rw-r--r--src/Texture.cpp11
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