mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-11 20:11:18 +03:00
Cleanup render functions (#38)
* Remove renderHorrible * Remove renderRollable Co-authored-by: Brent Da Mage <BrentDaMage@users.noreply.github.com>
This commit is contained in:
@@ -148,61 +148,6 @@ void Cube::render(float f)
|
||||
glPopMatrix();
|
||||
}
|
||||
|
||||
void Cube::renderRollable(float f)
|
||||
{
|
||||
if (field_1A)
|
||||
return;
|
||||
|
||||
if (!field_19)
|
||||
return;
|
||||
|
||||
if (!m_bCompiled)
|
||||
compile(f);
|
||||
|
||||
glPushMatrix();
|
||||
|
||||
glTranslatef(m_posX * f, m_posY * f, m_posZ * f);
|
||||
if (field_14 != 0.0f) glRotatef(field_14 * c, 0.0f, 0.0f, 1.0f);
|
||||
if (field_10 != 0.0f) glRotatef(field_10 * c, 0.0f, 1.0f, 0.0f);
|
||||
if (field_C != 0.0f) glRotatef(field_C * c, 1.0f, 0.0f, 0.0f);
|
||||
draw();
|
||||
|
||||
glPopMatrix();
|
||||
}
|
||||
|
||||
void Cube::renderHorrible(float f)
|
||||
{
|
||||
if (field_1A)
|
||||
return;
|
||||
|
||||
if (!field_19)
|
||||
return;
|
||||
|
||||
if (field_C == 0.0f && field_10 == 0.0f && field_14 == 0.0f)
|
||||
{
|
||||
if (m_posX == 0.0f && m_posY == 0 && m_posZ == 0)
|
||||
{
|
||||
drawSlow(f);
|
||||
return;
|
||||
}
|
||||
|
||||
glTranslatef( m_posX * f, m_posY * f, m_posZ * f);
|
||||
drawSlow(f);
|
||||
glTranslatef(-m_posX * f, -m_posY * f, -m_posZ * f);
|
||||
return;
|
||||
}
|
||||
|
||||
glPushMatrix();
|
||||
|
||||
glTranslatef(m_posX * f, m_posY * f, m_posZ * f);
|
||||
if (field_14 != 0.0f) glRotatef(field_14 * c, 0.0f, 0.0f, 1.0f);
|
||||
if (field_10 != 0.0f) glRotatef(field_10 * c, 0.0f, 1.0f, 0.0f);
|
||||
if (field_C != 0.0f) glRotatef(field_C * c, 1.0f, 0.0f, 0.0f);
|
||||
drawSlow(f);
|
||||
|
||||
glPopMatrix();
|
||||
}
|
||||
|
||||
void Cube::translateTo(float f)
|
||||
{
|
||||
if (field_1A)
|
||||
|
||||
@@ -22,8 +22,6 @@ public:
|
||||
void draw();
|
||||
void drawSlow(float f);
|
||||
void render(float f);
|
||||
void renderHorrible(float f);
|
||||
void renderRollable(float f);
|
||||
void setPos(float x, float y, float z);
|
||||
void setTexOffs(int a, int b);
|
||||
void translateTo(float f);
|
||||
|
||||
@@ -70,18 +70,6 @@ void HumanoidModel::render(float a, float b, float c, float d, float e, float f)
|
||||
_logGraphics();
|
||||
}
|
||||
|
||||
void HumanoidModel::renderHorrible(float a, float b, float c, float d, float e, float f)
|
||||
{
|
||||
setupAnim(a, b, c, d, e, f);
|
||||
m_head.renderHorrible(f);
|
||||
m_body.renderHorrible(f);
|
||||
m_armL.renderHorrible(f);
|
||||
m_armR.renderHorrible(f);
|
||||
m_legL.renderHorrible(f);
|
||||
m_legR.renderHorrible(f);
|
||||
_logGraphics();
|
||||
}
|
||||
|
||||
void HumanoidModel::setupAnim(float a2, float a3, float a4, float a5, float a6, float a7)
|
||||
{
|
||||
//a6 = pitch, a5 = yaw-ish
|
||||
|
||||
@@ -19,7 +19,6 @@ public:
|
||||
|
||||
void onGraphicsReset() override;
|
||||
void render(float, float, float, float, float, float) override;
|
||||
void renderHorrible(float, float, float, float, float, float) override;
|
||||
void setupAnim(float, float, float, float, float, float) override;
|
||||
void setBrightness(float) override;
|
||||
|
||||
|
||||
@@ -29,11 +29,6 @@ void Model::render(float, float, float, float, float, float)
|
||||
|
||||
}
|
||||
|
||||
void Model::renderHorrible(float, float, float, float, float, float)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Model::setupAnim(float, float, float, float, float, float)
|
||||
{
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@ public:
|
||||
virtual void onGraphicsReset();
|
||||
virtual void prepareMobModel(Mob*, float, float, float);
|
||||
virtual void render(float, float, float, float, float, float);
|
||||
virtual void renderHorrible(float, float, float, float, float, float);
|
||||
virtual void setupAnim(float, float, float, float, float, float);
|
||||
virtual void setBrightness(float);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user