// // Created by lukas on 06.02.22. // #include "Texture.h" #include "../bmploader.h" #define GL_GLEXT_PROTOTYPES #include Texture::Texture() { mTexturehandle = bmploader().loadBMP("../block.bmp"); } void Texture::Bind() { glActiveTexture(GL_TEXTURE0); glBindTexture(GL_TEXTURE_2D, mTexturehandle); } void Texture::UnBind() { glBindTexture(GL_TEXTURE_2D, 0); }