mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-06 06:04:53 +00:00
refactor: unglob std::shared_ptr
This commit is contained in:
@@ -106,15 +106,15 @@ DragonModel::DragonModel(float g) : Model()
|
||||
rearFoot->compile(1.0f/16.0f);
|
||||
}
|
||||
|
||||
void DragonModel::prepareMobModel(shared_ptr<Mob> mob, float time, float r, float a)
|
||||
void DragonModel::prepareMobModel(std::shared_ptr<Mob> mob, float time, float r, float a)
|
||||
{
|
||||
this->a = a;
|
||||
}
|
||||
|
||||
void DragonModel::render(shared_ptr<Entity> entity, float time, float r, float bob, float yRot, float xRot, float scale, bool usecompiled)
|
||||
void DragonModel::render(std::shared_ptr<Entity> entity, float time, float r, float bob, float yRot, float xRot, float scale, bool usecompiled)
|
||||
{
|
||||
glPushMatrix();
|
||||
shared_ptr<EnderDragon> dragon = dynamic_pointer_cast<EnderDragon>(entity);
|
||||
std::shared_ptr<EnderDragon> dragon = dynamic_pointer_cast<EnderDragon>(entity);
|
||||
|
||||
float ttt = dragon->oFlapTime + (dragon->flapTime - dragon->oFlapTime) * a;
|
||||
jaw->xRot = (float) (Mth::sin(ttt * PI * 2) + 1) * 0.2f;
|
||||
|
||||
Reference in New Issue
Block a user