aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/EntityRenderer.h
diff options
context:
space:
mode:
authorvoid_17 <heroerror3@gmail.com>2026-03-02 15:58:20 +0700
committervoid_17 <heroerror3@gmail.com>2026-03-02 15:58:20 +0700
commit7074f35e4ba831e358117842b99ee35b87f85ae5 (patch)
tree7d440d23473196af3056bf2ff4c59d9e740a06f5 /Minecraft.Client/EntityRenderer.h
parentd63f79325f85e014361eb8cf1e41eaebedb1ae71 (diff)
shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
Diffstat (limited to 'Minecraft.Client/EntityRenderer.h')
-rw-r--r--Minecraft.Client/EntityRenderer.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Minecraft.Client/EntityRenderer.h b/Minecraft.Client/EntityRenderer.h
index e0c264a5..f8c91685 100644
--- a/Minecraft.Client/EntityRenderer.h
+++ b/Minecraft.Client/EntityRenderer.h
@@ -36,16 +36,16 @@ public:
EntityRenderer(); // 4J - added
virtual ~EntityRenderer();
public:
- virtual void render(shared_ptr<Entity> entity, double x, double y, double z, float rot, float a) = 0;
+ virtual void render(std::shared_ptr<Entity> entity, double x, double y, double z, float rot, float a) = 0;
protected:
virtual void bindTexture(int resourceName); // 4J - added
virtual void bindTexture(const wstring& resourceName);
virtual bool bindTexture(const wstring& urlTexture, int backupTexture); // 4J added
- virtual bool bindTexture(const wstring& urlTexture, const wstring& backupTexture);
+ virtual bool bindTexture(const wstring& urlTexture, const wstring& backupTexture);
private:
- virtual void renderFlame(shared_ptr<Entity> e, double x, double y, double z, float a);
- virtual void renderShadow(shared_ptr<Entity> e, double x, double y, double z, float pow, float a);
+ virtual void renderFlame(std::shared_ptr<Entity> e, double x, double y, double z, float a);
+ virtual void renderShadow(std::shared_ptr<Entity> e, double x, double y, double z, float pow, float a);
virtual Level *getLevel();
virtual void renderTileShadow(Tile *tt, double x, double y, double z, int xt, int yt, int zt, float pow, float r, double xo, double yo, double zo);
@@ -54,7 +54,7 @@ public:
static void renderFlat(AABB *bb);
static void renderFlat(float x0, float y0, float z0, float x1, float y1, float z1);
virtual void init(EntityRenderDispatcher *entityRenderDispatcher);
- virtual void postRender(shared_ptr<Entity> entity, double x, double y, double z, float rot, float a, bool bRenderPlayerShadow);
+ virtual void postRender(std::shared_ptr<Entity> entity, double x, double y, double z, float rot, float a, bool bRenderPlayerShadow);
virtual Font *getFont();
virtual void registerTerrainTextures(IconRegister *iconRegister);