mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-04 19:36:43 +03:00
45 lines
975 B
C++
45 lines
975 B
C++
/********************************************************************
|
|
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
|
|
********************************************************************/
|
|
|
|
#include "RocketRenderer.hpp"
|
|
#include "client/app/Minecraft.hpp"
|
|
|
|
RocketRenderer::RocketRenderer() :
|
|
m_tile()
|
|
{
|
|
field_4 = 0.5f;
|
|
}
|
|
|
|
void RocketRenderer::render(Entity* entity, float x, float y, float z, float a, float b)
|
|
{
|
|
glPushMatrix();
|
|
glTranslatef(x, y, z);
|
|
|
|
Tesselator& t = Tesselator::instance;
|
|
t.color(1.0f, 1.0f, 1.0f);
|
|
|
|
float brightness = entity->getBrightness(1.0f);
|
|
|
|
bindTexture("gui/items.png");
|
|
t.begin();
|
|
|
|
m_renderer.renderTile(&m_tile, 0, brightness);
|
|
t.draw();
|
|
|
|
glPopMatrix();
|
|
}
|
|
|
|
FakeRocketTile::FakeRocketTile() : Tile(0, 16*2+14, Material::plant)
|
|
{
|
|
}
|
|
|
|
int FakeRocketTile::getRenderShape()
|
|
{
|
|
return SHAPE_CROSS;
|
|
}
|