mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-04-06 15:33:32 +00:00
the whole game
This commit is contained in:
59
src/client/renderer/ptexture/DynamicTexture.h
Executable file
59
src/client/renderer/ptexture/DynamicTexture.h
Executable file
@@ -0,0 +1,59 @@
|
||||
#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();
|
||||
};
|
||||
|
||||
#endif /*NET_MINECRAFT_CLIENT_RENDERER_PTEXTURE__DynamicTexture_H__*/
|
||||
Reference in New Issue
Block a user