forked from mirrors/kolyah35-minecraft-pe-0.6.1
the whole game
This commit is contained in:
parent
816e9060b4
commit
f0617a5d22
2069 changed files with 581500 additions and 0 deletions
38
src/client/renderer/tileentity/TileEntityRenderer.h
Executable file
38
src/client/renderer/tileentity/TileEntityRenderer.h
Executable file
|
|
@ -0,0 +1,38 @@
|
|||
#ifndef NET_MINECRAFT_CLIENT_RENDERER_TILEENTITY__TileEntityRenderer_H__
|
||||
#define NET_MINECRAFT_CLIENT_RENDERER_TILEENTITY__TileEntityRenderer_H__
|
||||
|
||||
//package net.minecraft.client.renderer.tileentity;
|
||||
|
||||
#include <string>
|
||||
|
||||
class Level;
|
||||
class TileEntity;
|
||||
class TileEntityRenderDispatcher;
|
||||
class Font;
|
||||
|
||||
class TileEntityRenderer
|
||||
{
|
||||
public:
|
||||
TileEntityRenderer();
|
||||
virtual ~TileEntityRenderer(){}
|
||||
|
||||
void init(TileEntityRenderDispatcher* tileEntityRenderDispatcher);
|
||||
virtual void render(TileEntity* entity, float x, float y, float z, float a) = 0;
|
||||
|
||||
void bindTexture(const std::string& resourceName);
|
||||
// /*protected*/ void bindTexture(const std::string& urlTexture, const std::string& backupTexture) {
|
||||
// Textures t = tileEntityRenderDispatcher.textures;
|
||||
// if (t != NULL) t.bind(t.loadHttpTexture(urlTexture, backupTexture));
|
||||
// }
|
||||
|
||||
Level* getLevel();
|
||||
Font* getFont();
|
||||
|
||||
virtual void onGraphicsReset() {}
|
||||
|
||||
virtual void onNewLevel(Level* level) {}
|
||||
protected:
|
||||
TileEntityRenderDispatcher* tileEntityRenderDispatcher;
|
||||
};
|
||||
|
||||
#endif /*NET_MINECRAFT_CLIENT_RENDERER_TILEENTITY__TileEntityRenderer_H__*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue