mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
removed dependency from directory
This commit is contained in:
+5
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user