implemented depth configuration for 2D elements

fixed text offset configuration
This commit is contained in:
devZoGok
2021-10-18 19:06:40 +03:00
parent 9479e3324f
commit 43d4019384
10 changed files with 55 additions and 39 deletions
+2 -2
View File
@@ -9,18 +9,18 @@ using namespace std;
namespace vb01{
/*
*/
Texture::Texture(){
width=800,height=600;
glGenTextures(1,&texture);
glBindTexture(GL_TEXTURE_2D,texture);
glTexImage2D(GL_TEXTURE_2D,0,GL_RGB,width,height,1,GL_RGB,GL_UNSIGNED_BYTE,NULL);
glTexImage2D(GL_TEXTURE_2D,0,GL_RGB,width,height,0,GL_RGB,GL_UNSIGNED_BYTE,NULL);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
}
*/
Texture::Texture(int width, int height){
this->width=width;