mirror of
https://git.stillkill.net/MinecraftLeak/MinecraftConsoles-141217.git
synced 2026-10-22 13:22:18 +01:00
Initial commit
This commit is contained in:
commit
2dfcaaa842
5375 files changed
+978475
No files matched your search
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
#include "LivingEntityRenderer.h"
|
||||
class Mob;
|
||||
using namespace std;
|
||||
|
||||
// This was used in MobRenderer but lots of code moved to LivingEntity and I haven't put this back yet
|
||||
/*#define PLAYER_NAME_READABLE_FULLSCREEN 16
|
||||
#define PLAYER_NAME_READABLE_DISTANCE_SPLITSCREEN 8
|
||||
#define PLAYER_NAME_READABLE_DISTANCE_SD 8*/
|
||||
|
||||
// 4J - this used to be a generic : public class MobRenderer<T extends Mob> extends EntityRenderer<T>
|
||||
class MobRenderer : public LivingEntityRenderer
|
||||
{
|
||||
public:
|
||||
MobRenderer(Model *model, float shadow);
|
||||
virtual void render(shared_ptr<Entity> mob, double x, double y, double z, float rot, float a);
|
||||
|
||||
protected:
|
||||
virtual bool shouldShowName(shared_ptr<LivingEntity> mob);
|
||||
virtual void renderLeash(shared_ptr<Mob> entity, double x, double y, double z, float rot, float a);
|
||||
|
||||
private:
|
||||
double lerp(double prev, double next, double a);
|
||||
};
|
||||
Reference in new issue
Block a user