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