reading animations

This commit is contained in:
devZoGok
2022-03-09 21:04:45 +02:00
parent e23ee52257
commit 8936266dcb
19 changed files with 132 additions and 56 deletions
+4 -4
View File
@@ -15,7 +15,7 @@
using namespace std;
namespace vb01{
Texture::Texture(int width, int height, bool shadowMap){
Texture::Texture(int width, int height, bool shadowMap) : Animatable(){
this->width = width;
this->height = height;
texture = new u32;
@@ -42,7 +42,7 @@ namespace vb01{
}
}
Texture::Texture(string paths[], int numPaths, bool cubemap, int mipmapLevel, bool flip){
Texture::Texture(string paths[], int numPaths, bool cubemap, int mipmapLevel, bool flip, string name) : Animatable(name){
this->cubemap = cubemap;
this->paths = new string[numPaths];
@@ -86,7 +86,7 @@ namespace vb01{
}
}
Texture::Texture(int width, bool depth, int mipmapLevel){
Texture::Texture(int width, bool depth, int mipmapLevel, string name) : Animatable(name){
this->width = width;
this->mipmapLevel = mipmapLevel;
this->cubemap = true;
@@ -127,7 +127,7 @@ namespace vb01{
glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
}
Texture::Texture(FT_Face face){
Texture::Texture(FT_Face face) : Animatable(){
texture = new u32;
glGenTextures(1, &texture[0]);