setting mipmap level for empty cubemaps

This commit is contained in:
devZoGok
2021-11-20 09:53:06 +02:00
parent cbbe6589ea
commit 0fc6e2af94
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -85,8 +85,9 @@ namespace vb01{
}
}
Texture::Texture(int width, bool depth){
Texture::Texture(int width, bool depth, int mipmapLevel){
this->width = width;
this->mipmapLevel = mipmapLevel;
texture = new u32;
createCubemap(true, false);
+1 -1
View File
@@ -15,7 +15,7 @@ namespace vb01{
~Texture();
Texture(int, int, bool = true);
Texture(std::string[], int, bool, int = 0, bool = false);
Texture(int, bool = true);
Texture(int, bool = true, int = 0);
Texture(FT_Face&, char);
void select(int = 0, int = 0);
void update(int = 0);