Files
cafeberry-dev/Minecraft.Client/HorseRenderer.h
T
6a49df36cc revert perf + fix: windows performance optimizations + x360 fixes + ps3 hdd corruption fix (#27)
revert perf + fix: windows performance optimizations + x360 fixes + ps3 hdd corruption fix (#27)

windows optimizations include:

- adding WPO/LTCG
- fixing potential memory leaks
- reducing unneeded busy waits

xbox 360 fixes include:

- all item names displaying as black
- adding newer dlcs crashing game

ps3 fix was that, when holding the ps button, it'd corrupt the hdd. NEEDS TESTING! just a guess fix since I don't have a PS3.

---------

Co-authored-by: pieeebot <piebot00@gmail.com>
Co-authored-by: piebot <piebot00@gmail.com>
Co-authored-by: str1k3r <115313679+S1l3ntStr1ke87@users.noreply.github.com>
Co-authored-by: str1k3r <1+str1k3r@noreply.localhost>
Co-authored-by: pieeebot <10+pieeebot@noreply.neolegacy.dev>
Co-authored-by: qloak <53+qloak@noreply.neolegacy.dev>
Reviewed-on: cafeberry/cafeberry#27
Co-authored-by: qloak <realminecart@gmail.com>
2026-08-14 10:48:38 +00:00

31 lines
1.0 KiB
C++

#pragma once
#include "MobRenderer.h"
#include "ResourceLocation.h"
class EntityHorse;
class PathfinderMob;
class HorseRenderer : public MobRenderer
{
private:
static std::map<wstring, ResourceLocation *> LAYERED_LOCATION_CACHE;
static ResourceLocation HORSE_LOCATION;
static ResourceLocation HORSE_MULE_LOCATION;
static ResourceLocation HORSE_DONKEY_LOCATION;
static ResourceLocation HORSE_ZOMBIE_LOCATION;
static ResourceLocation HORSE_SKELETON_LOCATION;
public:
HorseRenderer(Model *model, float f);
protected:
void adjustHeight(shared_ptr<PathfinderMob> mob, float FHeight);
virtual void scale(shared_ptr<LivingEntity> entityliving, float f);
virtual void renderModel(shared_ptr<LivingEntity> mob, float wp, float ws, float bob, float headRotMinusBodyRot, float headRotx, float scale);
virtual void bindTexture(ResourceLocation *location);
virtual ResourceLocation *getTextureLocation(shared_ptr<Entity> entity);
private:
ResourceLocation *getOrCreateLayeredTextureLocation(shared_ptr<EntityHorse> horse);
};