removed dependency from directory

This commit is contained in:
devZoGok
2021-10-18 19:08:10 +03:00
parent 3d666aa3a1
commit 9e6b5a995a
12 changed files with 82 additions and 23 deletions
+5 -2
View File
@@ -8,8 +8,6 @@
using namespace std;
namespace vb01{
/*
*/
Texture::Texture(){
width=800,height=600;
@@ -104,6 +102,11 @@ namespace vb01{
}
Texture::~Texture(){
glBindTexture(type==TEXTURE_2D?GL_TEXTURE_2D:GL_TEXTURE_CUBE_MAP,0);
glDeleteTextures(1,&texture);
}
void Texture::select(int id){
glActiveTexture(GL_TEXTURE0+id);
glBindTexture(type==TEXTURE_2D?GL_TEXTURE_2D:GL_TEXTURE_CUBE_MAP,texture);