mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
Revert "animatable textures"
This reverts commit 8226a9479ce8ab45bed5bc6acbba63eaaf0e6330.
This commit is contained in:
@@ -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];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user