Texture.cpp
branchv_0
changeset 31 ed3caeea978a
parent 30 02972f051744
--- a/Texture.cpp	Wed Dec 27 10:34:12 2023 +0100
+++ b/Texture.cpp	Wed Dec 27 12:11:27 2023 +0100
@@ -94,3 +94,7 @@
 	glGenerateMipmap(GLT2D);
 	checkError(&std::cerr);
 }
+
+void Texture::bind() {
+	glBindTexture(GL_TEXTURE_2D, impl->id);
+}