mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-18 19:50:00 +01:00
Co-authored-by: DrPerkyLegit <116128211+DrPerkyLegit@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Anaël <60509176+Bakoubak@users.noreply.github.com> Reviewed-on: https://git.neolegacy.dev/neoStudiosLCE/neoLegacy/pulls/4205
27 lines
766 B
C++
27 lines
766 B
C++
#pragma once
|
|
|
|
#include "TileEntityRenderer.h"
|
|
|
|
class TheEndGatewayRenderer : public TileEntityRenderer
|
|
{
|
|
private:
|
|
static ResourceLocation END_SKY_LOCATION;
|
|
static ResourceLocation END_PORTAL_LOCATION;
|
|
static ResourceLocation BEAM_LOCATION;
|
|
static int RANDOM_SEED;
|
|
static Random RANDOM;
|
|
|
|
FloatBuffer *lb;
|
|
FloatBuffer *modelView;
|
|
FloatBuffer *projection;
|
|
|
|
public:
|
|
TheEndGatewayRenderer();
|
|
virtual void render(shared_ptr<TileEntity> _gateway, double x, double y, double z, float a, bool setColor, float alpha = 1.0f, bool useCompiled = true);
|
|
|
|
private:
|
|
FloatBuffer *getBuffer(float a, float b, float c, float d);
|
|
static int getPasses(double distanceSqr);
|
|
void renderBeam(double x, double y, double z, float a, double height, float r, float g, float b);
|
|
};
|