Revert "animatable textures"

This reverts commit 8226a9479ce8ab45bed5bc6acbba63eaaf0e6330.
This commit is contained in:
devZoGok
2021-10-19 19:06:40 +03:00
parent 89c25c5bd9
commit 0193216ebb
5 changed files with 7 additions and 51 deletions
+3 -7
View File
@@ -3,7 +3,6 @@
#include<string>
#include<ft2build.h>
#include"util.h"
#include FT_FREETYPE_H
namespace vb01{
@@ -15,19 +14,16 @@ namespace vb01{
Texture(int,int,bool=true);
Texture(FT_Face&,char);
Texture(std::string,bool=false);
Texture(std::string[],int,s64,bool=false);
Texture(std::string[6],bool=false);
void update();
void select(int=0);
inline unsigned int* getTexture(){return &texture;}
inline std::string getPath(){return path;}
private:
TextureType type=TextureType::TEXTURE_2D;
s64 updateRate=0,lastUpdateTime=0;
u32 texture,*frames;
int width,height,numChannels,numFrames=0,currentFrame=0;
unsigned int texture;
int width,height,numChannels;
float weight;
u8 *data;
unsigned char *data;
std::string path="",paths[6];
};
}