mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
migrate ALMOST everything from source tree into client
This commit is contained in:
37
source/client/renderer/entity/EntityRenderer.hpp
Normal file
37
source/client/renderer/entity/EntityRenderer.hpp
Normal file
@@ -0,0 +1,37 @@
|
||||
/********************************************************************
|
||||
Minecraft: Pocket Edition - Decompilation Project
|
||||
Copyright (C) 2023 iProgramInCpp
|
||||
|
||||
The following code is licensed under the BSD 1 clause license.
|
||||
SPDX-License-Identifier: BSD-1-Clause
|
||||
********************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "HumanoidModel.hpp"
|
||||
#include "Font.hpp"
|
||||
|
||||
class EntityRenderDispatcher;
|
||||
|
||||
class EntityRenderer
|
||||
{
|
||||
public:
|
||||
EntityRenderer();
|
||||
void bindTexture(const std::string& file);
|
||||
Font* getFont();
|
||||
void init(EntityRenderDispatcher* d);
|
||||
static void render(const AABB&, float, float, float);
|
||||
static void renderFlat(const AABB&);
|
||||
|
||||
virtual void render(Entity*, float, float, float, float, float) = 0;
|
||||
virtual void onGraphicsReset();
|
||||
|
||||
public:
|
||||
float field_4 = 0.0f;
|
||||
float field_8 = 1.0f;
|
||||
EntityRenderDispatcher* m_pDispatcher = nullptr;
|
||||
|
||||
// @HUH: Why is there a HumanoidModel here? There's another
|
||||
// in HumanoidMobRenderer...
|
||||
HumanoidModel m_model;
|
||||
};
|
||||
Reference in New Issue
Block a user