Added GUI Styles with 3 options: Java, Pi/Xperia and Pocket Hopefully fixed touch input eating and breaking blocks bug Fire should render on all mobs now Fixed only one side of the first person burning animation being animated Added Window Scaling Option for PC Users (Hasn't been tested on other platforms Render Distance is now configurable from the settings menu Tried to fix shadows again on IOS and Android, hopefully works? Block Outline Selection now has a thicker outline for better visibility
115 lines
1.8 KiB
C++
Executable File
115 lines
1.8 KiB
C++
Executable File
#ifndef NET_MINECRAFT_CLIENT_RENDERER_PTEXTURE__DynamicTexture_H__
|
|
#define NET_MINECRAFT_CLIENT_RENDERER_PTEXTURE__DynamicTexture_H__
|
|
|
|
#include <vector>
|
|
|
|
class Textures;
|
|
|
|
class DynamicTexture
|
|
{
|
|
public:
|
|
int tex;
|
|
int replicate;
|
|
unsigned char pixels[16*16*4];
|
|
|
|
DynamicTexture(int tex_);
|
|
virtual ~DynamicTexture() {}
|
|
|
|
virtual void tick() = 0;
|
|
virtual void bindTexture(Textures* tex);
|
|
};
|
|
|
|
class WaterTexture: public DynamicTexture
|
|
{
|
|
typedef DynamicTexture super;
|
|
int _tick;
|
|
int _frame;
|
|
|
|
float* current;
|
|
float* next;
|
|
float* heat;
|
|
float* heata;
|
|
|
|
public:
|
|
WaterTexture();
|
|
~WaterTexture();
|
|
|
|
void tick();
|
|
};
|
|
|
|
class WaterSideTexture: public DynamicTexture
|
|
{
|
|
typedef DynamicTexture super;
|
|
int _tick;
|
|
int _frame;
|
|
int _tickCount;
|
|
|
|
float* current;
|
|
float* next;
|
|
float* heat;
|
|
float* heata;
|
|
|
|
public:
|
|
WaterSideTexture();
|
|
~WaterSideTexture();
|
|
|
|
void tick();
|
|
};
|
|
|
|
class LavaTexture: public DynamicTexture
|
|
{
|
|
typedef DynamicTexture super;
|
|
int _tick;
|
|
int _frame;
|
|
|
|
float* current;
|
|
float* next;
|
|
float* heat;
|
|
float* heata;
|
|
|
|
public:
|
|
LavaTexture();
|
|
~LavaTexture();
|
|
|
|
void tick();
|
|
};
|
|
|
|
class LavaSideTexture: public DynamicTexture
|
|
{
|
|
typedef DynamicTexture super;
|
|
int _tick;
|
|
int _frame;
|
|
int _tickCount;
|
|
|
|
float* current;
|
|
float* next;
|
|
float* heat;
|
|
float* heata;
|
|
|
|
public:
|
|
LavaSideTexture();
|
|
~LavaSideTexture();
|
|
|
|
void tick();
|
|
};
|
|
|
|
|
|
class FireTexture: public DynamicTexture
|
|
{
|
|
typedef DynamicTexture super;
|
|
int _tick;
|
|
int _frame;
|
|
|
|
float* current;
|
|
float* next;
|
|
float* heat;
|
|
float* heata;
|
|
|
|
public:
|
|
FireTexture(int id);
|
|
~FireTexture();
|
|
|
|
void tick();
|
|
};
|
|
#endif /*NET_MINECRAFT_CLIENT_RENDERER_PTEXTURE__DynamicTexture_H__*/
|