mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-10 23:07:13 +00:00
23 lines
666 B
C++
23 lines
666 B
C++
#pragma once
|
|
#include "EntityRenderer.h"
|
|
|
|
class Painting;
|
|
class Random;
|
|
|
|
class PaintingRenderer : public EntityRenderer {
|
|
private:
|
|
Random* random;
|
|
static ResourceLocation PAINTING_LOCATION;
|
|
|
|
public:
|
|
PaintingRenderer(); // 4J -added
|
|
virtual void render(std::shared_ptr<Entity> _painting, double x, double y,
|
|
double z, float rot, float a);
|
|
|
|
private:
|
|
void renderPainting(std::shared_ptr<Painting> painting, int w, int h,
|
|
int uo, int vo);
|
|
void setBrightness(std::shared_ptr<Painting> painting, float ss, float ya);
|
|
virtual ResourceLocation* getTextureLocation(std::shared_ptr<Entity> mob);
|
|
};
|