mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-11 20:11:18 +03:00
32 lines
742 B
C++
32 lines
742 B
C++
#pragma once
|
|
|
|
#include <utility>
|
|
#include "VertexPT.hpp"
|
|
#include "Tesselator.hpp"
|
|
#include "Utils.hpp" // to configure 1 thing
|
|
|
|
class PolygonQuad
|
|
{
|
|
public:
|
|
PolygonQuad() {};
|
|
PolygonQuad(VertexPT* a, VertexPT* b, VertexPT* c, VertexPT* d);
|
|
PolygonQuad(VertexPT* a, VertexPT* b, VertexPT* c, VertexPT* d, float u1, float v1, float u2, float v2);
|
|
PolygonQuad(VertexPT* a, VertexPT* b, VertexPT* c, VertexPT* d, int u1i, int v1i, int u2i, int v2i);
|
|
|
|
void flipNormal();
|
|
void mirror();
|
|
void render(Tesselator& t, float scale, int unused);
|
|
|
|
#ifdef ENH_ENTITY_SHADING
|
|
void setColor(float r, float g, float b);
|
|
#endif
|
|
|
|
private:
|
|
VertexPT m_verts[4];
|
|
bool m_bFlipNormals = false;
|
|
|
|
#ifdef ENH_ENTITY_SHADING
|
|
int m_color = 0xFFFFFF;
|
|
#endif
|
|
};
|