mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-04-05 23:13:33 +00:00
Added 3 Fog Choices (Pocket) (Java) (Unknown that was unused) Restored Java Beta Sky Color code that was unused that depends on biome temperature (choosable using Java fog) Tile Shadows and Entity Shadows that appear beneath them have been restored and fixed from the unused code, toggleable by turning fancy graphics on or off Entities will now render flames on themselves when on fire, including the player Added option to use Java Style Item Count text and position in tweaks - fileshredder
48 lines
1.4 KiB
C++
Executable File
48 lines
1.4 KiB
C++
Executable File
#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 Tile;
|
|
class Level;
|
|
|
|
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);
|
|
void renderShadow(Entity* e, float x, float y, float z, float pow, float a);
|
|
void renderTileShadow(Tile* tt, float x, float y, float z, int xt, int yt, int zt, float pow, float r, float xo, float yo, float zo);
|
|
void renderFlame(Entity* e, float x, float y, float z, float a);
|
|
void postRender(Entity* entity, float x, float y, float z, float rot, float a);
|
|
Level* getLevel();
|
|
|
|
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__*/
|