mirror of
https://gitea.sffnetwork.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-11-25 20:09:45 +00:00
the whole game
This commit is contained in:
parent
816e9060b4
commit
f0617a5d22
2069 changed files with 581500 additions and 0 deletions
40
src/client/renderer/entity/EntityRenderer.h
Executable file
40
src/client/renderer/entity/EntityRenderer.h
Executable file
|
|
@ -0,0 +1,40 @@
|
|||
#ifndef NET_MINECRAFT_CLIENT_RENDERER_ENTITY__EntityRenderer_H__
|
||||
#define NET_MINECRAFT_CLIENT_RENDERER_ENTITY__EntityRenderer_H__
|
||||
|
||||
//package net.minecraft.client.renderer.entity;
|
||||
|
||||
#include <string>
|
||||
#include "../../model/HumanoidModel.h"
|
||||
|
||||
class Textures;
|
||||
class Tesselator;
|
||||
class EntityRenderDispatcher;
|
||||
class Entity;
|
||||
class AABB;
|
||||
class Font;
|
||||
|
||||
class EntityRenderer
|
||||
{
|
||||
protected:
|
||||
EntityRenderer();
|
||||
public:
|
||||
virtual ~EntityRenderer() {}
|
||||
void init(EntityRenderDispatcher* entityRenderDispatcher);
|
||||
|
||||
virtual void render(Entity* entity, float x, float y, float z, float rot, float a) = 0;
|
||||
static void render(const AABB& bb, float xo, float yo, float zo);
|
||||
static void renderFlat(const AABB& bb);
|
||||
|
||||
Font* getFont();
|
||||
|
||||
virtual void onGraphicsReset() {}
|
||||
|
||||
protected:
|
||||
void bindTexture(const std::string& resourceName);
|
||||
|
||||
float shadowRadius;
|
||||
float shadowStrength;
|
||||
static EntityRenderDispatcher* entityRenderDispatcher;
|
||||
};
|
||||
|
||||
#endif /*NET_MINECRAFT_CLIENT_RENDERER_ENTITY__EntityRenderer_H__*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue